2005-06-24 13:01:26 +08:00
|
|
|
/*
|
|
|
|
* include/asm-xtensa/unistd.h
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
|
|
* for more details.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2001 - 2005 Tensilica Inc.
|
|
|
|
*/
|
|
|
|
|
2012-10-15 07:55:40 +08:00
|
|
|
#include <uapi/asm/unistd.h>
|
2005-06-24 13:01:26 +08:00
|
|
|
|
2006-12-10 18:18:47 +08:00
|
|
|
|
2005-06-24 13:01:26 +08:00
|
|
|
/*
|
|
|
|
* "Conditional" syscalls
|
|
|
|
*
|
|
|
|
* What we want is __attribute__((weak,alias("sys_ni_syscall"))),
|
|
|
|
* but it doesn't work on all toolchains, so we just do it by hand
|
|
|
|
*/
|
|
|
|
#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
|
|
|
|
|
|
|
|
#define __ARCH_WANT_STAT64
|
|
|
|
#define __ARCH_WANT_SYS_UTIME
|
|
|
|
#define __ARCH_WANT_SYS_LLSEEK
|
|
|
|
#define __ARCH_WANT_SYS_RT_SIGACTION
|
2006-12-10 18:18:52 +08:00
|
|
|
#define __ARCH_WANT_SYS_RT_SIGSUSPEND
|
2007-08-04 06:55:07 +08:00
|
|
|
#define __ARCH_WANT_SYS_GETPGRP
|
2006-12-10 18:18:47 +08:00
|
|
|
|
2007-08-04 06:55:07 +08:00
|
|
|
/*
|
|
|
|
* Ignore legacy system calls in the checksyscalls.sh script
|
|
|
|
*/
|
2005-06-24 13:01:26 +08:00
|
|
|
|
2007-08-04 06:55:07 +08:00
|
|
|
#define __IGNORE_fork /* use clone */
|
|
|
|
#define __IGNORE_time
|
|
|
|
#define __IGNORE_alarm /* use setitimer */
|
|
|
|
#define __IGNORE_pause
|
|
|
|
#define __IGNORE_mmap /* use mmap2 */
|
|
|
|
#define __IGNORE_vfork /* use clone */
|
|
|
|
#define __IGNORE_fadvise64 /* use fadvise64_64 */
|