NetBSD/sys/net
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 Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more. 2002-11-26 23:30:07 +00:00
bpf.c Check that the process/process group id passed to TIOCSPRP is in the session 2003-03-13 10:18:35 +00:00
bpf.h
bpf_filter.c
bpfdesc.h
bridgestp.c Test callout_pending(), not callout_active(), and eliminate now-unnecessary 2003-02-03 23:50:59 +00:00
bsd-comp.c
dlt.h depreceated->deprecated 2003-04-17 22:55:29 +00:00
ethertypes.h
if.c Add extensible malloc types, adapted from FreeBSD. This turns 2003-02-01 06:23:35 +00:00
if.h Add a new feature-test macro, _NETBSD_SOURCE. If this is defined 2003-04-28 23:16:11 +00:00
if_arc.h
if_arcsubr.c Remove variable that is only assigned too but not referenced. 2003-01-19 23:13:46 +00:00
if_arp.h
if_atm.h
if_atmsubr.c Remove variable that is only assigned too but not referenced. 2003-01-19 23:13:46 +00:00
if_bridge.c Fix 2 bugs: 2003-03-19 10:34:33 +00:00
if_bridgevar.h Fix 2 bugs: 2003-03-19 10:34:33 +00:00
if_dl.h
if_eco.h
if_ecosubr.c switch from kame-based m_aux mbuf auxiliary data, to openbsd m_tag 2003-01-17 08:11:49 +00:00
if_ether.h Make promiscous mode work on vlans: introduce a new link-layer m_flag 2003-03-25 13:29:39 +00:00
if_ethersubr.c Make promiscous mode work on vlans: introduce a new link-layer m_flag 2003-03-25 13:29:39 +00:00
if_faith.c
if_faith.h
if_fddi.h
if_fddisubr.c Fix tpyo. 2003-02-26 07:47:42 +00:00
if_gif.c
if_gif.h
if_gre.c Remove assigned-to but not used variable. 2003-02-23 04:20:06 +00:00
if_gre.h
if_hippi.h
if_hippisubr.c Remove variable that is only assigned too but not referenced. 2003-01-19 23:13:46 +00:00
if_ieee1394.h
if_ieee1394subr.c
if_ieee80211.h Host AP power saving support. The Host AP notices that the power 2003-04-08 04:31:23 +00:00
if_ieee80211subr.c Host AP power saving support. The Host AP notices that the power 2003-04-08 04:31:23 +00:00
if_llc.h
if_loop.c Add MBUFTRACE kernel option. 2003-02-26 06:31:08 +00:00
if_media.c when there are multiple matches for the requested media, select the first 2002-11-12 16:54:45 +00:00
if_media.h Accept standard IEEE 802.3 names for Ethernet medium types. 2003-04-23 23:16:43 +00:00
if_ppp.c PR/20844: Iain Hibbert: PPP Compressors cannot be loaded as LKM 2003-03-27 17:50:06 +00:00
if_ppp.h
if_pppoe.c Backout previous, I'm on crack obviously. 2003-03-01 15:50:15 +00:00
if_pppoe.h
if_pppvar.h
if_sl.c Add MBUFTRACE kernel option. 2003-02-26 06:31:08 +00:00
if_slvar.h
if_sppp.h successful with only one l. 2003-01-06 12:46:05 +00:00
if_spppsubr.c Use MRU negotiated with remote system as MTU. This fixes PR kern/18850 2003-01-28 15:36:38 +00:00
if_spppvar.h Use MRU negotiated with remote system as MTU. This fixes PR kern/18850 2003-01-28 15:36:38 +00:00
if_stf.c more pickier packet validation, based on 2002-11-17 19:29:31 +00:00
if_stf.h
if_strip.c Add MBUFTRACE kernel option. 2003-02-26 06:31:08 +00:00
if_stripvar.h
if_token.h
if_tokensubr.c
if_tun.c Validate pgid arg to TIOCSPGRP 2003-03-13 10:24:38 +00:00
if_tun.h
if_types.h
if_vlan.c switch from kame-based m_aux mbuf auxiliary data, to openbsd m_tag 2003-01-17 08:11:49 +00:00
if_vlanvar.h
net_osdep.c
net_osdep.h
netisr.h Allow a machine-dependent definition of schednetisr. 2003-03-15 07:51:06 +00:00
netisr_dispatch.h
pfil.c
pfil.h
pfkeyv2.h
ppp-comp.h PR/20844: Iain Hibbert: PPP Compressors cannot be loaded as LKM 2003-03-27 17:50:06 +00:00
ppp-deflate.c
ppp_defs.h
ppp_tty.c Add MBUFTRACE kernel option. 2003-02-26 06:31:08 +00:00
radix.c Avoid strict-alias warnings. 2002-11-25 01:55:21 +00:00
radix.h
raw_cb.c
raw_cb.h
raw_usrreq.c
route.c remove all entries in rt timer queue on ip_mtudisc change, instead of 2002-11-12 02:10:13 +00:00
route.h bandwidth, not bandwith. 2003-01-18 12:02:40 +00:00
rtsock.c Add MBUFTRACE kernel option. 2003-02-26 06:31:08 +00:00
slcompress.c
slcompress.h
slip.h
zlib.c
zlib.h