History log of /netbsd-src/include/fnmatch.h (Results 1 – 13 of 13)
Revision Date Author Comments
# f913257c 31-Jan-2011 christos <christos@NetBSD.org>

new error.


# 19b7469a 03-Feb-2005 perry <perry@NetBSD.org>

de-__P -- the hack is long since useless. Discussed with christos,
matt, kleink, others. Approved by christos.


# 039cc956 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22270, verified by myself.


# 4be7a2dc 28-Apr-2003 bjh21 <bjh21@NetBSD.org>

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.

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.

show more ...


# b899aa2a 06-Oct-2002 provos <provos@NetBSD.org>

implement FNM_LEADING_DIR; matches Linux and other *BSDs; approved thorpej


# b2b3ca95 27-Oct-2001 kleink <kleink@NetBSD.org>

Make FNM_CASEFOLD !_XOPEN_SOURCE, too.


# 445d18ed 28-Jun-2000 thorpej <thorpej@NetBSD.org>

Implement FNM_CASEFOLD, for matching the pattern in a case-insensitive
way. Flag name taken from glibc.


# 7d2c50b5 13-Jan-1998 kleink <kleink@NetBSD.org>

Add a FNM_NOSYS return code. This condition will never happen (since fnmatch()
is implemented), but this preprocessor symbol is required by XPG4.2.


# 4d2cbfce 26-Oct-1994 cgd <cgd@NetBSD.org>

new RCS ID format.


# f7536c83 11-Nov-1993 jtc <jtc@NetBSD.org>

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.


# 7ab094cd 06-Nov-1993 cgd <cgd@NetBSD.org>

update to latest version; don't proto fnmatch() unless _POSIX_SOURCE
not defined.


# e9d867ef 01-Aug-1993 mycroft <mycroft@NetBSD.org>

Add RCS identifiers.


# 9a11d802 16-Jun-1993 jtc <jtc@NetBSD.org>

Update fnmatch to be more posix complient (from keith bostic)