Skip to content

Commit

Permalink
asm-generic: add a generic unistd.h
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
arndb authored and Arnd Bergmann committed Jun 11, 2009
1 parent 6103ec5 commit e64a161
Show file tree
Hide file tree
Showing 3 changed files with 944 additions and 3 deletions.
1 change: 1 addition & 0 deletions include/asm-generic/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ header-y += termbits.h
header-y += termios.h
header-y += types.h
header-y += ucontext.h
header-y += unistd.h

unifdef-y += int-l64.h
unifdef-y += int-ll64.h
Expand Down
Loading

0 comments on commit e64a161

Please sign in to comment.