From: Alejandro Colomar Date: Mon, 8 Mar 2021 18:53:28 +0000 (+0100) Subject: realpath.3: SYNOPSIS: Use 'restrict' in prototypes X-Git-Tag: man-pages-5.11~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f8d366c7e8f826b0f6b8a373af3c910ff0cf8fe;p=thirdparty%2Fman-pages.git 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 Signed-off-by: Michael Kerrisk --- diff --git a/man3/realpath.3 b/man3/realpath.3 index 643cdaaec8..1005672172 100644 --- a/man3/realpath.3 +++ b/man3/realpath.3 @@ -33,7 +33,8 @@ realpath \- return the canonicalized absolute pathname .B #include .B #include .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