Commit Graph

12 Commits

Author SHA1 Message Date
perry
19b7469a00 de-__P -- the hack is long since useless. Discussed with christos,
matt, kleink, others. Approved by christos.
2005-02-03 04:39:32 +00:00
agc
039cc95684 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22270, verified by myself.
2003-08-07 09:44:09 +00:00
bjh21
4be7a2dcf3 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.
2003-04-28 23:16:11 +00:00
provos
b899aa2abc implement FNM_LEADING_DIR; matches Linux and other *BSDs; approved thorpej 2002-10-06 03:15:45 +00:00
kleink
b2b3ca958c Make FNM_CASEFOLD !_XOPEN_SOURCE, too. 2001-10-27 15:41:18 +00:00
thorpej
445d18ed28 Implement FNM_CASEFOLD, for matching the pattern in a case-insensitive
way.  Flag name taken from glibc.
2000-06-28 01:13:35 +00:00
kleink
7d2c50b586 Add a FNM_NOSYS return code. This condition will never happen (since fnmatch()
is implemented), but this preprocessor symbol is required by XPG4.2.
1998-01-13 12:45:02 +00:00
cgd
4d2cbfce0a new RCS ID format. 1994-10-26 00:55:40 +00:00
jtc
f7536c83d4 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.
1993-11-11 03:25:48 +00:00
cgd
7ab094cdab update to latest version; don't proto fnmatch() unless _POSIX_SOURCE
not defined.
1993-11-06 00:58:17 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
jtc
9a11d802b6 Update fnmatch to be more posix complient (from keith bostic) 1993-06-16 17:17:30 +00:00