diff options
Diffstat (limited to 'include/asm-s390')
-rw-r--r-- | include/asm-s390/unistd.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/include/asm-s390/unistd.h b/include/asm-s390/unistd.h index 0361ac5dcde3..0cccfd83c457 100644 --- a/include/asm-s390/unistd.h +++ b/include/asm-s390/unistd.h | |||
@@ -523,57 +523,6 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, \ | |||
523 | # define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND | 523 | # define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND |
524 | # endif | 524 | # endif |
525 | 525 | ||
526 | #ifdef __KERNEL_SYSCALLS__ | ||
527 | |||
528 | #include <linux/compiler.h> | ||
529 | #include <linux/types.h> | ||
530 | #include <asm/ptrace.h> | ||
531 | #include <asm/stat.h> | ||
532 | #include <linux/syscalls.h> | ||
533 | |||
534 | /* | ||
535 | * we need this inline - forking from kernel space will result | ||
536 | * in NO COPY ON WRITE (!!!), until an execve is executed. This | ||
537 | * is no problem, but for the stack. This is handled by not letting | ||
538 | * main() use the stack at all after fork(). Thus, no function | ||
539 | * calls - which means inline code for fork too, as otherwise we | ||
540 | * would use the stack upon exit from 'fork()'. | ||
541 | * | ||
542 | * Actually only pause and fork are needed inline, so that there | ||
543 | * won't be any messing with the stack from main(), but we define | ||
544 | * some others too. | ||
545 | */ | ||
546 | #define __NR__exit __NR_exit | ||
547 | static inline _syscall0(pid_t,setsid) | ||
548 | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) | ||
549 | static inline _syscall3(int,read,int,fd,char *,buf,off_t,count) | ||
550 | static inline _syscall3(off_t,lseek,int,fd,off_t,offset,int,count) | ||
551 | static inline _syscall1(int,dup,int,fd) | ||
552 | static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) | ||
553 | static inline _syscall3(int,open,const char *,file,int,flag,int,mode) | ||
554 | static inline _syscall1(int,close,int,fd) | ||
555 | static inline _syscall2(long,stat,char *,filename,struct stat *,statbuf) | ||
556 | |||
557 | static inline pid_t waitpid(int pid, int *wait_stat, int flags) | ||
558 | { | ||
559 | return sys_wait4(pid, wait_stat, flags, NULL); | ||
560 | } | ||
561 | struct mmap_arg_struct; | ||
562 | asmlinkage long sys_mmap2(struct mmap_arg_struct __user *arg); | ||
563 | |||
564 | asmlinkage long sys_execve(struct pt_regs regs); | ||
565 | asmlinkage long sys_clone(struct pt_regs regs); | ||
566 | asmlinkage long sys_fork(struct pt_regs regs); | ||
567 | asmlinkage long sys_vfork(struct pt_regs regs); | ||
568 | asmlinkage long sys_pipe(unsigned long __user *fildes); | ||
569 | struct sigaction; | ||
570 | asmlinkage long sys_rt_sigaction(int sig, | ||
571 | const struct sigaction __user *act, | ||
572 | struct sigaction __user *oact, | ||
573 | size_t sigsetsize); | ||
574 | |||
575 | #endif /* __KERNEL_SYSCALLS__ */ | ||
576 | |||
577 | /* | 526 | /* |
578 | * "Conditional" syscalls | 527 | * "Conditional" syscalls |
579 | * | 528 | * |