Loading...
gen/FreeBSD/glob.3.patch Libc-583 Libc-763.11
--- Libc/Libc-583/gen/FreeBSD/glob.3.patch
+++ Libc/Libc-763.11/gen/FreeBSD/glob.3.patch
@@ -1,8 +1,8 @@
---- 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.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	8.3 (Berkeley) 4/16/94
- .\" $FreeBSD: src/lib/libc/gen/glob.3,v 1.30 2004/09/01 23:28:27 tjr Exp $
+ .\" $FreeBSD: src/lib/libc/gen/glob.3,v 1.32 2007/01/09 00:27:54 imp Exp $
  .\"
 -.Dd September 1, 2004
 +.Dd May 20, 2008
@@ -44,7 +44,16 @@
  .Sh DESCRIPTION
  The
  .Fn glob
-@@ -326,18 +343,39 @@
+@@ -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 @@
  or
  .Fa errfunc
  returns zero, the error is ignored.
@@ -85,7 +94,7 @@
  .Fa pglob
  contain the values described below:
  .Bl -tag -width GLOB_NOCHECK
-@@ -345,12 +383,22 @@
+@@ -341,12 +379,22 @@
  contains the total number of matched pathnames so far.
  This includes other matches from previous invocations of
  .Fn glob
@@ -108,7 +117,7 @@
  .It Fa gl_flags
  contains a copy of the
  .Fa flags
-@@ -373,6 +421,10 @@
+@@ -369,6 +417,10 @@
  .Pp
  If
  .Fn glob
@@ -119,7 +128,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
-@@ -418,6 +470,18 @@
+@@ -414,6 +466,18 @@
  g.gl_pathv[1] = "-l";
  execvp("ls", g.gl_pathv);
  .Ed
@@ -138,7 +147,7 @@
  .Sh SEE ALSO
  .Xr sh 1 ,
  .Xr fnmatch 3 ,
-@@ -456,6 +520,11 @@
+@@ -452,6 +516,11 @@
  .Fn globfree
  functions first appeared in
  .Bx 4.4 .
@@ -150,7 +159,7 @@
  .Sh BUGS
  Patterns longer than
  .Dv MAXPATHLEN
-@@ -463,7 +532,13 @@
+@@ -459,7 +528,13 @@
  .Pp
  The
  .Fn glob