blob: c38834de9ac7dd3a6660d09135a165f491856038 [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
Al Viro3e41f9b2012-10-26 23:41:40 -04004#define __ARCH_WANT_SYS_CLONE
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 Zankel3547cdb2007-08-03 15:55:07 -070018#define __ARCH_WANT_SYS_GETPGRP
19
20/*
21 * Ignore legacy system calls in the checksyscalls.sh script
22 */
23
24#define __IGNORE_fork /* use clone */
25#define __IGNORE_time
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 */
Chris Zankel2f72d4f2012-10-23 20:17:05 -070031
32#endif /* _XTENSA_UNISTD_H */