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

glibc uses 'restrict' in setbuffer().
Let's use it here too.

.../glibc$ grep_glibc_prototype setbuffer
libio/stdio.h:314:
extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
		       size_t __size) __THROW;
.../glibc$

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-03-10 19:31:30 +01:00 committed by Michael Kerrisk
parent 4907425a46
commit b4d9224a93
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ setbuf, setbuffer, setlinebuf, setvbuf \- stream buffering operations
", size_t " size );
.PP
.BI "void setbuf(FILE *" stream ", char *" buf );
.BI "void setbuffer(FILE *" stream ", char *" buf ", size_t " size );
.BI "void setbuffer(FILE *restrict " stream ", char *restrict " buf ,
.BI " size_t " size );
.BI "void setlinebuf(FILE *" stream );
.fi
.PP