[PATCH 04/24] setbuf.3: SYNOPSIS: Use 'restrict' in prototypes
Alejandro Colomar
alx.manpages@gmail.com
Wed Mar 10 18:31:30 GMT 2021
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>
---
man3/setbuf.3 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/man3/setbuf.3 b/man3/setbuf.3
index ccfeb83ba..ac73bb06e 100644
--- a/man3/setbuf.3
+++ b/man3/setbuf.3
@@ -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
--
2.30.1.721.g45526154a5
More information about the Libc-alpha
mailing list