Loading...
--- /dev/null
+++ Libc/Libc-498/gen/FreeBSD/basename.3.patch
@@ -0,0 +1,44 @@
+--- basename.3 2004-11-25 11:38:00.000000000 -0800
++++ basename.3.edit 2006-07-12 10:54:25.000000000 -0700
+@@ -36,7 +36,9 @@
+ .Sh SYNOPSIS
+ .In libgen.h
+ .Ft char *
+-.Fn basename "const char *path"
++.Fo basename
++.Fa "char *path"
++.Fc
+ .Sh DESCRIPTION
+ The
+ .Fn basename
+@@ -81,12 +83,27 @@
+ The
+ .Fn basename
+ function
+-returns a pointer to internal static storage space that will be overwritten
+-by subsequent calls.
++returns a pointer to internal static storage space
++that will be overwritten by subsequent calls.
++The function may modify the string pointed to by
++.Fa path .
++.Sh LEGACY SYNOPSIS
++.Fd #include <libgen.h>
++.Pp
++.Ft char *
++.br
++.Fo basename
++.Fa "const char *path"
++.Fc ;
++.Pp
++In legacy mode,
++.Fa path
++will not be changed.
+ .Sh SEE ALSO
+ .Xr basename 1 ,
+ .Xr dirname 1 ,
+-.Xr dirname 3
++.Xr dirname 3 ,
++.Xr compat 5
+ .Sh STANDARDS
+ The
+ .Fn basename