glibc/sysdeps/unix/sysv/linux/alpha
Joseph Myers bc688c1029 Fix __ASSUME_SENDMMSG issues (bug 16611).
Similar to the issues for accept4 and recvmmsg, __ASSUME_SENDMMSG is
also confused about whether it relates to function availability or
socketcall operation availability, and the conditions for the
definition are always wrong (sendmmsg appeared in Linux kernel 3.0,
not 2.6.39); this is now bug 16611.

This patch splits the macro into separate macros like those for
accept4 and recvmmsg, defining them for appropriate kernel versions.

Tested x86_64, including that disassembly of the installed shared
libraries is unchanged by this patch.

	[BZ #16611]
	* sysdeps/unix/sysv/linux/kernel-features.h
	[__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
	(__ASSUME_SENDMMSG_SOCKETCALL): Define.
	[__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
	__powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
	Likewise.
	[__i386__ || __powerpc__ || __sh__ || __sparc__]
	(__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
	[__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
	(__ASSUME_SENDMMSG): Define instead of using previous
	[__LINUX_KERNEL_VERSION >= 0x020627] condition.
	* sysdeps/unix/sysv/linux/aarch64/kernel-features.h
	(__ASSUME_SENDMMSG_SYSCALL): Define.
	* sysdeps/unix/sysv/linux/alpha/kernel-features.h
	[__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
	Likewise.
	* sysdeps/unix/sysv/linux/arm/kernel-features.h
	[__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
	Likewise.
	* sysdeps/unix/sysv/linux/ia64/kernel-features.h
	[__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
	Likewise.
	* sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
	&& !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
	!__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
	[__ASSUME_SENDMMSG]: Change conditionals to
	[__ASSUME_SENDMMSG_SOCKETCALL].
	* sysdeps/unix/sysv/linux/microblaze/kernel-features.h
	[__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
	Define.
	* sysdeps/unix/sysv/linux/mips/kernel-features.h
	[__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
	Likewise.
	* sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
	!__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
	!__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
	[!__ASSUME_SENDMMSG]: Change conditional to
	[!__ASSUME_SENDMMSG_SOCKETCALL].
	* sysdeps/unix/sysv/linux/tile/kernel-features.h
	[__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
	Define.

	* sysdeps/unix/sysv/linux/hppa/kernel-features.h
	[__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
	Define.
2014-02-20 17:55:35 +00:00
..
alpha Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
alphaev6/fpu Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
alphaev67/fpu Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
bits Combine __USE_BSD and __USE_SVID into __USE_MISC. 2014-02-12 23:41:01 +00:00
fpu Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
nptl Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
sys Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
____longjmp_chk.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
a.out.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
adjtime.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
brk.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
clone.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
configure Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
configure.ac Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
creat.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
dl-auxv.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
dl-brk.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
dl-fxstatat64.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
dl-support.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
dl-sysdep.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fdatasync.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fraiseexcpt.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fstatfs64.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fstatvfs64.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fstatvfs.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fxstat.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fxstatat.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
getclktck.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
getcontext.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
getdents64.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
getdents.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
gethostname.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
getsysstats.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
glob.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
ieee_get_fp_control.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
ieee_set_fp_control.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
Implies Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
internal_statvfs64.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
ioperm.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
ipc_priv.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
kernel_sigaction.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
kernel_stat.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
kernel_sysinfo.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
kernel_termios.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
kernel-features.h Fix __ASSUME_SENDMMSG issues (bug 16611). 2014-02-20 17:55:35 +00:00
lxstat.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
makecontext.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
Makefile Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
msgctl.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
nldbl-abi.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
oldglob.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
pipe.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
register-dump.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
rt_sigaction.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
semctl.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
setcontext.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
setfpucw.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
shmctl.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
sigaction.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
sigcontextinfo.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
sigprocmask.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
sigsuspend.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
sizes.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
statfs64.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
statvfs64.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
statvfs.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
swapcontext.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
syscall.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
syscalls.list Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
sysconf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
sysdep.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
ucontext-offsets.sym Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
Versions Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
wordexp.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
xstat.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
xstatconv.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
xstatconv.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00