1
0

getitimer_time32.c 415 B

123456789101112131415
  1. #include "time32.h"
  2. #include <time.h>
  3. #include <sys/time.h>
  4. int __getitimer_time32(int which, struct itimerval32 *old32)
  5. {
  6. struct itimerval old;
  7. int r = getitimer(which, &old);
  8. if (r) return r;
  9. old32->it_interval.tv_sec = old.it_interval.tv_sec;
  10. old32->it_interval.tv_usec = old.it_interval.tv_usec;
  11. old32->it_value.tv_sec = old.it_value.tv_sec;
  12. old32->it_value.tv_usec = old.it_value.tv_usec;
  13. return 0;
  14. }