blob: f4e6eaa40d1ca86946799a1f7eab6d7047a69dd5 [file] [log] [blame]
Chris Zankel2f72d4f2012-10-23 20:17:05 -07001#ifndef _XTENSA_UNISTD_H
2#define _XTENSA_UNISTD_H
Chris Zankel9a8fd552005-06-23 22:01:26 -07003
Max Filippovdc241f22012-10-25 11:10:52 +04004#define __ARCH_WANT_SYS_EXECVE
David Howells83596722012-10-15 03:55:40 +04005#include <uapi/asm/unistd.h>
Chris Zankel9a8fd552005-06-23 22:01:26 -07006
Chris Zankel9a8fd552005-06-23 22:01:26 -07007/*
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 Zankel9a8fd552005-06-23 22:01:26 -070015#define __ARCH_WANT_STAT64
Chris Zankel9a8fd552005-06-23 22:01:26 -070016#define __ARCH_WANT_SYS_UTIME
Chris Zankel9a8fd552005-06-23 22:01:26 -070017#define __ARCH_WANT_SYS_LLSEEK
Chris Zankel9a8fd552005-06-23 22:01:26 -070018#define __ARCH_WANT_SYS_RT_SIGACTION
Chris Zankelfc4fb2a2006-12-10 02:18:52 -080019#define __ARCH_WANT_SYS_RT_SIGSUSPEND
Chris Zankel3547cdb2007-08-03 15:55:07 -070020#define __ARCH_WANT_SYS_GETPGRP
21
22/*
23 * Ignore legacy system calls in the checksyscalls.sh script
24 */
25
26#define __IGNORE_fork /* use clone */
27#define __IGNORE_time
28#define __IGNORE_alarm /* use setitimer */
29#define __IGNORE_pause
30#define __IGNORE_mmap /* use mmap2 */
31#define __IGNORE_vfork /* use clone */
32#define __IGNORE_fadvise64 /* use fadvise64_64 */
Chris Zankel2f72d4f2012-10-23 20:17:05 -070033
34#endif /* _XTENSA_UNISTD_H */