clock_settime32.c 216 B

123456789
  1. #include "time32.h"
  2. #include <time.h>
  3. int __clock_settime32(clockid_t clk, const struct timespec32 *ts32)
  4. {
  5. return clock_settime(clk, (&(struct timespec){
  6. .tv_sec = ts32->tv_sec,
  7. .tv_nsec = ts32->tv_nsec}));
  8. }