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