support fsync()
[nestedvm.git] / src / org / ibex / nestedvm / support_aux.c
index 0be4859..54181e9 100644 (file)
@@ -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;
 }