projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add pivot_root syscall wrapper
[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 = syscall(SYS_nanosleep, req, rem);
11
CANCELPT_TRY;
12
CANCELPT_END;
13
return ret;
14
}