X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-s390%2Funistd.h;fp=include%2Fasm-s390%2Funistd.h;h=c9371e93bab59ff95e8b16ebde3b4f55b3069dc6;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=e15cf988ecf7c7637336c94abb24bd264be01c7c;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/include/asm-s390/unistd.h b/include/asm-s390/unistd.h index e15cf988e..c9371e93b 100644 --- a/include/asm-s390/unistd.h +++ b/include/asm-s390/unistd.h @@ -296,14 +296,8 @@ #define __NR_pselect6 301 #define __NR_ppoll 302 #define __NR_unshare 303 -#define __NR_set_robust_list 304 -#define __NR_get_robust_list 305 -#define __NR_splice 306 -#define __NR_sync_file_range 307 -#define __NR_tee 308 -#define __NR_vmsplice 309 -#define NR_syscalls 310 +#define NR_syscalls 304 /* * There are some system calls that are not present on 64 bit, some @@ -392,11 +386,11 @@ #endif -#ifdef __KERNEL__ +/* user-visible error numbers are in the range -1 - -122: see */ #define __syscall_return(type, res) \ do { \ - if ((unsigned long)(res) >= (unsigned long)(-4095)) {\ + if ((unsigned long)(res) >= (unsigned long)(-125)) { \ errno = -(res); \ res = -1; \ } \ @@ -546,6 +540,7 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, \ __syscall_return(type,__res); \ } +#ifdef __KERNEL__ #define __ARCH_WANT_IPC_PARSE_VERSION #define __ARCH_WANT_OLD_READDIR #define __ARCH_WANT_SYS_ALARM @@ -572,9 +567,11 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, \ # define __ARCH_WANT_COMPAT_SYS_TIME # define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND # endif +#endif #ifdef __KERNEL_SYSCALLS__ +#include #include #include #include @@ -622,7 +619,7 @@ asmlinkage long sys_rt_sigaction(int sig, struct sigaction __user *oact, size_t sigsetsize); -#endif /* __KERNEL_SYSCALLS__ */ +#endif /* * "Conditional" syscalls @@ -632,5 +629,4 @@ asmlinkage long sys_rt_sigaction(int sig, */ #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall") -#endif /* __KERNEL__ */ #endif /* _ASM_S390_UNISTD_H_ */