]> git.baikalelectronics.ru Git - kernel.git/commit
asm-generic: add a generic unistd.h
authorArnd Bergmann <arnd@arndb.de>
Wed, 13 May 2009 22:56:28 +0000 (22:56 +0000)
committerArnd Bergmann <arnd@klappe2.(none)>
Thu, 11 Jun 2009 19:02:16 +0000 (21:02 +0200)
commit38f224ffe0ddb04c589f83d200d837c1e39c6122
tree41e9b99b647b66256ed9e72c183929b57ead91a0
parent02f096a2c15f398ccc52d7969b9d9131cfe5f2d3
asm-generic: add a generic unistd.h

A new architecture should only define a minimal set of system
calls while still providing the full functionality. This version
of unistd.h has gone through intensive review to make sure that
by default it only enables syscalls that do not already have
a more featureful replacement.

It is modeled after the x86-64 version of unistd.h, which unifies
the syscall number definition and the actual system call table
in a single file, in order to keep them synchronized much more
easily.

This first version still keeps legacy system call definitions
around, guarded by various #ifdefs, and with numbers larger
than 1024. The idea behind this is to make it easier for
new architectures to transition from a full list to the reduced
set. In particular, the new microblaze architecture that should
migrate to using the generic ABI headers can at least use an
existing uClibc source tree without major rewrites during the
conversion.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/Kbuild
include/asm-generic/unistd.h [new file with mode: 0644]
scripts/checksyscalls.sh