From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125103 invoked by alias); 1 Nov 2016 17:28:29 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 125092 invoked by uid 89); 1 Nov 2016 17:28:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=undefine, Hx-languages-length:1370 X-HELO: mail-vk0-f51.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=FDxv7U9JUO6sXTVtJLIN6mTV1P/4M+GYMcR/9uxC2IA=; b=FuAiEc2Atg5f45Ve/dtTuiSRBYAtfdLKbImZL2PFQkcM8sJMzYo76mZv1+0bJgqc3C IApKG4zCVpuZSvdikUzte7y81Vz84rxOX0sVEK/uC5n4OfNbmTNweGUvSZd9diultxhj 5nHx89aNNoqf61LW3iwhxDw/HwxI1RlJgQ3pexDb4vaGroTfKGMi9+PntQ6l1I4QQyLL s1tqXv7+AYRRQi2sxm9XZcDzu81j294rz2GFSbpRu66+P3Ppap6KwhYenSMRXRoFK0CD W3k1INo0IOSC63lTdKcotezl/HVTogVjH6AVZnUKQRZUjY8GZp1N01+bBBD9jhmiJQ90 tMCg== X-Gm-Message-State: ABUngvd+rywydL8Q5+c3pOe6neFhBxCj8vlJUjLNJdXuWVvIVdnpqu9fc5zXLBtJNzdRXpi0 X-Received: by 10.31.72.135 with SMTP id v129mr26265341vka.160.1478021296134; Tue, 01 Nov 2016 10:28:16 -0700 (PDT) Subject: Re: [RFC][PATCH 1/2] sparc32: Mark sendmsg and recvmsg system calls as unsupported To: Andreas Larsson , GNU C Library References: <1478012867-6031-1-git-send-email-andreas@gaisler.com> <1478012867-6031-2-git-send-email-andreas@gaisler.com> Cc: Carlos O'Donell , David Miller , Torvald Riegel , software@gaisler.com From: Adhemerval Zanella Message-ID: <84cd18d8-2658-3e3c-a150-42584bfc6cdb@linaro.org> Date: Tue, 01 Nov 2016 17:28:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <1478012867-6031-2-git-send-email-andreas@gaisler.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-SW-Source: 2016-11/txt/msg00042.txt.bz2 On 01/11/2016 13:07, Andreas Larsson wrote: > This fixes a bug introduced by abf29edd4a3918 that missed fixing up > sparc32 in the change. > > * sysdeps/unix/sysv/linux/sparc/kernel-features.h: Undefine > __ASSUME_SENDMSG_SYSCALL and __ASSUME_RECVMSG_SYSCALL for 32-bit > sparcv8 > --- > sysdeps/unix/sysv/linux/sparc/kernel-features.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/sysdeps/unix/sysv/linux/sparc/kernel-features.h b/sysdeps/unix/sysv/linux/sparc/kernel-features.h > index 69c9c7c..db3f5cd 100644 > --- a/sysdeps/unix/sysv/linux/sparc/kernel-features.h > +++ b/sysdeps/unix/sysv/linux/sparc/kernel-features.h > @@ -32,8 +32,10 @@ > #include_next > > /* 32-bit SPARC kernels do not support > - futex_atomic_cmpxchg_inatomic. */ > + futex_atomic_cmpxchg_inatomic or sendmsg/recvmsg. */ > #if !defined __arch64__ && !defined __sparc_v9__ > # undef __ASSUME_REQUEUE_PI > # undef __ASSUME_SET_ROBUST_LIST > +# undef __ASSUME_SENDMSG_SYSCALL > +# undef __ASSUME_RECVMSG_SYSCALL > #endif > At least the kernel headers for Linux 3.2 on sparc defined both __NR_recvmsg and __NR_sendmsg. Also, checking 'arch/sparc/kernel/sys32.S' on 3.2 does seems that sparc32 have both recvmsg and sendmsg wire-up. Am I missing something here?