#include <sys/sysctl.h>
#include <sys/utsname.h>
#include <paths.h>
+#include <ctype.h>
+#include <pwd.h>
+#include <grp.h>
+#include <stdarg.h>
#include <nestedvm/socket.h>
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[]) {
/* do nothing*/
}
-int fsync(int fd) {
- /* do nothing */
- return 0;
-}
-
char *ttyname(int fd) {
return isatty(fd) ? "/dev/console" : NULL;
}
}
}
+// FIXME: This needs to be in a header
+char *getlogin() {
+ return getenv("USER");
+}
+
/*
* Other People's Code