2005-04-17 06:20:36 +08:00
|
|
|
/*
|
|
|
|
* S390 version
|
|
|
|
*
|
|
|
|
* Derived from "include/asm-i386/unistd.h"
|
|
|
|
*/
|
|
|
|
#ifndef _ASM_S390_UNISTD_H_
|
|
|
|
#define _ASM_S390_UNISTD_H_
|
|
|
|
|
2012-10-09 16:47:31 +08:00
|
|
|
#include <uapi/asm/unistd.h>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2006-04-29 08:51:47 +08:00
|
|
|
|
2007-05-21 17:25:20 +08:00
|
|
|
#ifndef CONFIG_64BIT
|
|
|
|
#define __IGNORE_select
|
|
|
|
#else
|
|
|
|
#define __IGNORE_time
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Ignore NUMA system calls. Not wired up on s390. */
|
|
|
|
#define __IGNORE_mbind
|
|
|
|
#define __IGNORE_get_mempolicy
|
|
|
|
#define __IGNORE_set_mempolicy
|
|
|
|
#define __IGNORE_migrate_pages
|
|
|
|
#define __IGNORE_move_pages
|
|
|
|
|
2010-01-14 03:44:42 +08:00
|
|
|
/* Ignore system calls that are also reachable via sys_socket */
|
|
|
|
#define __IGNORE_recvmmsg
|
2011-05-23 16:24:47 +08:00
|
|
|
#define __IGNORE_sendmmsg
|
2010-01-14 03:44:42 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
#define __ARCH_WANT_OLD_READDIR
|
|
|
|
#define __ARCH_WANT_SYS_ALARM
|
|
|
|
#define __ARCH_WANT_SYS_GETHOSTNAME
|
|
|
|
#define __ARCH_WANT_SYS_PAUSE
|
|
|
|
#define __ARCH_WANT_SYS_SIGNAL
|
|
|
|
#define __ARCH_WANT_SYS_UTIME
|
|
|
|
#define __ARCH_WANT_SYS_SOCKETCALL
|
2011-12-27 18:27:21 +08:00
|
|
|
#define __ARCH_WANT_SYS_IPC
|
2005-04-17 06:20:36 +08:00
|
|
|
#define __ARCH_WANT_SYS_FADVISE64
|
|
|
|
#define __ARCH_WANT_SYS_GETPGRP
|
|
|
|
#define __ARCH_WANT_SYS_LLSEEK
|
|
|
|
#define __ARCH_WANT_SYS_NICE
|
|
|
|
#define __ARCH_WANT_SYS_OLD_GETRLIMIT
|
2010-03-11 07:21:15 +08:00
|
|
|
#define __ARCH_WANT_SYS_OLD_MMAP
|
2005-04-17 06:20:36 +08:00
|
|
|
#define __ARCH_WANT_SYS_OLDUMOUNT
|
|
|
|
#define __ARCH_WANT_SYS_SIGPENDING
|
|
|
|
#define __ARCH_WANT_SYS_SIGPROCMASK
|
|
|
|
#define __ARCH_WANT_SYS_RT_SIGACTION
|
2006-02-01 19:06:38 +08:00
|
|
|
#define __ARCH_WANT_SYS_RT_SIGSUSPEND
|
2006-01-06 16:19:28 +08:00
|
|
|
# ifndef CONFIG_64BIT
|
2005-04-17 06:20:36 +08:00
|
|
|
# define __ARCH_WANT_STAT64
|
|
|
|
# define __ARCH_WANT_SYS_TIME
|
|
|
|
# endif
|
2006-02-01 19:06:38 +08:00
|
|
|
# ifdef CONFIG_COMPAT
|
|
|
|
# define __ARCH_WANT_COMPAT_SYS_TIME
|
|
|
|
# define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND
|
|
|
|
# endif
|
2012-09-07 03:48:11 +08:00
|
|
|
#define __ARCH_WANT_SYS_EXECVE
|
2005-04-17 06:20:36 +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")
|
|
|
|
|
|
|
|
#endif /* _ASM_S390_UNISTD_H_ */
|