Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160513101548.GE22574@port70.net>
Date: Fri, 13 May 2016 12:15:48 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: Deduplicating __NR_* and SYS_* syscall defines

* Rich Felker <dalias@...c.org> [2016-05-11 20:57:12 -0400]:
> On Wed, May 11, 2016 at 07:22:30PM -0500, Bobby Bingham wrote:
> > On Wed, May 11, 2016 at 05:53:12PM -0400, Rich Felker wrote:
> > > On Mon, May 09, 2016 at 07:26:37PM -0500, Bobby Bingham wrote:
> > > > During the powerpc64 review, Rich mentioned wanting to replace the
> > > > arch/*/bits/syscall.h files with .in files that would be preprocessed with
> > > > something like:
> > > > 
> > > >     sed -e p -e s/__NR_/SYS_/ < $< > $@
> > > > 
> > > > This would eliminate a lot of intra-file duplication here.

i don't know how much is it worth to keep the syntax consistent
with kernel headers, i'd just clean these up with special syntax
like TYPEDEF in alltypes e.g.

SYS write 1

with consistent whitespace, removed comments etc.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.