diff options
| author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-03-08 19:53:32 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-03-14 21:29:13 +0100 |
| commit | fe817dd03ca1745dd2505fbbf47d0d0cf42e781c (patch) | |
| tree | 1791d3e0b6384d6657955e77a92aeb56ef3ec053 /man3 | |
| parent | 2866f31e8b80402402b4e925d360ce93a698e2b7 (diff) | |
| download | man-pages-fe817dd03ca1745dd2505fbbf47d0d0cf42e781c.tar.gz | |
scandir.3: SYNOPSIS: Use 'restrict' in prototypes
glibc uses 'restrict' in scandirat().
Let's use it here too.
.../glibc$ grep_glibc_prototype scandirat
dirent/dirent.h:293:
extern int scandirat (int __dfd, const char *__restrict __dir,
struct dirent ***__restrict __namelist,
int (*__selector) (const struct dirent *),
int (*__cmp) (const struct dirent **,
const struct dirent **))
__nonnull ((2, 3));
.../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/scandir.3 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man3/scandir.3 b/man3/scandir.3 index 262e125c16..50328130f7 100644 --- a/man3/scandir.3 +++ b/man3/scandir.3 @@ -78,7 +78,7 @@ a directory for matching entries .BR "#include <fcntl.h>" " /* Definition of AT_* constants */" .B #include <dirent.h> .PP -.BI "int scandirat(int " dirfd ", const char *" dirp ", struct dirent ***" namelist , +.BI "int scandirat(int " dirfd ", const char *restrict " dirp ", struct dirent ***restrict " namelist , .BI " int (*" filter ")(const struct dirent *)," .BI " int (*" compar ")(const struct dirent **," .BI " const struct dirent **));" |
