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