+int seteuid(uid_t euid)
+{
+ _SysDebug("TODO: %s", __func__);
+ return 0;
+}
+int setegid(gid_t egid)
+{
+ _SysDebug("TODO: %s", __func__);
+ return 0;
+}
+
+unsigned int sleep(unsigned int seconds)
+{
+ int64_t start = _SysTimestamp();
+ _SysTimedSleep( seconds*1000 );
+ return (_SysTimestamp() - start) / 1000;
+}
+
+int usleep(useconds_t usec)
+{
+ _SysTimedSleep( (usec+999)/1000 );
+ return 0;
+}
+
+unsigned int alarm(unsigned int seconds)
+{
+ static int64_t alarm_time;
+ if( seconds > 0 )
+ {
+ alarm_time = _SysTimestamp() + seconds * 1000;
+ // TODO: Schedule SIGALRM
+ }
+ return (alarm_time - _SysTimestamp()) / 1000;
+}
+