mirror of https://github.com/mkerrisk/man-pages
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:
parent
93a4d1d504
commit
2b19457ac5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue