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:
parent
2512b096a2
commit
754f1c1e63
@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
static int xstate_sz = -1;
|
||||
|
||||
size_t
|
||||
int
|
||||
__getcontextx_size(void)
|
||||
{
|
||||
u_int p[4];
|
||||
|
@ -32,7 +32,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
size_t
|
||||
int
|
||||
__getcontextx_size(void)
|
||||
{
|
||||
|
||||
|
@ -38,7 +38,7 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
static int xstate_sz = -1;
|
||||
|
||||
size_t
|
||||
int
|
||||
__getcontextx_size(void)
|
||||
{
|
||||
u_int p[4];
|
||||
|
@ -32,7 +32,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
size_t
|
||||
int
|
||||
__getcontextx_size(void)
|
||||
{
|
||||
|
||||
|
@ -32,7 +32,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
size_t
|
||||
int
|
||||
__getcontextx_size(void)
|
||||
{
|
||||
|
||||
|
@ -32,7 +32,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
size_t
|
||||
int
|
||||
__getcontextx_size(void)
|
||||
{
|
||||
|
||||
|
@ -32,7 +32,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
size_t
|
||||
int
|
||||
__getcontextx_size(void)
|
||||
{
|
||||
|
||||
|
@ -32,7 +32,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
size_t
|
||||
int
|
||||
__getcontextx_size(void)
|
||||
{
|
||||
|
||||
|
@ -79,7 +79,7 @@ int signalcontext(ucontext_t *, int, __sighandler_t *);
|
||||
int swapcontext(ucontext_t *, const ucontext_t *);
|
||||
|
||||
#if __BSD_VISIBLE
|
||||
size_t __getcontextx_size(void);
|
||||
int __getcontextx_size(void);
|
||||
int __fillcontextx(char *ctx);
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user