summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-04-21 16:41:02 +0000
committerkib <kib@FreeBSD.org>2010-04-21 16:41:02 +0000
commite870225b6d5f15c4e055fbd3ac874a68d8216e74 (patch)
tree19601537d79769dc4437c9aa3a4d024bfe122c32 /lib/libc
parent1c6a4e29435e50d5fa4c1a97ad6109286decf3bf (diff)
downloadFreeBSD-src-e870225b6d5f15c4e055fbd3ac874a68d8216e74.zip
FreeBSD-src-e870225b6d5f15c4e055fbd3ac874a68d8216e74.tar.gz
Add standards section, improve wording, taking into account the handling
of NULL and changed type in declaration. Suggested by: bde MFC after: 2 weeks
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdlib/realpath.314
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/libc/stdlib/realpath.3 b/lib/libc/stdlib/realpath.3
index 371ee3b2..aee65f7 100644
--- a/lib/libc/stdlib/realpath.3
+++ b/lib/libc/stdlib/realpath.3
@@ -94,14 +94,11 @@ If an error occurs,
.Fn realpath
returns
.Dv NULL ,
-and
-.Fa resolved_path
-contains the pathname which caused the problem.
-If
+and if
.Fa resolved_path
-was
+is not
.Dv NULL ,
-then information of the failed pathname component is lost.
+the array that it points to contains the pathname which caused the problem.
.Sh ERRORS
The function
.Fn realpath
@@ -126,6 +123,11 @@ when given a relative
.Fa pathname .
.Sh "SEE ALSO"
.Xr getcwd 3
+.Sh STANDARDS
+The
+.Fn realpath
+function conforms to
+.St -p1003.1-2001 .
.Sh HISTORY
The
.Fn realpath
OpenPOWER on IntegriCloud