Loading...
--- /dev/null
+++ Libc/Libc-763.13/gen/FreeBSD/dirname.3.patch
@@ -0,0 +1,46 @@
+--- dirname.3.orig 2009-11-07 15:32:33.000000000 -0800
++++ dirname.3 2009-11-07 15:35:29.000000000 -0800
+@@ -25,7 +25,9 @@
+ .Sh SYNOPSIS
+ .In libgen.h
+ .Ft char *
+-.Fn dirname "const char *path"
++.Fo dirname
++.Fa "char *path"
++.Fc
+ .Sh DESCRIPTION
+ The
+ .Fn dirname
+@@ -58,8 +60,20 @@ Other vendor implementations of
+ .Fn dirname
+ may modify the contents of the string passed to
+ .Fn dirname ;
+-this should be taken into account when writing code which calls this function
+-if portability is desired.
++if portability is desired,
++this should be taken into account when writing code which calls this function.
++.Sh LEGACY SYNOPSIS
++.Fd #include <libgen.h>
++.Pp
++.Ft char *
++.br
++.Fo dirname
++.Fa "const char *path"
++.Fc ;
++.Pp
++In legacy mode,
++.Fa path
++will not be changed.
+ .Sh RETURN VALUES
+ On successful completion,
+ .Fn dirname
+@@ -82,7 +96,8 @@ The path component to be returned was la
+ .Sh SEE ALSO
+ .Xr basename 1 ,
+ .Xr dirname 1 ,
+-.Xr basename 3
++.Xr basename 3 ,
++.Xr compat 5
+ .Sh STANDARDS
+ The
+ .Fn dirname