diff options
Diffstat (limited to 'libc-top-half/musl/compat/time32/sched_rr_get_interval_time32.c')
-rw-r--r-- | libc-top-half/musl/compat/time32/sched_rr_get_interval_time32.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libc-top-half/musl/compat/time32/sched_rr_get_interval_time32.c b/libc-top-half/musl/compat/time32/sched_rr_get_interval_time32.c new file mode 100644 index 0000000..36cbbac --- /dev/null +++ b/libc-top-half/musl/compat/time32/sched_rr_get_interval_time32.c @@ -0,0 +1,13 @@ +#include "time32.h" +#include <time.h> +#include <sched.h> + +int __sched_rr_get_interval_time32(pid_t pid, struct timespec32 *ts32) +{ + struct timespec ts; + int r = sched_rr_get_interval(pid, &ts); + if (r) return r; + ts32->tv_sec = ts.tv_sec; + ts32->tv_nsec = ts.tv_nsec; + return r; +} |