diff options
author | Erik Troan <ewt@redhat.com> | 2001-06-20 01:53:47 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-06-20 01:53:47 +0000 |
commit | b3cbb577dbe4ecda19f50f9b297b9c3e23a7a951 (patch) | |
tree | 689b6e27ac9fc7b6b1c3209ca60c8fae4190e85f /loader/minilibc.h | |
parent | 0dd8714cdfddff257b075afb37e5001f9c81f64c (diff) | |
download | anaconda-b3cbb577dbe4ecda19f50f9b297b9c3e23a7a951.tar.gz anaconda-b3cbb577dbe4ecda19f50f9b297b9c3e23a7a951.tar.xz anaconda-b3cbb577dbe4ecda19f50f9b297b9c3e23a7a951.zip |
merge from (now defunct) anaconda-dispatch branch
added telnet server support (not turned on) along with support for cramfs'd
files in many places
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) |