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:
Alejandro Colomar 2021-02-24 15:43:07 +01:00 committed by Michael Kerrisk
parent e7bb37ab1b
commit f61d0340cc
1 changed files with 1 additions and 1 deletions

View File

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