From 512213435cfc9cd064f561d1b2a13d013fed69d8 Mon Sep 17 00:00:00 2001 From: Jason Downs Date: Sat, 17 Jul 1999 09:32:31 +0000 Subject: Add a warning that our implementation is different from other vendors (Solaris). --- lib/libc/gen/dirname.3 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/libc') 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 , -- cgit v1.2.3