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

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

.../glibc$ grep_glibc_prototype getdirentries
dirent/dirent.h:353:
extern __ssize_t getdirentries (int __fd, char *__restrict __buf,
				size_t __nbytes,
				__off_t *__restrict __basep)
     __THROW __nonnull ((2, 4));
.../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-02-28 01:48:08 +01:00 committed by Michael Kerrisk
parent 5e0058dce8
commit 934e516236
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ getdirentries \- get directory entries in a filesystem-independent format
.nf
.B #include <dirent.h>
.PP
.BI "ssize_t getdirentries(int " fd ", char *" buf ", size_t " nbytes ,
.BI " off_t *" basep );
.BI "ssize_t getdirentries(int " fd ", char *restrict " buf ", size_t " nbytes ,
.BI " off_t *restrict " basep );
.fi
.PP
.RS -4