aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-03-08 19:53:27 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-03-14 21:29:13 +0100
commit1c82c772135673a12b80a4fb91106c13423622e4 (patch)
treebb10e9a8490cc6f8ef907795719d53b9084d3f5b /man3
parenta35332469495c48f7c1e22d3793b3234529be79a (diff)
downloadman-pages-1c82c772135673a12b80a4fb91106c13423622e4.tar.gz
readdir_r.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in readdir_r(). Let's use it here too. .../glibc$ grep_glibc_prototype readdir_r dirent/dirent.h:183: extern int readdir_r (DIR *__restrict __dirp, struct dirent *__restrict __entry, struct dirent **__restrict __result) __nonnull ((1, 2, 3)) __attribute_deprecated__; .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3')
-rw-r--r--man3/readdir_r.34
1 files changed, 2 insertions, 2 deletions
diff --git a/man3/readdir_r.3 b/man3/readdir_r.3
index f330adb35e..ad8f405f8e 100644
--- a/man3/readdir_r.3
+++ b/man3/readdir_r.3
@@ -30,8 +30,8 @@ readdir_r \- read a directory
.nf
.B #include <dirent.h>
.PP
-.BI "int readdir_r(DIR *" dirp ", struct dirent *" entry \
-", struct dirent **" result );
+.BI "int readdir_r(DIR *restrict " dirp ", struct dirent *restrict " entry ,
+.BI " struct dirent **restrict " result );
.fi
.PP
.RS -4