From patchwork Tue Jun 17 15:58:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 360561 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 30C26140091 for ; Wed, 18 Jun 2014 01:58:31 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:message-id :mime-version:content-type; q=dns; s=default; b=iEqplHGMUKhB1bS7 MIlBloricbCB2c8n/r2RJyADAkVMjADBG8WTIyu2m0NqZ2AEMhMOfUDb+vbNBZWg KB2s8LcDED9M+0aoAikfWt7BxVkOPYgii5WC11lKD/gEp6ZMSpZt+P7SSLf15PnG qxqqipxkcnmJOg5golllqytYM94= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:message-id :mime-version:content-type; s=default; bh=2rqpgq6pdgkOPCOXmt7JRK damPk=; b=WvZhmRPesMQZUFrQFV/sXMqAMIEzudkp0+P+1U6jV0KDb73grsCUz1 WxNMCIDxuKpyfc+Jjh6LEVdEM5Y6F4pkq659eMDm/ieD34JokKiImVQKPh8dpCdX IbuZ2VOXTy0OxoGXcPIacCvvUlvTHL+0NGRTLDs7UaJLqULNjpmt4= Received: (qmail 17994 invoked by alias); 17 Jun 2014 15:58:26 -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 17984 invoked by uid 89); 17 Jun 2014 15:58:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Tue, 17 Jun 2014 15:58:16 +0000 From: "Joseph S. Myers" To: CC: David Holsgrove Subject: Update MicroBlaze kernel-features.h for syscalls added in 3.15 Message-ID: MIME-Version: 1.0 Now that the MicroBlaze 3.15 kernel has the pselect6, preadv and pwritev syscalls, this patch updates kernel-features.h so they are assumed to be present for 3.15 and later kernels. Not tested. 2014-06-17 Joseph Myers * sysdeps/unix/sysv/linux/microblaze/kernel-features.h [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not undefine. [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise. [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise. diff --git a/sysdeps/unix/sysv/linux/microblaze/kernel-features.h b/sysdeps/unix/sysv/linux/microblaze/kernel-features.h index 066c12d..34b0521 100644 --- a/sysdeps/unix/sysv/linux/microblaze/kernel-features.h +++ b/sysdeps/unix/sysv/linux/microblaze/kernel-features.h @@ -45,8 +45,10 @@ # undef __ASSUME_SET_ROBUST_LIST #endif -/* The MicroBlaze kernel does not support the pselect6, preadv and - pwritev syscalls. */ -#undef __ASSUME_PSELECT -#undef __ASSUME_PREADV -#undef __ASSUME_PWRITEV +/* Support for the pselect6, preadv and pwritev syscalls was added in + 3.15. */ +#if __LINUX_KERNEL_VERSION < 0x030f00 +# undef __ASSUME_PSELECT +# undef __ASSUME_PREADV +# undef __ASSUME_PWRITEV +#endif