]> git.saurik.com Git - apple/libc.git/blame - gen/FreeBSD/dirname.3.patch
Libc-763.12.tar.gz
[apple/libc.git] / gen / FreeBSD / dirname.3.patch
CommitLineData
1f2f436a
A
1--- dirname.3.orig 2009-11-07 15:32:33.000000000 -0800
2+++ dirname.3 2009-11-07 15:35:29.000000000 -0800
3@@ -25,7 +25,9 @@
224c7076
A
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
1f2f436a 14@@ -58,8 +60,20 @@ Other vendor implementations of
224c7076
A
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.
1f2f436a
A
34 .Sh RETURN VALUES
35 On successful completion,
36 .Fn dirname
37@@ -82,7 +96,8 @@ The path component to be returned was la
224c7076
A
38 .Sh SEE ALSO
39 .Xr basename 1 ,
40 .Xr dirname 1 ,
41-.Xr basename 3
42+.Xr basename 3 ,
43+.Xr compat 5
44 .Sh STANDARDS
45 The
46 .Fn dirname