sys/mount.h: add MS_NOSYMFOLLOW from linux v5.10
[musl.git] / compat / time32 / getitimer_time32.c
blob4bac4bf5265704249e81424ece91f308471d7feb
1 #include "time32.h"
2 #include <time.h>
3 #include <sys/time.h>
5 int __getitimer_time32(int which, struct itimerval32 *old32)
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;