mirror of https://github.com/mkerrisk/man-pages
makecontext.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX.1-2001 and glibc use 'restrict' in swapcontext(). Let's use it here too. .../glibc$ grep_glibc_prototype swapcontext stdlib/ucontext.h:41: extern int swapcontext (ucontext_t *__restrict __oucp, const ucontext_t *__restrict __ucp) __THROWNL __INDIRECT_RETURN; .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
c445280cf3
commit
e64e5812b3
|
@ -32,8 +32,10 @@ makecontext, swapcontext \- manipulate user context
|
|||
.nf
|
||||
.B #include <ucontext.h>
|
||||
.PP
|
||||
.BI "void makecontext(ucontext_t *" ucp ", void (*" func ")(), int " argc ", ...);"
|
||||
.BI "int swapcontext(ucontext_t *" oucp ", const ucontext_t *" ucp );
|
||||
.BI "void makecontext(ucontext_t *" ucp ", void (*" func ")(), int " argc \
|
||||
", ...);"
|
||||
.BI "int swapcontext(ucontext_t *restrict " oucp ,
|
||||
.BI " const ucontext_t *restrict " ucp );
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
In a System V-like environment, one has the type
|
||||
|
|
Loading…
Reference in New Issue