blob: 2f65762f8f5f01981f15c4e4c7c735fc96a898e8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#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 = syscall(SYS_nanosleep, req, rem);
CANCELPT_END;
return ret;
}
|