mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
256 B
14 lines
256 B
|
15 years ago
|
#include <unistd.h>
|
||
|
|
#include <time.h>
|
||
|
|
#include "syscall.h"
|
||
|
|
#include "libc.h"
|
||
|
|
|
||
|
|
int nanosleep(const struct timespec *req, struct timespec *rem)
|
||
|
|
{
|
||
|
|
int ret;
|
||
|
|
CANCELPT_BEGIN;
|
||
|
|
ret = syscall2(__NR_nanosleep, (long)req, (long)rem);
|
||
|
|
CANCELPT_END;
|
||
|
|
return ret;
|
||
|
|
}
|