diff options
Diffstat (limited to 'include/asm-sh/unistd.h')
-rw-r--r-- | include/asm-sh/unistd.h | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/include/asm-sh/unistd.h b/include/asm-sh/unistd.h index 5d5e9f94def5..f1a0cbc966be 100644 --- a/include/asm-sh/unistd.h +++ b/include/asm-sh/unistd.h | |||
@@ -472,76 +472,6 @@ __syscall_return(type,__sc0); \ | |||
472 | #define __ARCH_WANT_SYS_RT_SIGACTION | 472 | #define __ARCH_WANT_SYS_RT_SIGACTION |
473 | #define __ARCH_WANT_SYS_RT_SIGSUSPEND | 473 | #define __ARCH_WANT_SYS_RT_SIGSUSPEND |
474 | 474 | ||
475 | #ifdef __KERNEL_SYSCALLS__ | ||
476 | |||
477 | #include <linux/compiler.h> | ||
478 | #include <linux/types.h> | ||
479 | #include <linux/linkage.h> | ||
480 | #include <asm/ptrace.h> | ||
481 | |||
482 | /* | ||
483 | * we need this inline - forking from kernel space will result | ||
484 | * in NO COPY ON WRITE (!!!), until an execve is executed. This | ||
485 | * is no problem, but for the stack. This is handled by not letting | ||
486 | * main() use the stack at all after fork(). Thus, no function | ||
487 | * calls - which means inline code for fork too, as otherwise we | ||
488 | * would use the stack upon exit from 'fork()'. | ||
489 | * | ||
490 | * Actually only pause and fork are needed inline, so that there | ||
491 | * won't be any messing with the stack from main(), but we define | ||
492 | * some others too. | ||
493 | */ | ||
494 | #define __NR__exit __NR_exit | ||
495 | static __inline__ _syscall0(int,pause) | ||
496 | static __inline__ _syscall0(int,sync) | ||
497 | static __inline__ _syscall0(pid_t,setsid) | ||
498 | static __inline__ _syscall3(int,write,int,fd,const char *,buf,off_t,count) | ||
499 | static __inline__ _syscall3(int,read,int,fd,char *,buf,off_t,count) | ||
500 | static __inline__ _syscall3(off_t,lseek,int,fd,off_t,offset,int,count) | ||
501 | static __inline__ _syscall1(int,dup,int,fd) | ||
502 | static __inline__ _syscall3(int,execve,const char *,file,char **,argv,char **,envp) | ||
503 | static __inline__ _syscall3(int,open,const char *,file,int,flag,int,mode) | ||
504 | static __inline__ _syscall1(int,close,int,fd) | ||
505 | static __inline__ _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options) | ||
506 | static __inline__ _syscall1(int,delete_module,const char *,name) | ||
507 | |||
508 | static __inline__ pid_t wait(int * wait_stat) | ||
509 | { | ||
510 | return waitpid(-1,wait_stat,0); | ||
511 | } | ||
512 | |||
513 | asmlinkage long sys_mmap2( | ||
514 | unsigned long addr, unsigned long len, | ||
515 | unsigned long prot, unsigned long flags, | ||
516 | unsigned long fd, unsigned long pgoff); | ||
517 | asmlinkage int sys_execve(char *ufilename, char **uargv, | ||
518 | char **uenvp, unsigned long r7, | ||
519 | struct pt_regs regs); | ||
520 | asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, | ||
521 | unsigned long parent_tidptr, | ||
522 | unsigned long child_tidptr, | ||
523 | struct pt_regs regs); | ||
524 | asmlinkage int sys_fork(unsigned long r4, unsigned long r5, | ||
525 | unsigned long r6, unsigned long r7, | ||
526 | struct pt_regs regs); | ||
527 | asmlinkage int sys_vfork(unsigned long r4, unsigned long r5, | ||
528 | unsigned long r6, unsigned long r7, | ||
529 | struct pt_regs regs); | ||
530 | asmlinkage int sys_pipe(unsigned long r4, unsigned long r5, | ||
531 | unsigned long r6, unsigned long r7, | ||
532 | struct pt_regs regs); | ||
533 | asmlinkage ssize_t sys_pread_wrapper(unsigned int fd, char *buf, | ||
534 | size_t count, long dummy, loff_t pos); | ||
535 | asmlinkage ssize_t sys_pwrite_wrapper(unsigned int fd, const char *buf, | ||
536 | size_t count, long dummy, loff_t pos); | ||
537 | struct sigaction; | ||
538 | asmlinkage long sys_rt_sigaction(int sig, | ||
539 | const struct sigaction __user *act, | ||
540 | struct sigaction __user *oact, | ||
541 | size_t sigsetsize); | ||
542 | |||
543 | #endif /* __KERNEL_SYSCALLS__ */ | ||
544 | |||
545 | /* | 475 | /* |
546 | * "Conditional" syscalls | 476 | * "Conditional" syscalls |
547 | * | 477 | * |