blob: 9ef1c31d2c8363fdae934f157abce35d1ef21e89 [file] [log] [blame]
Chris Zankel9a8fd552005-06-23 22:01:26 -07001/*
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 Howells83596722012-10-15 03:55:40 +040011#include <uapi/asm/unistd.h>
Chris Zankel9a8fd552005-06-23 22:01:26 -070012
Chris Zankelfd43fe12006-12-10 02:18:47 -080013
Chris Zankel9a8fd552005-06-23 22:01:26 -070014/*
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 Zankel9a8fd552005-06-23 22:01:26 -070022#define __ARCH_WANT_STAT64
Chris Zankel9a8fd552005-06-23 22:01:26 -070023#define __ARCH_WANT_SYS_UTIME
Chris Zankel9a8fd552005-06-23 22:01:26 -070024#define __ARCH_WANT_SYS_LLSEEK
Chris Zankel9a8fd552005-06-23 22:01:26 -070025#define __ARCH_WANT_SYS_RT_SIGACTION
Chris Zankelfc4fb2a2006-12-10 02:18:52 -080026#define __ARCH_WANT_SYS_RT_SIGSUSPEND
Chris Zankel3547cdb2007-08-03 15:55:07 -070027#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 */