henesyinit from p9f0ed2a895 years agoHistory
74 lines · 635 B · Text
RawDownload
 intmyaccess(char *f){	return access(f, AEXIST);} void*mysbrk(ulong size){	return sbrk(size);} intmycreat(char *n, int p){ 	return create(n, 1, p);} intmywait(int *s){	int p;	Waitmsg status; 	p = wait(&status);	*s = 0;	if(status.msg[0])		*s = 1;	return p;} intmydup(int f1, int f2){	return dup(f1,f2);} intmypipe(int *fd){	return pipe(fd);} intsystemtype(int sys){	return sys & Plan9;} intpathchar(void){	return '/';} char*mygetwd(char *path, int len){	return getwd(path, len);} intmyexec(char *path, char *argv[]){	return exec(path, argv);} intmyfork(void){	return fork();}