diff options
Diffstat (limited to 'include/asm-m68knommu/unistd.h')
-rw-r--r-- | include/asm-m68knommu/unistd.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/include/asm-m68knommu/unistd.h b/include/asm-m68knommu/unistd.h index 21fdc37c5c2c..daafb5d43ef1 100644 --- a/include/asm-m68knommu/unistd.h +++ b/include/asm-m68knommu/unistd.h | |||
@@ -463,61 +463,6 @@ type name(atype a, btype b, ctype c, dtype d, etype e) \ | |||
463 | #define __ARCH_WANT_SYS_SIGPROCMASK | 463 | #define __ARCH_WANT_SYS_SIGPROCMASK |
464 | #define __ARCH_WANT_SYS_RT_SIGACTION | 464 | #define __ARCH_WANT_SYS_RT_SIGACTION |
465 | 465 | ||
466 | #ifdef __KERNEL_SYSCALLS__ | ||
467 | |||
468 | #include <linux/compiler.h> | ||
469 | #include <linux/interrupt.h> | ||
470 | #include <linux/types.h> | ||
471 | |||
472 | /* | ||
473 | * we need this inline - forking from kernel space will result | ||
474 | * in NO COPY ON WRITE (!!!), until an execve is executed. This | ||
475 | * is no problem, but for the stack. This is handled by not letting | ||
476 | * main() use the stack at all after fork(). Thus, no function | ||
477 | * calls - which means inline code for fork too, as otherwise we | ||
478 | * would use the stack upon exit from 'fork()'. | ||
479 | * | ||
480 | * Actually only pause and fork are needed inline, so that there | ||
481 | * won't be any messing with the stack from main(), but we define | ||
482 | * some others too. | ||
483 | */ | ||
484 | #define __NR__exit __NR_exit | ||
485 | static inline _syscall0(int,pause) | ||
486 | static inline _syscall0(int,sync) | ||
487 | static inline _syscall0(pid_t,setsid) | ||
488 | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) | ||
489 | static inline _syscall3(int,read,int,fd,char *,buf,off_t,count) | ||
490 | static inline _syscall3(off_t,lseek,int,fd,off_t,offset,int,count) | ||
491 | static inline _syscall1(int,dup,int,fd) | ||
492 | static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) | ||
493 | static inline _syscall3(int,open,const char *,file,int,flag,int,mode) | ||
494 | static inline _syscall1(int,close,int,fd) | ||
495 | static inline _syscall1(int,_exit,int,exitcode) | ||
496 | static inline _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options) | ||
497 | static inline _syscall1(int,delete_module,const char *,name) | ||
498 | |||
499 | static inline pid_t wait(int * wait_stat) | ||
500 | { | ||
501 | return waitpid(-1,wait_stat,0); | ||
502 | } | ||
503 | asmlinkage long sys_mmap2(unsigned long addr, unsigned long len, | ||
504 | unsigned long prot, unsigned long flags, | ||
505 | unsigned long fd, unsigned long pgoff); | ||
506 | asmlinkage int sys_execve(char *name, char **argv, char **envp); | ||
507 | asmlinkage int sys_pipe(unsigned long *fildes); | ||
508 | struct pt_regs; | ||
509 | int sys_request_irq(unsigned int, | ||
510 | irqreturn_t (*)(int, void *, struct pt_regs *), | ||
511 | unsigned long, const char *, void *); | ||
512 | void sys_free_irq(unsigned int, void *); | ||
513 | struct sigaction; | ||
514 | asmlinkage long sys_rt_sigaction(int sig, | ||
515 | const struct sigaction __user *act, | ||
516 | struct sigaction __user *oact, | ||
517 | size_t sigsetsize); | ||
518 | |||
519 | #endif /* __KERNEL_SYSCALLS__ */ | ||
520 | |||
521 | /* | 466 | /* |
522 | * "Conditional" syscalls | 467 | * "Conditional" syscalls |
523 | * | 468 | * |