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

Both POSIX and glibc use 'restrict' in glob().
Let's use it here too.

.../glibc$ grep_glibc_prototype glob
posix/glob.h:146:
extern int glob (const char *__restrict __pattern, int __flags,
		 int (*__errfunc) (const char *, int),
		 glob_t *__restrict __pglob) __THROW;
.../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-03-06 00:50:47 +01:00 committed by Michael Kerrisk
parent 48294a557d
commit 86ce858344
1 changed files with 2 additions and 2 deletions

View File

@ -38,9 +38,9 @@ glob, globfree \- find pathnames matching a pattern, free memory from glob()
.nf
.B #include <glob.h>
.PP
.BI "int glob(const char *" pattern ", int " flags ,
.BI "int glob(const char *restrict " pattern ", int " flags ,
.BI " int (*" errfunc ")(const char *" epath ", int " eerrno ),
.BI " glob_t *" pglob );
.BI " glob_t *restrict " pglob );
.BI "void globfree(glob_t *" pglob );
.fi
.SH DESCRIPTION