NetBSD/sys/arch/vax/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 Merge the nathanw_sa branch. 2003-01-18 06:55:21 +00:00
ansi.h add some ISO C 1995 I18N functions and types: 2003-03-02 22:18:11 +00:00
aout_machdep.h Rename __LDPGSZ to AOUT_LDPGSZ, to accurately reflect what it is. 2002-12-10 17:14:02 +00:00
asm.h Use the register prefix in the ELF case in _PROF_PROLOGUE. 2002-10-02 00:23:29 +00:00
bswap.h
bus.h Introduce BUS_DMA_NOCACHE, and bus_dmamem_map() of i386 supports it. 2003-01-28 01:07:51 +00:00
byte_swap.h
cca.h
cdefs.h
clock.h
coff_machdep.h
cpu.h Add machdep sysctl support. Support booted_device, consdev, and 2003-03-01 21:51:59 +00:00
db_machdep.h
disklabel.h
elf_machdep.h
endian.h
endian_machdep.h
float.h
frame.h
ibcs2_machdep.h Merge the nathanw_sa branch. 2003-01-18 06:55:21 +00:00
int_const.h
int_fmtio.h
int_limits.h
int_mwgwtypes.h
int_types.h
intr.h
ioa.h Add some instrumentation and clean up some VAX8600 code. 2003-01-19 22:29:22 +00:00
ka43.h Add multiple inclusion protection. 2002-12-01 21:21:44 +00:00
ka46.h Add multiple inclusion protection. 2002-12-01 21:21:44 +00:00
ka48.h Add multiple inclusion protection. 2002-12-01 21:21:44 +00:00
ka88.h Add multiple inclusion protection. 2002-12-01 21:21:44 +00:00
ka410.h Add multiple inclusion protection. 2002-12-01 21:21:44 +00:00
ka420.h Add multiple inclusion protection. 2002-12-01 21:21:44 +00:00
ka630.h
ka650.h Add multiple inclusion protection. 2002-12-01 21:21:44 +00:00
ka670.h Add multiple inclusion protection. 2002-12-01 21:21:44 +00:00
ka680.h Add multiple inclusion protection. 2002-12-01 21:21:44 +00:00
ka750.h Add multiple inclusion protection. 2002-12-01 21:21:44 +00:00
ka820.h Add multiple inclusion protection. 2002-12-01 21:21:44 +00:00
lcgreg.h
leds.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 This file has a _KERNEL dependency on <machine/cpu.h>. So include it. 2003-02-25 23:29:53 +00:00
macros.h Merge the nathanw_sa branch. 2003-01-18 06:55:21 +00:00
math.h
mcontext.h Merge the nathanw_sa branch. 2003-01-18 06:55:21 +00:00
mtpr.h Explicitly cast "g" arg to mtpr to long; to tell gcc that this 2003-01-22 23:06:37 +00:00
nexus.h
param.h Make common macros like every other port. Now newfs_lfs builds again. 2003-02-26 06:21:09 +00:00
pcb.h
pmap.h Change the pmap to use 512-byte pages as user page table pages instead of 2003-03-02 22:19:06 +00:00
pmc.h
proc.h make KSTACK_CHECK_* compile after sa merge. 2003-01-22 12:52:14 +00:00
profile.h
psl.h
pte.h eliminate PT_ENTRY_NULL in favor of plain old NULL. 2002-10-14 05:11:21 +00:00
ptrace.h
qdioctl.h
qdreg.h interrupt with two rs. 2003-01-06 13:04:54 +00:00
qduser.h
qevent.h
reg.h Add multiple inclusion protection. 2002-12-01 21:21:44 +00:00
rpb.h Add multiple inclusion protection. 2002-12-01 21:21:44 +00:00
rsp.h
scb.h
setjmp.h
sgmap.h
sid.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
trap.h
types.h Add a new feature-test macro, _NETBSD_SOURCE. If this is defined 2003-04-28 23:16:11 +00:00
uvax.h Add common routines to talk with the CPMBX, from Hugh Graham (hugh@openbsd.org) 2002-09-28 09:53:07 +00:00
varargs.h
vmparam.h Enable USE_TOPDOWN_VM. This also makes it possible to use large address 2003-02-26 21:54:35 +00:00
vsbus.h