NetBSD/sys/arch/i386
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
..
acpi use acpi notify mechanism if possible. 2003-04-23 15:48:35 +00:00
bios Use PAGE_SIZE rather than NBPG. 2003-04-01 20:48:27 +00:00
bioscall Use PAGE_SIZE rather than NBPG. 2003-04-08 23:39:14 +00:00
compile Rework how KERNOBJDIR functions; now it's always determined with 2003-01-06 17:40:18 +00:00
conf Add pseudo-device ksyms. 2003-04-26 14:10:04 +00:00
eisa Adapt for i386/x86 change. 2003-02-26 22:21:19 +00:00
gdbscripts Rename "stack" to "stacktrace" and have "stack" call "stacktrace $ebp $eip" 2000-06-08 14:42:11 +00:00
i386 Management, not managment. Mostly from jmc@openbsd. 2003-04-26 22:07:12 +00:00
include Add a new feature-test macro, _NETBSD_SOURCE. If this is defined 2003-04-28 23:16:11 +00:00
isa Initialize name and dma tag. 2003-04-20 16:54:23 +00:00
mca Adapt for i386/x86 change. 2003-02-26 22:21:19 +00:00
pci From PR port-i386/20464, by Yoshihisa Nakagawa: Match i845G AGP bridge. 2003-04-16 07:37:09 +00:00
pnpbios Use PAGE_SIZE rather than NBPG. 2003-04-01 20:48:27 +00:00
stand Master Boot Record (mbr) code: 2003-04-28 12:19:05 +00:00
Makefile Adapt for i386/x86 change. 2003-02-26 22:21:19 +00:00