+time_t xtime(time_t *whenp) {
+ struct timeval tv;
+
+ xgettimeofday(&tv, NULL);
+ if(whenp)
+ *whenp = tv.tv_sec;
+ return tv.tv_sec;
+}
+
+void xnanosleep(const struct timespec *req, struct timespec *rem) {
+ mustnotbeminus1("nanosleep", nanosleep(req, rem));
+}
+