From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10031 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Deduplicating __NR_* and SYS_* syscall defines Date: Fri, 13 May 2016 12:15:48 +0200 Message-ID: <20160513101548.GE22574@port70.net> References: <20160510002637.GA21262@dora.lan> <20160511215311.GI21636@brightrain.aerifal.cx> <20160512002230.GA23989@dora.lan> <20160512005712.GK21636@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1463134566 30355 80.91.229.3 (13 May 2016 10:16:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 May 2016 10:16:06 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10044-gllmg-musl=m.gmane.org@lists.openwall.com Fri May 13 12:16:06 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1b1A8b-00023S-Jx for gllmg-musl@m.gmane.org; Fri, 13 May 2016 12:16:05 +0200 Original-Received: (qmail 19969 invoked by uid 550); 13 May 2016 10:16:00 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 19951 invoked from network); 13 May 2016 10:16:00 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <20160512005712.GK21636@brightrain.aerifal.cx> User-Agent: Mutt/1.5.24 (2015-08-30) Xref: news.gmane.org gmane.linux.lib.musl.general:10031 Archived-At: * Rich Felker [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.