aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gen/basename.3
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2016-07-29 16:25:09 +0000
committerEd Schouten <ed@FreeBSD.org>2016-07-29 16:25:09 +0000
commit329ecc7f94c0749392225f65e157dcfa50134a73 (patch)
treee2407b68016c0ecd44fa73bc9d9ee44740de4fc2 /lib/libc/gen/basename.3
parentbb88f82294f8b034d42a47c44a3c7a17e9cd055d (diff)
downloadsrc-329ecc7f94c0749392225f65e157dcfa50134a73.tar.gz
src-329ecc7f94c0749392225f65e157dcfa50134a73.zip
Notes
Diffstat (limited to 'lib/libc/gen/basename.3')
-rw-r--r--lib/libc/gen/basename.312
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libc/gen/basename.3 b/lib/libc/gen/basename.3
index 859f1047f84e..6de009448bda 100644
--- a/lib/libc/gen/basename.3
+++ b/lib/libc/gen/basename.3
@@ -16,7 +16,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd July 28, 2016
+.Dd July 29, 2016
.Dt BASENAME 3
.Os
.Sh NAME
@@ -61,8 +61,16 @@ function
returns a pointer to internal storage space allocated on the first call
that will be overwritten
by subsequent calls.
+.Pp
+Other vendor implementations of
+.Fn basename
+may store their result in the input buffer,
+making it safe to use in multithreaded applications.
+Future versions of
+.Fx
+will follow this approach as well.
.Fn basename_r
-is therefore preferred for threaded applications.
+will then become obsolete.
.Sh RETURN VALUES
On successful completion,
.Fn basename