NetBSD/sys/arch/i386/include
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
..
Makefile
acpi_machdep.h
ansi.h
aout_machdep.h
apicvar.h
apmvar.h Use PAGE_SIZE rather than NBPG. 2003-04-02 07:35:54 +00:00
asm.h
atomic.h
bios32.h
bioscall.h Use PAGE_SIZE rather than NBPG. 2003-04-02 07:35:54 +00:00
bootinfo.h
bswap.h
bus.h
byte_swap.h
cdefs.h
coff_machdep.h
cpu.h Share some common cache info cpuid code between i386 and x86_64. 2003-04-25 21:54:29 +00:00
cpu_counter.h
cpufunc.h
cputypes.h
cpuvar.h
darwin_machdep.h
db_machdep.h Remove unneeded cast that prevents PC_REGS from being used as lvalue. 2003-03-30 02:03:12 +00:00
disklabel.h
eisa_machdep.h
elf_machdep.h
endian.h
endian_machdep.h
float.h
frame.h
frameasm.h
freebsd_machdep.h
gdt.h
i8259.h
i82093reg.h
i82093var.h
i82489reg.h
i82489var.h
ibcs2_machdep.h
ieee.h
ieeefp.h
int_const.h
int_fmtio.h
int_limits.h
int_mwgwtypes.h
int_types.h
intr.h
intrdefs.h
ipkdb.h
isa_machdep.h
isapnp_machdep.h
joystick.h
kcore.h
kvm86.h
limits.h Add a new feature-test macro, _NETBSD_SOURCE. If this is defined 2003-04-28 23:16:11 +00:00
loadfile_machdep.h
lock.h
macho_machdep.h
math.h
mca_machdep.h
mcontext.h
mouse.h
mpacpi.h
mpbiosreg.h
mpbiosvar.h
mpconfig.h
mtrr.h
npx.h
param.h
pcb.h
pccons.h
pci_machdep.h
pic.h
pio.h
pmap.h Add the ability for pool caches to cache the physical address of 2003-04-09 18:22:13 +00:00
pmc.h
proc.h Use PAGE_SIZE rather than NBPG. 2003-04-02 07:35:54 +00:00
profile.h
psl.h
pte.h Use PAGE_SIZE rather than NBPG. 2003-04-02 07:35:54 +00:00
ptrace.h
rbus_machdep.h
reg.h
segments.h
setjmp.h
signal.h Add a new feature-test macro, _NETBSD_SOURCE. If this is defined 2003-04-28 23:16:11 +00:00
specialreg.h
spkr.h
stdarg.h Add a new feature-test macro, _NETBSD_SOURCE. If this is defined 2003-04-28 23:16:11 +00:00
svr4_machdep.h
sysarch.h
tlog.h
trap.h
tss.h
types.h Add a new feature-test macro, _NETBSD_SOURCE. If this is defined 2003-04-28 23:16:11 +00:00
userret.h
varargs.h
vm86.h
vmparam.h Use PAGE_SIZE rather than NBPG. 2003-04-02 07:35:54 +00:00