summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/dirname.39
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/gen/dirname.3 b/lib/libc/gen/dirname.3
index 05d57025dff..4f3d7754562 100644
--- a/lib/libc/gen/dirname.3
+++ b/lib/libc/gen/dirname.3
@@ -24,7 +24,7 @@
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $OpenBSD: dirname.3,v 1.7 1999/06/04 01:30:10 aaron Exp $
+.\" $OpenBSD: dirname.3,v 1.8 1999/07/17 09:32:30 downsj Exp $
.\"
.Dd August 17, 1997
.Dt DIRNAME 3
@@ -79,6 +79,13 @@ The path component to be returned was larger than
.Fn dirname
returns a pointer to internal static storage space that will be overwritten
by subsequent calls (each function has its own separate storage).
+.Pp
+Other vendor implementations of
+.Fn dirname
+may modify the contents of the string passed to
+.Fn dirname ;
+this should be taken into account when writing code which calls this function
+if portability is desired.
.Sh SEE ALSO
.Xr basename 1 ,
.Xr dirname 1 ,