projects
/
nestedvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
support fsync()
[nestedvm.git]
/
src
/
org
/
ibex
/
nestedvm
/
support_aux.c
diff --git
a/src/org/ibex/nestedvm/support_aux.c
b/src/org/ibex/nestedvm/support_aux.c
index
0be4859
..
54181e9
100644
(file)
--- 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(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[]) {
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*/
}
/* do nothing*/
}
-int fsync(int fd) {
- /* do nothing */
- return 0;
-}
-
char *ttyname(int fd) {
return isatty(fd) ? "/dev/console" : NULL;
}
char *ttyname(int fd) {
return isatty(fd) ? "/dev/console" : NULL;
}