From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: Making a universal list of syscalls? Date: Wed, 05 Mar 2014 16:16:35 -0800 Message-ID: <5317BE63.1000600@zytor.com> References: <53162927.4040401@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from terminus.zytor.com ([198.137.202.10]:38615 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754326AbaCFAQw (ORCPT ); Wed, 5 Mar 2014 19:16:52 -0500 In-Reply-To: Sender: linux-arch-owner@vger.kernel.org List-ID: To: Andy Lutomirski Cc: "linux-kernel@vger.kernel.org" , linux-arch , libseccomp-discuss@lists.sourceforge.net On 03/05/2014 04:13 PM, Andy Lutomirski wrote: > > I think that SYSCALLS.def won't work as is -- SYSCALLS.def > references unistd, which ought to be autogenerated from the syscalls > list. But a somewhat less magical variant should work. > Well, that is because unistd.h is one of the very few things the kernel actually *does* export (containing system call numbers, and *usually* is enough to detect presence/absence of a certain system call, which is actually all you need in the vast majority of cases.) -hpa