1 /* 2 * include/asm-xtensa/unistd.h 3 * 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 6 * for more details. 7 * 8 * Copyright (C) 2001 - 2005 Tensilica Inc. 9 */ 10 11 #include <uapi/asm/unistd.h> 12 13 14 /* 15 * "Conditional" syscalls 16 * 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 19 */ 20 #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall"); 21 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 28 29 /* 30 * Ignore legacy system calls in the checksyscalls.sh script 31 */ 32 33 #define __IGNORE_fork /* use clone */ 34 #define __IGNORE_time 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 */ 40