glibc/inet
Zack Weinberg f2bea4da2e Installed-header hygiene (BZ#20366): conditionally defined structures.
Several network-related structures are defined conditionally under
__USE_MISC, but unconditionally used by other headers.  The path of
least resistance is usually to condition the uses on __USE_MISC as
well.

	* sysdeps/mach/hurd/net/if_ppp.h
	* sysdeps/unix/sysv/linux/net/if_ppp.h:
        Only define struct ifpppstatsreq and struct ifpppcstatsreq
        if __USE_MISC is defined, to ensure struct ifreq is declared.

	* inet/netinet/ether.h: Condition all function prototypes
        on __USE_MISC, to ensure struct ether_addr is declared.

sys/socket.h defines struct osockaddr only under __USE_MISC, whereas
protocols/talkd.h requires it unconditionally.  Here it doesn't make
sense to condition the entire body of protocols/talkd.h on __USE_MISC.
Rather than complicate sys/socket.h with a __need macro or duplicate
the definition, I am introducing a new concept: tiny headers named
bits/types/TYPE.h that define TYPE and nothing else.  This can, I hope,
ultimately replace *all* the __need macros.  The guard macro for such
headers will be __TYPE_defined, just in case application or third-party
library code is looking at them.

	* socket/bits/types/struct_osockaddr.h: New header.
	* include/bits/types/struct_osockaddr.h: New wrapper.
	* socket/Makefile: Install the new header.
	* socket/sys/socket.h,  inet/protocols/talkd.h:
	Refer to bits/types/struct_osockaddr.h for the definition of
	struct osockaddr.
2016-09-23 08:43:56 -04:00
..
arpa
netinet Installed-header hygiene (BZ#20366): conditionally defined structures. 2016-09-23 08:43:56 -04:00
protocols Installed-header hygiene (BZ#20366): conditionally defined structures. 2016-09-23 08:43:56 -04:00
aliases.h
bug-if1.c
check_native.c
check_pf.c
ether_aton_r.c
ether_aton.c
ether_hton.c
ether_line.c
ether_ntoa_r.c
ether_ntoa.c
ether_ntoh.c
getaliasent_r.c
getaliasent.c
getaliasname_r.c
getaliasname.c
gethstbyad_r.c
gethstbyad.c
gethstbynm2_r.c
gethstbynm2.c
gethstbynm_r.c
gethstbynm.c
gethstent_r.c
gethstent.c
getipv4sourcefilter.c
getnameinfo.c
getnetbyad_r.c
getnetbyad.c
getnetbynm_r.c
getnetbynm.c
getnetent_r.c
getnetent.c
getnetgrent_r.c
getnetgrent.c
getproto_r.c
getproto.c
getprtent_r.c
getprtent.c
getprtname_r.c
getprtname.c
getservent_r.c
getservent.c
getsourcefilter.c
getsrvbynm_r.c
getsrvbynm.c
getsrvbypt_r.c
getsrvbypt.c
herrno-loc.c
herrno.c
htonl.c
htons.c
htontest.c
if_index.c 2016-05-30 Paul Pluzhnikov <ppluzhnikov@google.com> 2016-05-30 15:32:09 -07:00
ifaddrs.c
ifaddrs.h
ifreq.c
in6_addr.c
inet6_opt.c
inet6_option.c
inet6_rth.c
inet6_scopeid_pton.c inet: Add __inet6_scopeid_pton function [BZ #20611] 2016-09-15 15:46:30 +02:00
inet_lnaof.c
inet_mkadr.c
inet_net.c
inet_netof.c
inet_ntoa.c
Makefile inet: Add __inet6_scopeid_pton function [BZ #20611] 2016-09-15 15:46:30 +02:00
net-internal.h inet: Add __inet6_scopeid_pton function [BZ #20611] 2016-09-15 15:46:30 +02:00
netgroup.h
rcmd.c
rexec.c
ruserpass.c 2016-05-30 Paul Pluzhnikov <ppluzhnikov@google.com> 2016-05-30 15:32:09 -07:00
setipv4sourcefilter.c
setsourcefilter.c
test_ifindex.c
test-ifaddrs.c
test-inet6_opt.c
tst-checks.c
tst-ether_aton.c
tst-ether_line.c
tst-gethnm.c
tst-getni1.c
tst-getni2.c
tst-inet6_rth.c
tst-inet6_scopeid_pton.c inet: Add __inet6_scopeid_pton function [BZ #20611] 2016-09-15 15:46:30 +02:00
tst-network.c
tst-ntoa.c
tst-sockaddr.c
Versions inet: Add __inet6_scopeid_pton function [BZ #20611] 2016-09-15 15:46:30 +02:00