projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
implement wcsftime padding specifier extensions
[musl]
/
src
/
time
/
clock_nanosleep.c
1
#include <time.h>
2
#include <errno.h>
3
#include "syscall.h"
4
#include "libc.h"
5
6
int clock_nanosleep(clockid_t clk, int flags, const struct timespec *req, struct timespec *rem)
7
{
8
int r = -__syscall_cp(SYS_clock_nanosleep, clk, flags, req, rem);
9
return clk == CLOCK_THREAD_CPUTIME_ID ? EINVAL : r;
10
}