1 #ifndef _XTENSA_UNISTD_H
2 #define _XTENSA_UNISTD_H
4 #define __ARCH_WANT_SYS_CLONE
5 #include <uapi/asm/unistd.h>
8 * "Conditional" syscalls
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
13 #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
15 #define __ARCH_WANT_STAT64
16 #define __ARCH_WANT_SYS_UTIME
17 #define __ARCH_WANT_SYS_LLSEEK
18 #define __ARCH_WANT_SYS_GETPGRP
21 * Ignore legacy system calls in the checksyscalls.sh script
24 #define __IGNORE_fork /* use clone */
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 */
32 #endif /* _XTENSA_UNISTD_H */