glibc/nis
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
..
nss_compat Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nss_nis Return proper status from _nss_nis_initgroups_dyn (bug 20262) 2016-06-30 13:55:36 +02:00
nss_nisplus Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
rpcsvc Installed-header hygiene (BZ#20366): Simple self-contained fixes. 2016-09-23 08:43:55 -04:00
Depend
libnsl.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_add.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_addmember.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_call.c Suppress GCC 6 warning about ambiguous 'else' with -Wparentheses 2016-04-15 13:30:55 +02:00
nis_callback.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_checkpoint.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_clone_dir.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_clone_obj.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_clone_res.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_creategroup.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_defaults.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_destroygroup.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_domain_of_r.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_domain_of.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_error.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_error.h * nis/nis_error.c: Remove table of strings. Use position 2006-05-11 20:29:20 +00:00
nis_file.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_findserv.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_free.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_getservlist.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_hash.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_intern.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_ismember.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_local_names.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_lookup.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_mkdir.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_modify.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_ping.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_print_group_entry.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_print.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_remove.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_removemember.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_rmdir.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_server.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_subr.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_table.c Silence some false positive warnings for gcc 4.7 2016-01-21 09:11:17 -05:00
nis_util.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_verifygroup.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_xdr.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nis_xdr.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nisplus-parser.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nss Implement new mode for NIS passwd.adjunct.byname table. 2010-04-07 07:37:39 -07:00
nss-default.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nss-nis.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nss-nis.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nss-nisplus.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nss-nisplus.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
Versions * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend 2008-05-10 23:27:39 +00:00
yp_xdr.c Set reasonable limits for xdr_requests. 2013-05-30 22:01:22 -04:00
ypclnt.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
ypupdate_xdr.c More copyright changes. 2010-09-01 05:10:04 -07:00