Home | History | Annotate | Download | only in include
History log of /src/include/glob.h
RevisionDateAuthorComments
 1.27  29-May-2019  christos Add GLOB_TILDE_CHECK (from GNU)
 1.26  06-Sep-2010  christos branches: 1.26.46;
add globstar.
 1.25  08-Apr-2009  christos branches: 1.25.2;
add glob_pattern_p for glibc because cvs needs it and it is a huge mess
to compile in the gnu glob code.
 1.24  13-Sep-2008  christos branches: 1.24.6; 1.24.8;
PR/39534: Henning Petersen: Typo = instead of / to close comment.
 1.23  22-Feb-2008  christos branches: 1.23.4;
GLOB_NO_DOTDIRS patch from mouse@
Fixes re-definition of GLOB_PERIOD.
 1.22  05-Dec-2007  christos branches: 1.22.4;
From Richard M Kreuter, add GLOB_PERIOD.
 1.21  26-Mar-2006  christos branches: 1.21.10;
PR/33123: Murray Armfield: standards compliance & glob.h
Certain fields in glob.h need to be size_t; fix this and version glob(3).
http://www.opengroup.org/onlinepubs/000095399/basedefs/glob.h.html
 1.20  13-Sep-2005  christos compat code reorg
 1.19  03-Feb-2005  perry de-__P -- the hack is long since useless. Discussed with christos,
matt, kleink, others. Approved by christos.
 1.18  20-Jun-2004  jmc Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
 1.17  07-Aug-2003  agc branches: 1.17.2;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22270, verified by myself.
 1.16  28-Apr-2003  bjh21 Add a new feature-test macro, _NETBSD_SOURCE. If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
<sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE,
_POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve
existing behaviour.

This has two major advantages:
+ Programs that require non-POSIX facilities but define _POSIX_C_SOURCE
can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS.
+ It makes most of the #ifs simpler, in that they're all now ORs of the
various macros, rather than having checks for (!defined(_ANSI_SOURCE) ||
!defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.

I've tried not to change the semantics of the headers in any case where
_NETBSD_SOURCE wasn't defined, but there were some places where the
current semantics were clearly mad, and retaining them was harder than
correcting them. In particular, I've mostly normalised things so that
_ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE,
_XOPEN_SOURCE and _NETBSD_SOURCE in that order.

Tested by building for vax, encouraged by thorpej, and uncontested in
tech-userlevel for a week.
 1.15  28-Oct-2001  kleink Partially back out previous: don't apply restrict qualifier to pointer
to function.
 1.14  27-Oct-2001  kleink Sprinkle some __restrict into <glob.h>.
 1.13  16-Mar-2001  christos fix comment.
 1.12  16-Mar-2001  christos Add GLOB_LIMIT
 1.11  22-Jun-1998  tv branches: 1.11.2; 1.11.10; 1.11.12;
Typo: POSXI -> POSIX.
Re-add GLOB_QUOTE and GLOB_ABEND bracketed by standards ifs for source
compatibility.
 1.10  19-Jun-1998  kleink * Remove GLOB_QUOTE, add GLOB_NOESCAPE. Per POSIX, backslash quoting of
special characters is the default behaviour, which may be disabled by
setting GLOB_NOESCAPE.
* Add GLOB_NOMATCH, which will be returned if no matching pathnames have been
found and GLOB_NOCHECK was not set.
* Add GLOB_NOSYS for completeness; it will never happen.
 1.9  31-Mar-1998  kleink Replace the old GLOB_ABEND constant with (the standardized) GLOB_ABORTED.
 1.8  04-Nov-1997  thorpej Fix __RENAME quoting lossage (don't pass it a quoted string). From
Chris Demetriou <cgd@pa.dec.com>.
 1.7  22-Oct-1997  fvdl New hacks to make libc work painlessly without bumping the major number:
use type func(arg1s) asm("emitted_name") gcc mechanism.
Suggested by Bill Sommerfeld.
 1.6  21-Oct-1997  fvdl branches: 1.6.2;
Hacks to enable libc to work without bumping the major.
 1.5  26-Oct-1994  cgd new RCS ID format.
 1.4  06-Nov-1993  cgd update to latest version
 1.3  03-Aug-1993  mycroft New versions to go with new fts() et al.
 1.2  01-Aug-1993  mycroft Add RCS identifiers.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  02-Feb-1998  perry import lite-2
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.2.3  04-Nov-1997  thorpej Pull up from trunk: Fix __RENAME() usage.
 1.6.2.2  22-Oct-1997  thorpej Pull up from trunk: Update for less nasty function renaming.
 1.6.2.1  21-Oct-1997  thorpej file glob.h was added on branch netbsd-1-3 on 1997-10-22 06:26:46 +0000
 1.11.12.2  14-Nov-2001  nathanw Catch up to -current.
 1.11.12.1  08-Apr-2001  nathanw Merge trunk onto branch.
 1.11.10.1  29-Mar-2001  lukem pull up rev 1.11 - 1.13 (for christos):
add GLOB_LIMIT
 1.11.2.1  01-Apr-2001  he Pull up revisions 1.12-1.13 (requested by christos):
Fixes buffer overflow problems in glob(3). Adds and uses GLOB_LIMIT
to prevent denial of service attacks.
 1.17.2.1  22-Jun-2004  tron Pull up revision 1.18 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
 1.21.10.2  23-Mar-2008  matt sync with HEAD
 1.21.10.1  09-Jan-2008  matt sync with HEAD
 1.22.4.1  24-Mar-2008  keiichi sync with head.
 1.23.4.1  24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.24.8.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.24.6.2  13-Sep-2008  christos PR/39534: Henning Petersen: Typo = instead of / to close comment.
 1.24.6.1  13-Sep-2008  christos file glob.h was added on branch christos-time_t on 2008-09-13 17:05:08 +0000
 1.25.2.1  22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.26.46.1  10-Jun-2019  christos Sync with HEAD

RSS XML Feed