Chris Zankel | 9a8fd55 | 2005-06-23 22:01:26 -0700 | [diff] [blame] | 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 | |
David Howells | 8359672 | 2012-10-15 03:55:40 +0400 | [diff] [blame^] | 11 | #include <uapi/asm/unistd.h> |
Chris Zankel | 9a8fd55 | 2005-06-23 22:01:26 -0700 | [diff] [blame] | 12 | |
Chris Zankel | fd43fe1 | 2006-12-10 02:18:47 -0800 | [diff] [blame] | 13 | |
Chris Zankel | 9a8fd55 | 2005-06-23 22:01:26 -0700 | [diff] [blame] | 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 | |
Chris Zankel | 9a8fd55 | 2005-06-23 22:01:26 -0700 | [diff] [blame] | 22 | #define __ARCH_WANT_STAT64 |
Chris Zankel | 9a8fd55 | 2005-06-23 22:01:26 -0700 | [diff] [blame] | 23 | #define __ARCH_WANT_SYS_UTIME |
Chris Zankel | 9a8fd55 | 2005-06-23 22:01:26 -0700 | [diff] [blame] | 24 | #define __ARCH_WANT_SYS_LLSEEK |
Chris Zankel | 9a8fd55 | 2005-06-23 22:01:26 -0700 | [diff] [blame] | 25 | #define __ARCH_WANT_SYS_RT_SIGACTION |
Chris Zankel | fc4fb2a | 2006-12-10 02:18:52 -0800 | [diff] [blame] | 26 | #define __ARCH_WANT_SYS_RT_SIGSUSPEND |
Chris Zankel | 3547cdb | 2007-08-03 15:55:07 -0700 | [diff] [blame] | 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 */ |