[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200608280941.10965.arnd@arndb.de>
Date: Mon, 28 Aug 2006 09:41:10 +0200
From: Arnd Bergmann <arnd@...db.de>
To: Andi Kleen <ak@...e.de>
Cc: linux-arch@...r.kernel.org, Jeff Dike <jdike@...toit.com>,
Bjoern Steinbrink <B.Steinbrink@....de>,
Arjan van de Ven <arjan@...radead.org>,
Chase Venters <chase.venters@...entec.com>,
Andrew Morton <akpm@...l.org>,
Russell King <rmk+lkml@....linux.org.uk>,
rusty@...tcorp.com.au, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 6/7] remove all remaining _syscallX macros
On Monday 28 August 2006 09:35, Andi Kleen wrote:
> I would prefer to keep them on i386/x86-64 at least because
> a lot of my test programs are using them.
>
Hmm, maybe we should have an asm-generic/unistd.h then
containing something like
#ifndef __KERNEL__
#include <sys/syscall.h>
#define _syscall0(type,name) \
type name(type1 arg1) \
{ \
return syscall(__NR_ ## name); \
}
#define _syscall1(type,name,type1,arg1) \
type name(type1 arg1) \
{ \
return syscall(__NR_ ## name, arg1); \
}
#define _syscall1(type,name,type1,arg1,type2,arg2) \
type name(type1 arg1, type2 arg2) \
{ \
return syscall(__NR_ ## name, arg1, arg2); \
}
// ...
#endif
Arnd <><
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists