Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] m68k: cleanup unistd.h

Remove long obsolete kernel syscalls, only execve is still used.

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Roman Zippel and committed by
Linus Torvalds
5a232eaf 078517e4

-39
-39
include/asm-m68k/unistd.h
··· 410 410 411 411 #ifdef __KERNEL_SYSCALLS__ 412 412 413 - #include <linux/compiler.h> 414 - #include <linux/interrupt.h> 415 - #include <linux/types.h> 416 - 417 - /* 418 - * we need this inline - forking from kernel space will result 419 - * in NO COPY ON WRITE (!!!), until an execve is executed. This 420 - * is no problem, but for the stack. This is handled by not letting 421 - * main() use the stack at all after fork(). Thus, no function 422 - * calls - which means inline code for fork too, as otherwise we 423 - * would use the stack upon exit from 'fork()'. 424 - * 425 - * Actually only pause and fork are needed inline, so that there 426 - * won't be any messing with the stack from main(), but we define 427 - * some others too. 428 - */ 429 - #define __NR__exit __NR_exit 430 - static inline _syscall0(pid_t,setsid) 431 - static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) 432 - static inline _syscall3(int,read,int,fd,char *,buf,off_t,count) 433 - static inline _syscall3(off_t,lseek,int,fd,off_t,offset,int,count) 434 - static inline _syscall1(int,dup,int,fd) 435 413 static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) 436 - static inline _syscall3(int,open,const char *,file,int,flag,int,mode) 437 - static inline _syscall1(int,close,int,fd) 438 - static inline _syscall1(int,_exit,int,exitcode) 439 - static inline _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options) 440 - 441 - asmlinkage long sys_mmap2( 442 - unsigned long addr, unsigned long len, 443 - unsigned long prot, unsigned long flags, 444 - unsigned long fd, unsigned long pgoff); 445 - asmlinkage int sys_execve(char *name, char **argv, char **envp); 446 - asmlinkage int sys_pipe(unsigned long *fildes); 447 - struct pt_regs; 448 - struct sigaction; 449 - asmlinkage long sys_rt_sigaction(int sig, 450 - const struct sigaction __user *act, 451 - struct sigaction __user *oact, 452 - size_t sigsetsize); 453 414 454 415 #endif /* __KERNEL_SYSCALLS__ */ 455 416