X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-i386%2Funistd.h;h=0df3f9b0a2ff42c38f77d2a0cc6c2edcca24786c;hb=3e3ff47c8527c5ba0be4e9f358d49e4b076bd6ef;hp=d27db1931fd83f3c633cd5f786e455704c07a061;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/include/asm-i386/unistd.h b/include/asm-i386/unistd.h index d27db1931..0df3f9b0a 100644 --- a/include/asm-i386/unistd.h +++ b/include/asm-i386/unistd.h @@ -289,12 +289,9 @@ #define __NR_mq_notify (__NR_mq_open+4) #define __NR_mq_getsetattr (__NR_mq_open+5) #define __NR_sys_kexec_load 283 -#define __NR_ioprio_set 284 -#define __NR_ioprio_get 285 -#define NR_syscalls 286 +#define NR_syscalls 284 -#ifndef __KERNEL_SYSCALLS_NO_ERRNO__ /* user-visible error numbers are in the range -1 - -124: see */ #define __syscall_return(type, res) \ @@ -306,10 +303,6 @@ do { \ return (type) (res); \ } while (0) -#else -# define __syscall_return(type, res) return (type) (res) -#endif - /* XXX - _foo needs to be __foo, while __NR_bar could be _NR_bar. */ #define _syscall0(type,name) \ type name(void) \ @@ -432,7 +425,15 @@ __syscall_return(type,__res); \ * won't be any messing with the stack from main(), but we define * some others too. */ +static inline _syscall0(pid_t,setsid) +static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) +static inline _syscall3(int,read,int,fd,char *,buf,off_t,count) +static inline _syscall3(off_t,lseek,int,fd,off_t,offset,int,count) +static inline _syscall1(int,dup,int,fd) static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) +static inline _syscall3(int,open,const char *,file,int,flag,int,mode) +static inline _syscall1(int,close,int,fd) +static inline _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options) asmlinkage int sys_modify_ldt(int func, void __user *ptr, unsigned long bytecount); asmlinkage long sys_mmap2(unsigned long addr, unsigned long len,