diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1999-07-17 09:32:31 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1999-07-17 09:32:31 +0000 |
commit | 512213435cfc9cd064f561d1b2a13d013fed69d8 (patch) | |
tree | 3765044518a98161247b301fdc77ab3afb499140 /lib/libc | |
parent | 410f035588e954679714fdaf308cc16dd39bad03 (diff) |
Add a warning that our implementation is different from other vendors (Solaris).
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/dirname.3 | 9 |
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 , |