[PATCH 19/23] realpath.3: SYNOPSIS: Use 'restrict' in prototypes

Alejandro Colomar
2021-03-08T18:55:17Z

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>
---
man3/realpath.3 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/man3/realpath.3 b/man3/realpath.3
index 643cdaaec..100567217 100644
--- a/man3/realpath.3
+++ b/man3/realpath.3
@@ -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
--
2.30.1