NetBSD/sys/arch/alpha
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
..
a12 Use PAGE_SIZE rather than NBPG. 2003-04-01 02:17:17 +00:00
alpha Call ksyms_init() instead of ddb_init() in case of 2003-04-26 11:05:05 +00:00
common Add support for using cached mbuf and cluster phys addrs. 2003-04-09 23:32:03 +00:00
compile Rework how KERNOBJDIR functions; now it's always determined with 2003-01-06 17:40:18 +00:00
conf Add some entries added to GENERIC recently. 2003-04-27 13:31:11 +00:00
eisa
include Add a new feature-test macro, _NETBSD_SOURCE. If this is defined 2003-04-28 23:16:11 +00:00
isa Use CFATTACH_DECL(). 2002-10-02 04:06:36 +00:00
jensenio Use aprint_normal() for cfprint routines. 2003-01-01 00:39:19 +00:00
mcbus Use aprint_normal() for cfprint routines. 2003-01-01 00:39:19 +00:00
pci Use aprint_normal() for cfprint routines. 2003-01-01 00:39:19 +00:00
sableio Use aprint_normal() for cfprint routines. 2003-01-01 00:39:19 +00:00
stand "bootparam" specific variables are defined in libsa/bootparam.c now. 2003-03-19 17:21:41 +00:00
tc Use aprint_normal() for cfprint routines. 2003-01-01 00:39:19 +00:00
tlsb Use aprint_normal() for cfprint routines. 2003-01-01 00:39:19 +00:00
Makefile Rework how KERNOBJDIR functions; now it's always determined with 2003-01-06 17:40:18 +00:00
STYLE Merge the gehenna-devsw branch into the trunk. 2002-09-06 13:18:43 +00:00