From patchwork Mon Nov 7 07:43:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Larsson X-Patchwork-Id: 17257 Received: (qmail 48543 invoked by alias); 7 Nov 2016 07:43:59 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 48523 invoked by uid 89); 7 Nov 2016 07:43:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL, BAYES_20, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=4.4, sendmsg, UD:kernel-features.h, sk:kernel- X-HELO: bin-vsp-out-04.atm.binero.net X-Halon-ID: eacd0d06-a4bd-11e6-be3c-005056917c0c Authorized-sender: andreas@gaisler.com From: Andreas Larsson To: GNU C Library Cc: David Miller , Adhemerval Zanella , software@gaisler.com Subject: [PATCH] sparc32: Make no sendmsg/recvmsg syscalls for older Linux kernels than 4.4 Date: Mon, 7 Nov 2016 08:43:35 +0100 Message-Id: <1478504615-11054-1-git-send-email-andreas@gaisler.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