diff options
| author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-02-24 15:43:07 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-03-03 23:12:22 +0100 |
| commit | f61d0340cc6bdce2fb3b442e067079c27d393093 (patch) | |
| tree | 46f6e1c5ab65ab2f0b9e3e530f902086797f4b3e | |
| parent | e7bb37ab1bfabc478129b62ace903cf7b882eee1 (diff) | |
| download | man-pages-f61d0340cc6bdce2fb3b442e067079c27d393093.tar.gz | |
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>
| -rw-r--r-- | man3/fopencookie.3 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man3/fopencookie.3 b/man3/fopencookie.3 index 35b01493f9..07736e3b21 100644 --- a/man3/fopencookie.3 +++ b/man3/fopencookie.3 @@ -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 |
