pthread_timedjoin_np_time32.c raw

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