NetBSD/sys/netinet6
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
..
ah_core.c style 2003-04-22 10:08:33 +00:00
ah_input.c
ah_output.c
ah.h
dest6.c
esp_core.c
esp_input.c Remove variable that is only assigned too but not referenced. 2003-01-20 00:39:30 +00:00
esp_output.c
esp_rijndael.c
esp_rijndael.h
esp.h
files.netinet6
files.netipsec
frag6.c
icmp6.c avoid mbuf leak in redirect header option attachment. more complete 2003-03-31 23:55:46 +00:00
in6_cksum.c
in6_gif.c
in6_gif.h
in6_ifattach.c
in6_ifattach.h
in6_pcb.c
in6_pcb.h
in6_proto.c Protect the definition of offsetof(). 2003-04-17 19:58:57 +00:00
in6_src.c
in6_var.h Add extensible malloc types, adapted from FreeBSD. This turns 2003-02-01 06:23:35 +00:00
in6.c Add in6_localaddr(). From KAME via FreeBSD. 2003-02-27 22:06:38 +00:00
in6.h Add a new feature-test macro, _NETBSD_SOURCE. If this is defined 2003-04-28 23:16:11 +00:00
ip6_forward.c
ip6_input.c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
ip6_mroute.c
ip6_mroute.h
ip6_output.c
ip6_var.h success, not sucess. Noted by mjl. 2003-01-28 22:35:02 +00:00
ip6protosw.h
ipcomp_core.c
ipcomp_input.c
ipcomp_output.c
ipcomp.h
ipsec.c
ipsec.h
Makefile
mld6_var.h
mld6.c
nd6_nbr.c
nd6_rtr.c
nd6.c Make sure to initialize callout structs. 2003-02-25 22:17:47 +00:00
nd6.h Add extensible malloc types, adapted from FreeBSD. This turns 2003-02-01 06:23:35 +00:00
pim6_var.h
pim6.h
raw_ip6.c
raw_ip6.h
route6.c
udp6_output.c
udp6_usrreq.c
udp6_var.h
udp6.h