Fix up the "generic" unistd.h ABI to be more useful.
authorChris Metcalf <cmetcalf@tilera.com>
Sat, 29 May 2010 03:01:00 +0000 (23:01 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Fri, 4 Jun 2010 21:02:25 +0000 (17:02 -0400)
commit5360bd776f73d0a7da571d72a09a03f237e99900
tree618ff2afce9eba2e744410c9af7f59d2d69a69cd
parentb8a3c6091a2337391ed878693604d712d6420241
Fix up the "generic" unistd.h ABI to be more useful.

Reserve 16 "architecture-specific" syscall numbers starting at 244.

Allow use of the sys_sync_file_range2() API with the generic unistd.h
by specifying __ARCH_WANT_SYNC_FILE_RANGE2 before including it.

Allow using the generic unistd.h to create the "compat" syscall table
by specifying __SYSCALL_COMPAT before including it.

Use sys_fadvise64_64 for __NR3264_fadvise64 in both 32- and 64-bit mode.

Request the appropriate __ARCH_WANT_COMPAT_SYS_xxx values when
some deprecated syscall modes are selected.

As part of this change to fix up the syscalls, also provide a couple
of missing signal-related syscall prototypes in <linux/syscalls.h>.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/unistd.h
include/linux/syscalls.h