mirror of https://github.com/mkerrisk/man-pages
fopencookie.3: SYNOPSIS: Use 'restrict' in prototypes
glibc uses 'restrict' for fopencookie(). Let's use it here too. glibc: libio/stdio.h:285: FILE *fopencookie (void *restrict magic_cookie, const char *restrict modes, cookie_io_functions_t io_funcs) THROW wur; Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
e7bb37ab1b
commit
f61d0340cc
|
@ -31,7 +31,7 @@ fopencookie \- opening a custom stream
|
|||
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
|
||||
.B #include <stdio.h>
|
||||
.PP
|
||||
.BI "FILE *fopencookie(void *" cookie ", const char *" mode ,
|
||||
.BI "FILE *fopencookie(void *restrict " cookie ", const char *restrict " mode ,
|
||||
.BI " cookie_io_functions_t " io_funcs );
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
|
|
Loading…
Reference in New Issue