d9fa52dbfba05764861a2605f94883fda06ab9bf
[firefly-linux-kernel-4.4.55.git] / arch / xtensa / include / asm / unistd.h
1 #ifndef _XTENSA_UNISTD_H
2 #define _XTENSA_UNISTD_H
3
4 #include <uapi/asm/unistd.h>
5
6 /*
7  * "Conditional" syscalls
8  *
9  * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
10  * but it doesn't work on all toolchains, so we just do it by hand
11  */
12 #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
13
14 #define __ARCH_WANT_STAT64
15 #define __ARCH_WANT_SYS_UTIME
16 #define __ARCH_WANT_SYS_LLSEEK
17 #define __ARCH_WANT_SYS_RT_SIGACTION
18 #define __ARCH_WANT_SYS_RT_SIGSUSPEND
19 #define __ARCH_WANT_SYS_GETPGRP
20
21 /* 
22  * Ignore legacy system calls in the checksyscalls.sh script
23  */
24
25 #define __IGNORE_fork                           /* use clone */
26 #define __IGNORE_time
27 #define __IGNORE_alarm                          /* use setitimer */
28 #define __IGNORE_pause
29 #define __IGNORE_mmap                           /* use mmap2 */
30 #define __IGNORE_vfork                          /* use clone */
31 #define __IGNORE_fadvise64                      /* use fadvise64_64 */
32
33 #endif /* _XTENSA_UNISTD_H */