summaryrefslogtreecommitdiff
path: root/lib/libc/gen/basename.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/basename.3')
-rw-r--r--lib/libc/gen/basename.322
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/libc/gen/basename.3 b/lib/libc/gen/basename.3
index 51a90e404746..3bbddd9233e2 100644
--- a/lib/libc/gen/basename.3
+++ b/lib/libc/gen/basename.3
@@ -16,7 +16,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd October 29, 2016
+.Dd May 22, 2017
.Dt BASENAME 3
.Os
.Sh NAME
@@ -34,6 +34,16 @@ function returns the last component from the pathname pointed to by
deleting any trailing
.Sq \&/
characters.
+.Sh IMPLEMENTATION NOTES
+This implementation of
+.Fn basename
+uses the buffer provided by the caller to store the resulting pathname
+component.
+Other vendor implementations may return a pointer to internal storage
+space instead.
+The advantage of the former approach is that it ensures thread-safety,
+while also placing no upper limit on the supported length of the
+pathname.
.Sh RETURN VALUES
If
.Fa path
@@ -50,16 +60,6 @@ is returned.
Otherwise,
it returns a pointer to the last component of
.Fa path .
-.Sh IMPLEMENTATION NOTES
-This implementation of
-.Fn basename
-uses the buffer provided by the caller to store the resulting pathname
-component.
-Other vendor implementations may return a pointer to internal storage
-space instead.
-The advantage of the former approach is that it ensures thread-safety,
-while also placing no upper limit on the supported length of the
-pathname.
.Sh SEE ALSO
.Xr basename 1 ,
.Xr dirname 1 ,