glibc/sysdeps/unix
Florian Weimer 845278f2c6 Linux: Use in-tree copy of SO_ constants for !__USE_MISC [BZ #24532]
The kernel changes for a 64-bit time_t on 32-bit architectures
resulted in <asm/socket.h> indirectly including <linux/posix_types.h>.
The latter is not namespace-clean for the POSIX version of
<sys/socket.h>.

This issue has persisted across several Linux releases, so this commit
creates our own copy of the SO_* definitions for !__USE_MISC mode.

The new test socket/tst-socket-consts ensures that the copy is
consistent with the kernel definitions (which vary across
architectures).  The test is tricky to get right because CPPFLAGS
includes include/libc-symbols.h, which in turn defines _GNU_SOURCE
unconditionally.

Tested with build-many-glibcs.py.  I verified that a discrepancy in
the definitions actually results in a failure of the
socket/tst-socket-consts test.

(cherry picked from commit 7854ebf8ed18180189c335f6f499fe9322458f0b)
2019-11-18 18:16:03 +01:00
..
alpha alpha: force old OSF1 syscalls for getegid, geteuid and getppid [BZ #24986] 2019-09-14 20:12:11 +02:00
arm Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
bsd Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
i386 Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
inet Switch IDNA implementation to libidn2 [BZ #19728] [BZ #19729] [BZ #22247] 2018-05-23 15:27:24 +02:00
mips Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
powerpc Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sh Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sysv/linux Linux: Use in-tree copy of SO_ constants for !__USE_MISC [BZ #24532] 2019-11-18 18:16:03 +01:00
x86_64 Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
Implies
Makefile Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
clock_gettime.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
clock_nanosleep.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
clock_settime.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
confstr.h
get_child_max.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
getlogin.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
getlogin_r.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
getpagesize.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
grantpt.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ifreq.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
make-syscalls.sh Make llseek a compat symbol (bug 18471). 2018-05-22 15:44:01 +00:00
pt-fcntl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s-proto-cancel.S * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d. 2002-12-30 00:12:56 +00:00
s-proto.S
setxid.h Update. 2004-11-12 01:27:04 +00:00
sockatmark.c Fix a few typos in comments 2019-01-12 13:44:51 +00:00
stime.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
syscall-template.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
syscall.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
syscalls.list posix: Consolidate Linux fsync syscall 2017-05-18 18:06:47 -03:00
sysdep.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00