Make the sys/ucontext.h self-contained by changing the return type

of __getcontextx_size(3) from size_t to int.

PR:	ports/164654
MFC after:	1 month
This commit is contained in:
Konstantin Belousov 2012-02-01 13:33:53 +00:00
parent 2512b096a2
commit 754f1c1e63
9 changed files with 9 additions and 9 deletions

View File

@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$");
static int xstate_sz = -1; static int xstate_sz = -1;
size_t int
__getcontextx_size(void) __getcontextx_size(void)
{ {
u_int p[4]; u_int p[4];

View File

@ -32,7 +32,7 @@ __FBSDID("$FreeBSD$");
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
size_t int
__getcontextx_size(void) __getcontextx_size(void)
{ {

View File

@ -38,7 +38,7 @@ __FBSDID("$FreeBSD$");
static int xstate_sz = -1; static int xstate_sz = -1;
size_t int
__getcontextx_size(void) __getcontextx_size(void)
{ {
u_int p[4]; u_int p[4];

View File

@ -32,7 +32,7 @@ __FBSDID("$FreeBSD$");
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
size_t int
__getcontextx_size(void) __getcontextx_size(void)
{ {

View File

@ -32,7 +32,7 @@ __FBSDID("$FreeBSD$");
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
size_t int
__getcontextx_size(void) __getcontextx_size(void)
{ {

View File

@ -32,7 +32,7 @@ __FBSDID("$FreeBSD$");
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
size_t int
__getcontextx_size(void) __getcontextx_size(void)
{ {

View File

@ -32,7 +32,7 @@ __FBSDID("$FreeBSD$");
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
size_t int
__getcontextx_size(void) __getcontextx_size(void)
{ {

View File

@ -32,7 +32,7 @@ __FBSDID("$FreeBSD$");
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
size_t int
__getcontextx_size(void) __getcontextx_size(void)
{ {

View File

@ -79,7 +79,7 @@ int signalcontext(ucontext_t *, int, __sighandler_t *);
int swapcontext(ucontext_t *, const ucontext_t *); int swapcontext(ucontext_t *, const ucontext_t *);
#if __BSD_VISIBLE #if __BSD_VISIBLE
size_t __getcontextx_size(void); int __getcontextx_size(void);
int __fillcontextx(char *ctx); int __fillcontextx(char *ctx);
#endif #endif