NetBSD/sys/arch/sparc/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 Install (new) cpuconf.h. 2003-04-11 13:54:16 +00:00
am7930_machdep.h
ansi.h add some ISO C 1995 I18N functions and types: 2003-03-02 22:18:11 +00:00
aout_machdep.h
apmvar.h
asm.h
autoconf.h Move makememarr() into promlib.c. 2003-02-18 13:36:51 +00:00
bootinfo.h
bsd_openprom.h
bswap.h
bus.h Introduce BUS_DMA_NOCACHE, and bus_dmamem_map() of i386 supports it. 2003-01-28 01:07:51 +00:00
cdefs.h
cgtworeg.h
cpu.h Add functions to set & get the interrupt target CPU. 2003-01-22 21:58:28 +00:00
cpuconf.h Move CPU configuration predicates to <machine/cpuconf.h>. 2003-04-09 16:22:33 +00:00
ctlreg.h
db_machdep.h
disklabel.h
eeprom.h
elf_machdep.h
endian.h
endian_machdep.h
fbvar.h
float.h PR/3012: Greg A. Woods: Write all float.h files [except the vax of course] 2003-04-19 23:05:28 +00:00
frame.h
fsr.h
idprom.h
ieee.h
ieeefp.h
instr.h
int_const.h
int_fmtio.h
int_limits.h
int_mwgwtypes.h
int_types.h
intr.h
kbd.h
kbio.h
kcore.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 Add support for large kernels by searching for a physical memory segment 2003-03-01 13:01:55 +00:00
lock.h
math.h
mcontext.h Merge the nathanw_sa branch. 2003-01-18 06:44:56 +00:00
oldmon.h
openfirm.h
openpromio.h
param.h Always include (new) cpuconf.h. 2003-04-11 13:55:24 +00:00
pcb.h
pci_machdep.h
pmap.h pmap_changeprot() is not a UVM <-> PMAP interface function; make it internal. 2003-03-02 21:37:20 +00:00
pmc.h
proc.h Merge the nathanw_sa branch. 2003-01-18 06:44:56 +00:00
profile.h
promlib.h Move all `ID prom' stuff into the prom library. 2003-02-26 17:39:05 +00:00
psl.h
pte.h
ptrace.h
reg.h
reloc.h
remote-sl.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
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 Merge the nathanw_sa branch. 2003-01-18 06:44:56 +00:00
tctrl.h
trap.h
types.h Add a new feature-test macro, _NETBSD_SOURCE. If this is defined 2003-04-28 23:16:11 +00:00
varargs.h
vmparam.h Don't define PAGE_SIZE, etc. in terms of NBPG, rather use the same 2003-04-09 16:27:06 +00:00
vuid_event.h
z8530var.h