Chris Zankel | 2f72d4f | 2012-10-23 20:17:05 -0700 | [diff] [blame] | 1 | #ifndef _XTENSA_UNISTD_H |
| 2 | #define _XTENSA_UNISTD_H |
Chris Zankel | 9a8fd55 | 2005-06-23 22:01:26 -0700 | [diff] [blame] | 3 | |
Al Viro | 3e41f9b | 2012-10-26 23:41:40 -0400 | [diff] [blame] | 4 | #define __ARCH_WANT_SYS_CLONE |
David Howells | 8359672 | 2012-10-15 03:55:40 +0400 | [diff] [blame] | 5 | #include <uapi/asm/unistd.h> |
Chris Zankel | 9a8fd55 | 2005-06-23 22:01:26 -0700 | [diff] [blame] | 6 | |
Chris Zankel | 9a8fd55 | 2005-06-23 22:01:26 -0700 | [diff] [blame] | 7 | /* |
| 8 | * "Conditional" syscalls |
| 9 | * |
| 10 | * What we want is __attribute__((weak,alias("sys_ni_syscall"))), |
| 11 | * but it doesn't work on all toolchains, so we just do it by hand |
| 12 | */ |
| 13 | #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall"); |
| 14 | |
Chris Zankel | 9a8fd55 | 2005-06-23 22:01:26 -0700 | [diff] [blame] | 15 | #define __ARCH_WANT_STAT64 |
Chris Zankel | 9a8fd55 | 2005-06-23 22:01:26 -0700 | [diff] [blame] | 16 | #define __ARCH_WANT_SYS_UTIME |
Chris Zankel | 9a8fd55 | 2005-06-23 22:01:26 -0700 | [diff] [blame] | 17 | #define __ARCH_WANT_SYS_LLSEEK |
Chris Zankel | 3547cdb | 2007-08-03 15:55:07 -0700 | [diff] [blame] | 18 | #define __ARCH_WANT_SYS_GETPGRP |
| 19 | |
| 20 | /* |
| 21 | * Ignore legacy system calls in the checksyscalls.sh script |
| 22 | */ |
| 23 | |
| 24 | #define __IGNORE_fork /* use clone */ |
| 25 | #define __IGNORE_time |
| 26 | #define __IGNORE_alarm /* use setitimer */ |
| 27 | #define __IGNORE_pause |
| 28 | #define __IGNORE_mmap /* use mmap2 */ |
| 29 | #define __IGNORE_vfork /* use clone */ |
| 30 | #define __IGNORE_fadvise64 /* use fadvise64_64 */ |
Chris Zankel | 2f72d4f | 2012-10-23 20:17:05 -0700 | [diff] [blame] | 31 | |
| 32 | #endif /* _XTENSA_UNISTD_H */ |