diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2008-09-26 07:22:00 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2008-09-26 07:22:00 +0200 |
| commit | bf0e2b8a8ee0ada0dc25f3890c41712656c65ab3 (patch) | |
| tree | 0773bdb7b0d7cc6a318524214cd6caaa404a0ad8 | |
| parent | d0cb7cc649b2b044a11660cd2361ad21609dbc0f (diff) | |
| download | man-pages-bf0e2b8a8ee0ada0dc25f3890c41712656c65ab3.tar.gz | |
realpath.3: clarify that returned pathname is NULL terminated
Also clarify that null-byte is included in PATH_MAX limit.
| -rw-r--r-- | man3/realpath.3 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/man3/realpath.3 b/man3/realpath.3 index 3854c39417..424c9279e7 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 "/./" |
