X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fnestedvm%2Fsupport_aux.c;h=bc32e8ecc39edecb3c2f160b189151ed4320214e;hp=c8e8d2bf50d3f68b3e783770cfebf7a651cf8665;hb=94617ade62211d11c80b1e87b2a4c822297dd43f;hpb=7e1e0dc49707b777e71e69c23c0a48e0a2665a4b diff --git a/src/org/ibex/nestedvm/support_aux.c b/src/org/ibex/nestedvm/support_aux.c index c8e8d2b..bc32e8e 100644 --- a/src/org/ibex/nestedvm/support_aux.c +++ b/src/org/ibex/nestedvm/support_aux.c @@ -75,6 +75,7 @@ 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) +REENT_WRAPPER2R(pathconf,long,const char *,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[]) { @@ -102,6 +103,15 @@ pid_t _wait_r(struct _reent *ptr, int *status) { return _waitpid_r(ptr,-1,status,0); } +long _pathconf_r(struct _reent *ptr,const char *path, int name) { + switch(name) { + default: + fprintf(stderr,"WARNING: pathconf: Unknown \"name\": %d\n",name); + ptr->_errno = EINVAL; + return -1; + } +} + DIR *opendir(const char *path) { struct stat sb; int fd;