projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make pthread_create return EAGAIN on resource failure, as required by POSIX
[oweals/musl.git]
/
src
/
time
/
nanosleep.c
1
#include <unistd.h>
2
#include <time.h>
3
#include "syscall.h"
4
#include "libc.h"
5
6
int nanosleep(const struct timespec *req, struct timespec *rem)
7
{
8
int ret;
9
CANCELPT_BEGIN;
10
ret = syscall2(__NR_nanosleep, (long)req, (long)rem);
11
CANCELPT_END;
12
return ret;
13
}