From bf0e2b8a8ee0ada0dc25f3890c41712656c65ab3 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 26 Sep 2008 07:22:00 +0200 Subject: [PATCH] realpath.3: clarify that returned pathname is NULL terminated Also clarify that null-byte is included in PATH_MAX limit. --- man3/realpath.3 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/man3/realpath.3 b/man3/realpath.3 index 3854c3941..424c9279e 100644 --- a/man3/realpath.3 +++ b/man3/realpath.3 @@ -23,7 +23,7 @@ .\" Rewritten old page, 990824, aeb@cwi.nl .\" 2004-12-14, mtk, added discussion of resolved_path == NULL .\" -.TH REALPATH 3 2008-08-21 "" "Linux Programmer's Manual" +.TH REALPATH 3 2008-09-26 "" "Linux Programmer's Manual" .SH NAME realpath \- return the canonicalized absolute pathname .SH SYNOPSIS @@ -49,9 +49,12 @@ to and extra \(aq/\(aq characters in the null-terminated string named by .I path -and stores the canonicalized absolute pathname in the buffer of size +to produce a canonicalized absolute pathname. +The resulting pathname is stored as a null-terminated string, +up to a maximum of .B PATH_MAX -named by +butes, +in the buffer pointed to by .IR resolved_path . The resulting path will have no symbolic link, .I "/./"