Loading...
--- Libc/Libc-763.13/gen/FreeBSD/glob.3.patch
+++ Libc/Libc-583/gen/FreeBSD/glob.3.patch
@@ -1,8 +1,8 @@
---- glob.3.orig 2011-01-26 13:57:29.000000000 -0800
-+++ glob.3 2011-01-26 14:02:29.000000000 -0800
-@@ -30,21 +30,38 @@
+--- glob.3.orig 2009-05-12 11:21:55.000000000 -0700
++++ glob.3 2009-05-20 15:39:07.000000000 -0700
+@@ -34,21 +34,38 @@
.\" @(#)glob.3 8.3 (Berkeley) 4/16/94
- .\" $FreeBSD: src/lib/libc/gen/glob.3,v 1.32 2007/01/09 00:27:54 imp Exp $
+ .\" $FreeBSD: src/lib/libc/gen/glob.3,v 1.30 2004/09/01 23:28:27 tjr Exp $
.\"
-.Dd September 1, 2004
+.Dd May 20, 2008
@@ -44,16 +44,7 @@
.Sh DESCRIPTION
The
.Fn glob
-@@ -60,7 +77,7 @@
- .Bd -literal
- typedef struct {
- size_t gl_pathc; /* count of total paths so far */
-- size_t gl_matchc; /* count of paths matching pattern */
-+ int gl_matchc; /* count of paths matching pattern */
- size_t gl_offs; /* reserved at beginning of gl_pathv */
- int gl_flags; /* returned flags */
- char **gl_pathv; /* list of paths matching pattern */
-@@ -322,18 +339,39 @@
+@@ -326,18 +343,39 @@
or
.Fa errfunc
returns zero, the error is ignored.
@@ -94,7 +85,7 @@
.Fa pglob
contain the values described below:
.Bl -tag -width GLOB_NOCHECK
-@@ -341,12 +379,22 @@
+@@ -345,12 +383,22 @@
contains the total number of matched pathnames so far.
This includes other matches from previous invocations of
.Fn glob
@@ -117,7 +108,7 @@
.It Fa gl_flags
contains a copy of the
.Fa flags
-@@ -369,6 +417,10 @@
+@@ -373,6 +421,10 @@
.Pp
If
.Fn glob
@@ -128,7 +119,7 @@
terminates due to an error, it sets errno and returns one of the
following non-zero constants, which are defined in the include
file
-@@ -414,6 +466,18 @@
+@@ -418,6 +470,18 @@
g.gl_pathv[1] = "-l";
execvp("ls", g.gl_pathv);
.Ed
@@ -147,7 +138,7 @@
.Sh SEE ALSO
.Xr sh 1 ,
.Xr fnmatch 3 ,
-@@ -452,6 +516,11 @@
+@@ -456,6 +520,11 @@
.Fn globfree
functions first appeared in
.Bx 4.4 .
@@ -159,7 +150,7 @@
.Sh BUGS
Patterns longer than
.Dv MAXPATHLEN
-@@ -459,7 +528,13 @@
+@@ -463,7 +532,13 @@
.Pp
The
.Fn glob