]> git.saurik.com Git - apple/libc.git/blob - gen/FreeBSD/dirname.3.patch
9fb8483094811c13f4c660ed531ca389dd58e4c8
[apple/libc.git] / gen / FreeBSD / dirname.3.patch
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 @@
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 @@ -58,8 +60,20 @@ Other vendor implementations of
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 RETURN VALUES
35 On successful completion,
36 .Fn dirname
37 @@ -82,7 +96,8 @@ The path component to be returned was la
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