mirror of https://github.com/mkerrisk/man-pages
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:
parent
48294a557d
commit
86ce858344
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue