blob: d9fa52dbfba05764861a2605f94883fda06ab9bf [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
David Howells83596722012-10-15 03:55:40 +04004#include <uapi/asm/unistd.h>
Chris Zankel9a8fd552005-06-23 22:01:26 -07005
Chris Zankel9a8fd552005-06-23 22:01:26 -07006/*
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
Chris Zankel9a8fd552005-06-23 22:01:26 -070014#define __ARCH_WANT_STAT64
Chris Zankel9a8fd552005-06-23 22:01:26 -070015#define __ARCH_WANT_SYS_UTIME
Chris Zankel9a8fd552005-06-23 22:01:26 -070016#define __ARCH_WANT_SYS_LLSEEK
Chris Zankel9a8fd552005-06-23 22:01:26 -070017#define __ARCH_WANT_SYS_RT_SIGACTION
Chris Zankelfc4fb2a2006-12-10 02:18:52 -080018#define __ARCH_WANT_SYS_RT_SIGSUSPEND
Chris Zankel3547cdb2007-08-03 15:55:07 -070019#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 */
Chris Zankel2f72d4f2012-10-23 20:17:05 -070032
33#endif /* _XTENSA_UNISTD_H */