2005-04-16 15:20:36 -07:00
/*
* S390 version
*
* Derived from " include/asm-i386/unistd.h "
*/
# ifndef _ASM_S390_UNISTD_H_
# define _ASM_S390_UNISTD_H_
2012-10-09 09:47:31 +01:00
# include <uapi/asm/unistd.h>
2005-04-16 15:20:36 -07:00
2006-04-29 01:51:47 +01:00
2007-05-21 11:25:20 +02: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-13 20:44:42 +01:00
/* Ignore system calls that are also reachable via sys_socket */
# define __IGNORE_recvmmsg
2011-05-23 10:24:47 +02:00
# define __IGNORE_sendmmsg
2010-01-13 20:44:42 +01:00
2005-04-16 15:20:36 -07: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 11:27:21 +01:00
# define __ARCH_WANT_SYS_IPC
2005-04-16 15:20:36 -07: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-10 15:21:15 -08:00
# define __ARCH_WANT_SYS_OLD_MMAP
2005-04-16 15:20:36 -07: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 03:06:38 -08:00
# define __ARCH_WANT_SYS_RT_SIGSUSPEND
2006-01-06 00:19:28 -08:00
# ifndef CONFIG_64BIT
2005-04-16 15:20:36 -07:00
# define __ARCH_WANT_STAT64
# define __ARCH_WANT_SYS_TIME
# endif
2006-02-01 03:06:38 -08:00
# ifdef CONFIG_COMPAT
# define __ARCH_WANT_COMPAT_SYS_TIME
# define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND
# endif
2012-09-06 15:48:11 -04:00
# define __ARCH_WANT_SYS_EXECVE
2005-04-16 15:20:36 -07: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_ */