From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89838 invoked by alias); 22 Apr 2017 15:27:30 -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 89827 invoked by uid 89); 22 Apr 2017 15:27:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy= X-HELO: albireo.enyo.de From: Florian Weimer To: Andreas Schwab Cc: Carlos O'Donell , libc-alpha@sourceware.org, "Dmitry V. Levin" Subject: Re: [PATCH] : Use an arch-independent system call list on Linux References: <20170406143719.GA29170@altlinux.org> <1fd1a90c-1f79-5eef-d9d4-aef7ccc4965c@redhat.com> <87shl2x7xo.fsf@linux-m68k.org> <8737d1y6zo.fsf@linux-m68k.org> <87shl1vbsn.fsf@mid.deneb.enyo.de> <87pog5wpdh.fsf@linux-m68k.org> <87k26dvagc.fsf@mid.deneb.enyo.de> <87lgqtwo4i.fsf@linux-m68k.org> <87fuh1v9fu.fsf@mid.deneb.enyo.de> <87h91hwnus.fsf@linux-m68k.org> <87a879v8hz.fsf@mid.deneb.enyo.de> <87d1c46au4.fsf@linux-m68k.org> <878tmsac0q.fsf@mid.deneb.enyo.de> <8737d05zf0.fsf@linux-m68k.org> <87y3us8qu4.fsf@mid.deneb.enyo.de> <87y3us4h0b.fsf@linux-m68k.org> Date: Sat, 22 Apr 2017 15:27:00 -0000 In-Reply-To: <87y3us4h0b.fsf@linux-m68k.org> (Andreas Schwab's message of "Sat, 22 Apr 2017 17:08:20 +0200") Message-ID: <87tw5g8ntt.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2017-04/txt/msg00496.txt.bz2 * Andreas Schwab: > On Apr 22 2017, Florian Weimer wrote: > >> I was mistaken. As described, it will work. But if we only backport >> the the system call additions to the UAPI headers used by the >> applications, this >> >> #ifdef SYS_getrandom >> return syscall (SYS_getrandom, buf, len, 0); >> #else >> errno = ENOSYS; >> return -1; >> #endif >> >> could fail with an error that __NR_getrandom is undefined. > > Why? That's defined by the UAPI headers. I meant: If we do not rebase the UAPI headers (but backport changes as needed), while still building glibc against the current upstream headers (to get a complete SYS_ macro list before the backporting happens).