From 0f8d366c7e8f826b0f6b8a373af3c910ff0cf8fe Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Mon, 8 Mar 2021 19:53:28 +0100 Subject: [PATCH] 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 --- 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 .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