diff mbox series

[04/14] getdirentries.3: SYNOPSIS: Use 'restrict' in prototypes

Message ID 20210228004817.122463-5-alx.manpages@gmail.com
State New
Headers show
Series man3: SYNOPSIS: Use 'restrict' in prototypes (batch 2) | expand

Commit Message

Alejandro Colomar Feb. 28, 2021, 12:48 a.m. UTC
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>
---
 man3/getdirentries.3 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/man3/getdirentries.3 b/man3/getdirentries.3
index 0deff6371..9bba3cc4b 100644
--- a/man3/getdirentries.3
+++ b/man3/getdirentries.3
@@ -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