.\" SUCH DAMAGE.
.\"
.\" @(#)glob.3 8.3 (Berkeley) 4/16/94
-.\" $FreeBSD: src/lib/libc/gen/glob.3,v 1.23 2003/02/04 16:28:04 mikeh Exp $
+.\" $FreeBSD: src/lib/libc/gen/glob.3,v 1.30 2004/09/01 23:28:27 tjr Exp $
.\"
-.Dd April 16, 1994
+.Dd September 1, 2004
.Dt GLOB 3
.Os
.Sh NAME
matching used by the shell.
.Pp
The include file
-.Pa glob.h
+.In glob.h
defines the structure type
.Fa glob_t ,
which contains at least the following fields:
.Tn OR
of any of the following
values defined in
-.Pa glob.h :
+.In glob.h :
.Bl -tag -width GLOB_ALTDIRFUNC
.It Dv GLOB_APPEND
Append pathnames generated to the ones from a previous call (or calls)
terminates due to an error, it sets errno and returns one of the
following non-zero constants, which are defined in the include
file
-.Aq Pa glob.h :
+.In glob.h :
.Bl -tag -width GLOB_NOCHECK
.It Dv GLOB_NOSPACE
An attempt to allocate memory failed, or if
.Xr fnmatch 3 ,
.Xr regexp 3
.Sh STANDARDS
-The
+The current implementation of the
.Fn glob
-function is expected to be
-.St -p1003.2
-compatible with the exception
-that the flags
+function
+.Em does not
+conform to
+.St -p1003.2 .
+Collating symbol expressions, equivalence class expressions and
+character class expressions are not supported.
+.Pp
+The flags
.Dv GLOB_ALTDIRFUNC ,
.Dv GLOB_BRACE ,
.Dv GLOB_LIMIT ,
.Fa gl_matchc
and
.Fa gl_flags
-should not be used by applications striving for strict
+are extensions to the
.Tn POSIX
+standard and
+should not be used by applications striving for strict
conformance.
.Sh HISTORY
The