+ long ret = g_chdir_raw(path);
+ return g_syscall_error(ret);
+}
+
+void real_sleep(unsigned int seconds)
+{
+ struct timespec ts = { seconds, 0 };
+ g_nanosleep_raw(&ts, NULL);
+}
+
+void real_usleep(unsigned int usec)
+{
+ struct timespec ts = { usec / 1000000, usec % 1000000 };
+ g_nanosleep_raw(&ts, NULL);
+}
+
+void real_exit(int status)
+{
+ g_exit_group_raw(status);