]>
Commit | Line | Data |
---|---|---|
224c7076 A |
1 | --- basename.3 2004-11-25 11:38:00.000000000 -0800 |
2 | +++ basename.3.edit 2006-07-12 10:54:25.000000000 -0700 | |
3 | @@ -36,7 +36,9 @@ | |
4 | .Sh SYNOPSIS | |
5 | .In libgen.h | |
6 | .Ft char * | |
7 | -.Fn basename "const char *path" | |
8 | +.Fo basename | |
9 | +.Fa "char *path" | |
10 | +.Fc | |
11 | .Sh DESCRIPTION | |
12 | The | |
13 | .Fn basename | |
14 | @@ -81,12 +83,27 @@ | |
15 | The | |
16 | .Fn basename | |
17 | function | |
18 | -returns a pointer to internal static storage space that will be overwritten | |
19 | -by subsequent calls. | |
20 | +returns a pointer to internal static storage space | |
21 | +that will be overwritten by subsequent calls. | |
22 | +The function may modify the string pointed to by | |
23 | +.Fa path . | |
24 | +.Sh LEGACY SYNOPSIS | |
25 | +.Fd #include <libgen.h> | |
26 | +.Pp | |
27 | +.Ft char * | |
28 | +.br | |
29 | +.Fo basename | |
30 | +.Fa "const char *path" | |
31 | +.Fc ; | |
32 | +.Pp | |
33 | +In legacy mode, | |
34 | +.Fa path | |
35 | +will not be changed. | |
36 | .Sh SEE ALSO | |
37 | .Xr basename 1 , | |
38 | .Xr dirname 1 , | |
39 | -.Xr dirname 3 | |
40 | +.Xr dirname 3 , | |
41 | +.Xr compat 5 | |
42 | .Sh STANDARDS | |
43 | The | |
44 | .Fn basename |