]> git.saurik.com Git - apple/libc.git/blame - gen/FreeBSD/dirname.3.patch
Libc-498.tar.gz
[apple/libc.git] / gen / FreeBSD / dirname.3.patch
CommitLineData
224c7076
A
1--- dirname.3 2004-11-25 11:38:00.000000000 -0800
2+++ dirname.3.edit 2006-07-12 11:18:01.000000000 -0700
3@@ -36,7 +36,9 @@
4 .Sh SYNOPSIS
5 .In libgen.h
6 .Ft char *
7-.Fn dirname "const char *path"
8+.Fo dirname
9+.Fa "char *path"
10+.Fc
11 .Sh DESCRIPTION
12 The
13 .Fn dirname
14@@ -88,12 +90,25 @@
15 .Fn dirname
16 may modify the contents of the string passed to
17 .Fn dirname ;
18-this should be taken into account when writing code which calls this function
19-if portability is desired.
20+if portability is desired,
21+this should be taken into account when writing code which calls this function.
22+.Sh LEGACY SYNOPSIS
23+.Fd #include <libgen.h>
24+.Pp
25+.Ft char *
26+.br
27+.Fo dirname
28+.Fa "const char *path"
29+.Fc ;
30+.Pp
31+In legacy mode,
32+.Fa path
33+will not be changed.
34 .Sh SEE ALSO
35 .Xr basename 1 ,
36 .Xr dirname 1 ,
37-.Xr basename 3
38+.Xr basename 3 ,
39+.Xr compat 5
40 .Sh STANDARDS
41 The
42 .Fn dirname