getuser
[nestedvm.git] / src / org / ibex / nestedvm / support_aux.c
index 51251e7..0be4859 100644 (file)
 #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>
 
@@ -517,6 +521,11 @@ int vasprintf(char **ret, const char *fmt, va_list ap) {
     }
 }
 
+// FIXME: This needs to be in a header
+char *getlogin() {
+    return getenv("USER");
+}
+
 
 /*
  * Other People's Code