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:
Alejandro Colomar 2021-03-06 00:50:52 +01:00 committed by Michael Kerrisk
parent c445280cf3
commit e64e5812b3
1 changed files with 4 additions and 2 deletions

View File

@ -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