projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
0e0753f3a78a47ee1a6bd862c39e5123ebcef8f5
[oweals/musl.git]
/
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
}