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:
Alejandro Colomar 2021-03-08 19:53:28 +01:00 committed by Michael Kerrisk
parent 1c82c77213
commit 0f8d366c7e
1 changed files with 2 additions and 1 deletions

View File

@ -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