Home | History | Annotate | Download | only in include
History log of /src/include/fnmatch.h
RevisionDateAuthorComments
 1.13  31-Jan-2011  christos new error.
 1.12  03-Feb-2005  perry branches: 1.12.50;
de-__P -- the hack is long since useless. Discussed with christos,
matt, kleink, others. Approved by christos.
 1.11  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22270, verified by myself.
 1.10  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.9  06-Oct-2002  provos implement FNM_LEADING_DIR; matches Linux and other *BSDs; approved thorpej
 1.8  27-Oct-2001  kleink Make FNM_CASEFOLD !_XOPEN_SOURCE, too.
 1.7  28-Jun-2000  thorpej branches: 1.7.2;
Implement FNM_CASEFOLD, for matching the pattern in a case-insensitive
way. Flag name taken from glibc.
 1.6  13-Jan-1998  kleink branches: 1.6.10;
Add a FNM_NOSYS return code. This condition will never happen (since fnmatch()
is implemented), but this preprocessor symbol is required by XPG4.2.
 1.5  26-Oct-1994  cgd new RCS ID format.
 1.4  11-Nov-1993  jtc Remove #ifdefs introduced in last change -- the <fnmatch.h> header is not
specified by 1003.1, so any program that includes it is automatically not
POSIX.1 compliant.
 1.3  06-Nov-1993  cgd update to latest version; don't proto fnmatch() unless _POSIX_SOURCE
not defined.
 1.2  01-Aug-1993  mycroft Add RCS identifiers.
 1.1  16-Jun-1993  jtc branches: 1.1.1;
Update fnmatch to be more posix complient (from keith bostic)
 1.1.1.1  02-Feb-1998  perry import lite-2
 1.6.10.1  03-Jul-2000  thorpej Pull up rev. 1.7:
Implement FNM_CASEFOLD, for matching the pattern in a case-insensitive
way. Flag name taken from glibc.
 1.7.2.2  18-Oct-2002  nathanw Catch up to -current.
 1.7.2.1  14-Nov-2001  nathanw Catch up to -current.
 1.12.50.1  08-Feb-2011  bouyer Sync with HEAD

RSS XML Feed