diff options
Diffstat (limited to 'loader/minilibc.h')
-rw-r--r-- | loader/minilibc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/loader/minilibc.h b/loader/minilibc.h index b0abe58e3..c774e92b2 100644 --- a/loader/minilibc.h +++ b/loader/minilibc.h @@ -10,6 +10,7 @@ #define WTERMSIG(status) ((status) & 0x7f) #define WSTOPSIG(status) WEXITSTATUS(status) #define WIFEXITED(status) (WTERMSIG(status) == 0) +#define S_IFBLK 0060000 #define MS_MGC_VAL 0xc0ed0000 @@ -35,6 +36,10 @@ extern int errno; #include <asm/unistd.h> #include <asm/fcntl.h> #include <asm/signal.h> +#include <asm/stat.h> + +void * alloca(int size); +void exit(int arg); #ifndef MINILIBC_INTERNAL static inline _syscall5(int,mount,const char *,spec,const char *,dir,const char *,type,unsigned long,rwflag,const void *,data); @@ -46,6 +51,7 @@ static inline _syscall3(int,execve,const char *,fn,void *,argv,void *,envp) static inline _syscall3(int,read,int,fd,const char *,buf,unsigned long,count) static inline _syscall3(int,open,const char *,fn,int,flags,mode_t,mode) static inline _syscall3(int,ioctl,int,fd,int,request,void *,argp) +static inline _syscall3(int,mknod,char *,path,int,mode,short,dev) static inline _syscall2(int,dup2,int,one,int,two) static inline _syscall2(int,kill,pid_t,pid,int,sig) static inline _syscall2(int,symlink,const char *,a,const char *,b) @@ -54,10 +60,12 @@ static inline _syscall2(int,sethostname,const char *,name,int,len) static inline _syscall2(int,setdomainname,const char *,name,int,len) static inline _syscall2(int,setpgid,int,name,int,len) static inline _syscall2(int,signal,int,num,void *,len) +static inline _syscall2(int,stat,const char *,file,struct stat *,buf) static inline _syscall1(int,umount,const char *,dir) static inline _syscall1(int,unlink,const char *,fn) static inline _syscall1(int,close,int,fd) static inline _syscall1(int,swapoff,const char *,fn) +static inline _syscall1(int,umask,int,mask) static inline _syscall0(int,getpid) static inline _syscall0(int,getppid) static inline _syscall0(int,sync) |