mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
281 B
14 lines
281 B
|
7 years ago
|
#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;
|
||
|
|
}
|