fseek.3: SYNOPSIS: Use 'restrict' in prototypes

Both POSIX and glibc use 'restrict' in fgetpos().
Let's use it here too.

glibc:
=============================  fgetpos
libio/stdio.h:736:
int fgetpos (FILE *restrict stream, fpos_t *restrict pos);

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:11 +01:00 committed by Michael Kerrisk
parent 93a4d1d504
commit 2b19457ac5
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ fgetpos, fseek, fsetpos, ftell, rewind \- reposition a stream
.PP
.BI "void rewind(FILE *" stream );
.PP
.BI "int fgetpos(FILE *" stream ", fpos_t *" pos );
.BI "int fgetpos(FILE *restrict " stream ", fpos_t *restrict " pos );
.BI "int fsetpos(FILE *" stream ", const fpos_t *" pos );
.fi
.SH DESCRIPTION