Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
timerfd_gettime SIGFE
timerfd_settime SIGFE
times SIGFE
+timespec_get SIGFE
timezone SIGFE
timingsafe_bcmp NOSIGFE
timingsafe_memcmp NOSIGFE
#endif /* __SVID_VISIBLE || __XSI_VISIBLE */
+#if __ISO_C_VISIBLE >= 2011
+#define TIME_UTC 1
+
+extern int timespec_get (struct timespec *, int);
+#endif
+
#ifdef __cplusplus
}
#endif
- New API call: setproctitle.
+- New API call: timespec_get.
+
What changed:
-------------
*clk_id = (clockid_t) PID_TO_CLOCKID (pid);
return 0;
}
+
+extern "C" int
+timespec_get (struct timespec *ts, int base)
+{
+ if (base != TIME_UTC)
+ return 0;
+ clock_gettime (CLOCK_REALTIME, ts);
+ return base;
+}