mirror of https://github.com/mkerrisk/man-pages
realpath.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in realpath(). Let's use it here too. .../glibc$ grep_glibc_prototype realpath stdlib/stdlib.h:800: extern char *realpath (const char *__restrict __name, char *__restrict __resolved) __THROW __wur; .../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
1c82c77213
commit
0f8d366c7e
|
@ -33,7 +33,8 @@ realpath \- return the canonicalized absolute pathname
|
|||
.B #include <limits.h>
|
||||
.B #include <stdlib.h>
|
||||
.PP
|
||||
.BI "char *realpath(const char *" path ", char *" resolved_path );
|
||||
.BI "char *realpath(const char *restrict " path ,
|
||||
.BI " char *restrict " resolved_path );
|
||||
.fi
|
||||
.PP
|
||||
.RS -4
|
||||
|
|
Loading…
Reference in New Issue