mirror of https://github.com/mkerrisk/man-pages
realpath.3: clarify that returned pathname is NULL terminated
Also clarify that null-byte is included in PATH_MAX limit.
This commit is contained in:
parent
d0cb7cc649
commit
bf0e2b8a8e
|
@ -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 "/./"
|
||||
|
|
Loading…
Reference in New Issue