X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fnestedvm%2Fsupport_aux.c;h=c8e8d2bf50d3f68b3e783770cfebf7a651cf8665;hp=097c9b0b2982ecddc4708ff71e925fa1225e5f29;hb=47e2513b584db639600b57c79be03093f99b0073;hpb=897fa3c89674460aa4fad275f263cea2b341420d diff --git a/src/org/ibex/nestedvm/support_aux.c b/src/org/ibex/nestedvm/support_aux.c index 097c9b0..c8e8d2b 100644 --- a/src/org/ibex/nestedvm/support_aux.c +++ b/src/org/ibex/nestedvm/support_aux.c @@ -74,6 +74,7 @@ REENT_WRAPPER2(chmod,const char *,mode_t) REENT_WRAPPER2(fchmod,int,mode_t) REENT_WRAPPER2(lstat,const char *,struct stat *) REENT_WRAPPER4(getdents,int, char *, size_t,long *) +REENT_WRAPPER1(dup,int) extern int __execve_r(struct _reent *ptr, const char *path, char *const argv[], char *const envp[]); int _execve(const char *path, char *const argv[], char *const envp[]) { @@ -97,6 +98,10 @@ char *_getcwd_r(struct _reent *ptr, char *buf, size_t size) { } } +pid_t _wait_r(struct _reent *ptr, int *status) { + return _waitpid_r(ptr,-1,status,0); +} + DIR *opendir(const char *path) { struct stat sb; int fd;