pthread_timedjoin_np_time32.c 299 B

12345678910
  1. #define _GNU_SOURCE
  2. #include "time32.h"
  3. #include <time.h>
  4. #include <pthread.h>
  5. int __pthread_timedjoin_np_time32(pthread_t t, void **res, const struct timespec32 *at32)
  6. {
  7. return pthread_timedjoin_np(t, res, !at32 ? 0 : (&(struct timespec){
  8. .tv_sec = at32->tv_sec, .tv_nsec = at32->tv_nsec}));
  9. }