glibc/bits
Zack Weinberg cb765808fb Installed-header hygiene (BZ#20366): Simple self-contained fixes.
Some headers did not include all of their prerequisite headers.

	* rpcsvc/nislib.h: Include rpcsvc/nis.h.
	* sysdeps/unix/sysv/linux/netrose/rose.h:
	Include sys/socket.h and netax25/ax25.h.

<endian.h> only defines BYTE_ORDER, BIG_ENDIAN, LITTLE_ENDIAN,
etc. under __USE_MISC; glibc's headers should use __BYTE_ORDER,
__BIG_ENDIAN, __LITTLE_ENDIAN, etc. instead.

	* inet/netinet/icmp6.h, inet/netinet/ip6.h
	* resolv/arpa/nameser_compat.h:
	Use __BYTE_ORDER etc. instead of BYTE_ORDER etc.

sys/types.h only conditionally defines caddr_t and clockid_t.

	* sysdeps/unix/sysv/linux/sys/quota.h:
	Use __caddr_t instead of caddr_t.
	* sysdeps/unix/sysv/linux/sys/timerfd.h:
	Use __clockid_t instead of clockid_t.

Remove a #warning that was the sole actual problem with using sys/ipc.h
without _GNU_SOURCE/_XOPEN_SOURCE.

	* sysvipc/sys/ipc.h: Remove unnecessary #warning.

_LIBC, __USE_XOPEN2K8, and __STDC_VERSION__ are not always defined.

It seems to me that _LIBC should not appear in installed headers, but
avoiding that for argp specifically would require more surgery than
feels appropriate for this patch set.  It's possible that
"#ifdef _LIBC" would be sufficient, but I wanted to be conservative.

All three versions of bits/socket.h want to know whether __flexarr
will produce a real flexible array member -- specifically, one that
doesn't alter sizeof(the structure containing it).  They were testing
for this with a complicated #if condition that did not agree with
sys/cdefs.h and that tripped -Wundef warnings under -std=c90.
I added a new macro to sys/cdefs.h, __glibc_c99_flexarr_available,
which reveals exactly what these headers want to know.  I also took
the opportunity to flatten the rather messy conditional nest defining
__flexarr.

	* argp/argp.h: Check whether _LIBC is defined before expanding it.
	* posix/glob.h: Check whether __USE_XOPEN2K8 is defined instead
	of expanding it.

	* misc/sys/cdefs.h: Tidy up conditional nest defining __flexarr.
	Define __glibc_c99_flexarr_available to 1 when the compiler
	supports C99-compatible flexible array members, 0 otherwise.
	* sysdeps/unix/sysv/linux/bits/socket.h
	* sysdeps/mach/hurd/bits/socket.h
	* bits/socket.h: Use __glibc_c99_flexarr_available in
	definitions of struct cmsghdr and CMSG_DATA.
2016-09-23 08:43:55 -04:00
..
byteswap-16.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
byteswap.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
confname.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
dirent.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
dlfcn.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
elfclass.h Update. 1999-07-27 05:53:25 +00:00
endian.h Update. 1997-11-26 04:23:08 +00:00
environments.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
errno.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
fcntl.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
fenv.h Add femode_t functions. 2016-09-07 16:40:09 +00:00
fenvinline.h Update. 1999-11-11 01:05:26 +00:00
huge_val.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
huge_valf.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
huge_vall.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
hwcap.h Move sysdeps/generic/bits/hwcap.h to top-level bits/ 2016-06-22 05:48:11 -07:00
in.h Define __USE_KERNEL_IPV6_DEFS macro for non-Linux kernels 2016-07-08 11:24:34 +02:00
inf.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
ioctl-types.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
ioctls.h Update. 1997-11-26 04:23:08 +00:00
ipc.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
ipctypes.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
libc-header-start.h Support __STDC_WANT_IEC_60559_FUNCS_EXT__ feature test macro. 2016-08-03 22:21:37 +00:00
libm-simd-decl-stubs.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
link.h * csu/elf-init.c (__libc_csu_fini): Don't do anything here. 2005-01-06 22:40:27 +00:00
local_lim.h Update. 1997-10-15 05:34:02 +00:00
math-vector.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
mathdef.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
mathinline.h * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline. 2007-03-17 17:04:28 +00:00
mman-linux.h Update glibc headers for Linux 4.5. 2016-03-14 19:04:53 +00:00
mman.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
mqueue.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
msq.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nan.h Update. 1997-10-15 05:34:02 +00:00
netdb.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
param.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
poll.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
posix_opt.h Update. 1997-10-15 05:34:02 +00:00
pthreadtypes.h 2002-11-10 Roland McGrath <roland@redhat.com> 2002-11-10 23:22:35 +00:00
resource.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sched.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
select.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sem.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
setjmp.h Update. 1997-11-26 04:23:08 +00:00
shm.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sigaction.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sigcontext.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
siginfo.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
signum.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sigset.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sigstack.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sigthread.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sockaddr.h Make padding in struct sockaddr_storage explicit [BZ #20111] 2016-05-23 19:43:09 +02:00
socket.h Installed-header hygiene (BZ#20366): Simple self-contained fixes. 2016-09-23 08:43:55 -04:00
stat.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
statfs.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
statvfs.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
stdlib-bsearch.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
string.h Add _STRING_INLINE_unaligned and string_private.h 2016-02-18 14:55:29 -02:00
stropts.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sys_errlist.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
syslog-path.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sysmacros.h Minimize sysdeps code involved in defining major/minor/makedev. 2016-08-03 15:23:04 -04:00
termios.h Fix TABDLY value 2016-07-13 22:41:40 +02:00
time.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
types.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
typesizes.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
uio.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
ustat.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
utmp.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
utsname.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
waitflags.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
waitstatus.h Remove union wait [BZ #19613] 2016-04-14 08:54:57 +02:00
wchar.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wordsize.h Update. 1999-05-19 15:35:26 +00:00
xtitypes.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00