This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] sparc32: Make no sendmsg/recvmsg syscalls for older Linux kernels than 4.4
- From: Andreas Larsson <andreas at gaisler dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Cc: David Miller <davem at davemloft dot net>, Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, software at gaisler dot com
- Date: Mon, 7 Nov 2016 08:43:35 +0100
- Subject: [PATCH] sparc32: Make no sendmsg/recvmsg syscalls for older Linux kernels than 4.4
- Authentication-results: sourceware.org; auth=none
- Authorized-sender: andreas at gaisler dot com
The sendmsg and recvmsg systems calls were not available for 32-bit
sparc Linux kernels before Linux kernel version 4.4.
* sysdeps/unix/sysv/linux/sparc/kernel-features.h: Undefine
__ASSUME_SENDMSG_SYSCALL and __ASSUME_RECVMSG_SYSCALL for 32-bit
sparc for older Linux kernels than 4.4.
---
sysdeps/unix/sysv/linux/sparc/kernel-features.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sysdeps/unix/sysv/linux/sparc/kernel-features.h b/sysdeps/unix/sysv/linux/sparc/kernel-features.h
index 69c9c7c..b7a79a7 100644
--- a/sysdeps/unix/sysv/linux/sparc/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/sparc/kernel-features.h
@@ -36,4 +36,9 @@
#if !defined __arch64__ && !defined __sparc_v9__
# undef __ASSUME_REQUEUE_PI
# undef __ASSUME_SET_ROBUST_LIST
+/* All direct socketcalls are available only with kernel 4.4. */
+# if __LINUX_KERNEL_VERSION < 0x040400
+# undef __ASSUME_SENDMSG_SYSCALL
+# undef __ASSUME_RECVMSG_SYSCALL
+# endif
#endif
--
2.8.0