projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
avoid function call to pthread_self in mutex unlock
[musl]
/
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
}