2 * include/asm-xtensa/unistd.h
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
8 * Copyright (C) 2001 - 2005 Tensilica Inc.
11 #include <uapi/asm/unistd.h>
15 * "Conditional" syscalls
17 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
18 * but it doesn't work on all toolchains, so we just do it by hand
20 #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
22 #define __ARCH_WANT_STAT64
23 #define __ARCH_WANT_SYS_UTIME
24 #define __ARCH_WANT_SYS_LLSEEK
25 #define __ARCH_WANT_SYS_RT_SIGACTION
26 #define __ARCH_WANT_SYS_RT_SIGSUSPEND
27 #define __ARCH_WANT_SYS_GETPGRP
30 * Ignore legacy system calls in the checksyscalls.sh script
33 #define __IGNORE_fork /* use clone */
35 #define __IGNORE_alarm /* use setitimer */
36 #define __IGNORE_pause
37 #define __IGNORE_mmap /* use mmap2 */
38 #define __IGNORE_vfork /* use clone */
39 #define __IGNORE_fadvise64 /* use fadvise64_64 */