blob: e002dbcc88b6e621bf25c8a73ce2e60641912126 [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
Al Viro3e41f9b2012-10-26 23:41:40 -04005#define __ARCH_WANT_SYS_CLONE
David Howells83596722012-10-15 03:55:40 +04006#include <uapi/asm/unistd.h>
Chris Zankel9a8fd552005-06-23 22:01:26 -07007
Chris Zankel9a8fd552005-06-23 22:01:26 -07008/*
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
Chris Zankel9a8fd552005-06-23 22:01:26 -070016#define __ARCH_WANT_STAT64
Chris Zankel9a8fd552005-06-23 22:01:26 -070017#define __ARCH_WANT_SYS_UTIME
Chris Zankel9a8fd552005-06-23 22:01:26 -070018#define __ARCH_WANT_SYS_LLSEEK
Chris Zankel9a8fd552005-06-23 22:01:26 -070019#define __ARCH_WANT_SYS_RT_SIGACTION
Chris Zankelfc4fb2a2006-12-10 02:18:52 -080020#define __ARCH_WANT_SYS_RT_SIGSUSPEND
Chris Zankel3547cdb2007-08-03 15:55:07 -070021#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 */
Chris Zankel2f72d4f2012-10-23 20:17:05 -070034
35#endif /* _XTENSA_UNISTD_H */