X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fnestedvm%2Fsupport_aux.c;fp=src%2Forg%2Fibex%2Fnestedvm%2Fsupport_aux.c;h=54181e9834bc77d6e4dfd192fa6ac1b9952f4536;hp=0be48592be88099fe6009644d63f5c471b0a9a8f;hb=67c7e733423baf297e3a6684eed50af00e2c8255;hpb=00e7b2dcbcd8d28f3e84954704f874a721dd15d3 diff --git a/src/org/ibex/nestedvm/support_aux.c b/src/org/ibex/nestedvm/support_aux.c index 0be4859..54181e9 100644 --- a/src/org/ibex/nestedvm/support_aux.c +++ b/src/org/ibex/nestedvm/support_aux.c @@ -117,6 +117,7 @@ REENT_WRAPPER1(setgid,gid_t) REENT_WRAPPER1(setegid,gid_t) REENT_WRAPPER2(setgroups,int,const gid_t *) REENT_WRAPPER0R(setsid,pid_t) +REENT_WRAPPER1(fsync,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[]) { @@ -170,11 +171,6 @@ void sync() { /* do nothing*/ } -int fsync(int fd) { - /* do nothing */ - return 0; -} - char *ttyname(int fd) { return isatty(fd) ? "/dev/console" : NULL; }