blob: 32f0c07e3dbe19ac99a216463f2fd5d774831457 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
#include <time.h>
#include <errno.h>
#include "syscall.h"
int clock_nanosleep(clockid_t clk, int flags, const struct timespec *req, struct timespec *rem)
{
int r = -__syscall_cp(SYS_clock_nanosleep, clk, flags, req, rem);
return clk == CLOCK_THREAD_CPUTIME_ID ? EINVAL : r;
}
|