diff options
Diffstat (limited to 'include/asm-sparc64')
-rw-r--r-- | include/asm-sparc64/unistd.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/include/asm-sparc64/unistd.h b/include/asm-sparc64/unistd.h index badc73fdcb97..124cf076717f 100644 --- a/include/asm-sparc64/unistd.h +++ b/include/asm-sparc64/unistd.h | |||
@@ -445,48 +445,6 @@ if (__res>=0) \ | |||
445 | errno = -__res; \ | 445 | errno = -__res; \ |
446 | return -1; \ | 446 | return -1; \ |
447 | } | 447 | } |
448 | #ifdef __KERNEL_SYSCALLS__ | ||
449 | |||
450 | #include <linux/compiler.h> | ||
451 | #include <linux/types.h> | ||
452 | |||
453 | /* | ||
454 | * we need this inline - forking from kernel space will result | ||
455 | * in NO COPY ON WRITE (!!!), until an execve is executed. This | ||
456 | * is no problem, but for the stack. This is handled by not letting | ||
457 | * main() use the stack at all after fork(). Thus, no function | ||
458 | * calls - which means inline code for fork too, as otherwise we | ||
459 | * would use the stack upon exit from 'fork()'. | ||
460 | * | ||
461 | * Actually only pause and fork are needed inline, so that there | ||
462 | * won't be any messing with the stack from main(), but we define | ||
463 | * some others too. | ||
464 | */ | ||
465 | #define __NR__exit __NR_exit | ||
466 | static __inline__ _syscall0(pid_t,setsid) | ||
467 | static __inline__ _syscall3(int,write,int,fd,__const__ char *,buf,off_t,count) | ||
468 | static __inline__ _syscall3(int,read,int,fd,char *,buf,off_t,count) | ||
469 | static __inline__ _syscall3(off_t,lseek,int,fd,off_t,offset,int,count) | ||
470 | static __inline__ _syscall1(int,dup,int,fd) | ||
471 | static __inline__ _syscall3(int,execve,__const__ char *,file,char **,argv,char **,envp) | ||
472 | static __inline__ _syscall3(int,open,__const__ char *,file,int,flag,int,mode) | ||
473 | static __inline__ _syscall1(int,close,int,fd) | ||
474 | static __inline__ _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options) | ||
475 | |||
476 | #include <linux/linkage.h> | ||
477 | |||
478 | asmlinkage unsigned long sys_mmap( | ||
479 | unsigned long addr, unsigned long len, | ||
480 | unsigned long prot, unsigned long flags, | ||
481 | unsigned long fd, unsigned long off); | ||
482 | struct sigaction; | ||
483 | asmlinkage long sys_rt_sigaction(int sig, | ||
484 | const struct sigaction __user *act, | ||
485 | struct sigaction __user *oact, | ||
486 | void __user *restorer, | ||
487 | size_t sigsetsize); | ||
488 | |||
489 | #endif /* __KERNEL_SYSCALLS__ */ | ||
490 | 448 | ||
491 | /* sysconf options, for SunOS compatibility */ | 449 | /* sysconf options, for SunOS compatibility */ |
492 | #define _SC_ARG_MAX 1 | 450 | #define _SC_ARG_MAX 1 |