summaryrefslogblamecommitdiff
path: root/src/time/nanosleep.c
blob: 5ac4c35907721491fa11e35100486401b4bb3177 (plain) (tree)
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 = syscall2(__NR_nanosleep, (long)req, (long)rem);
	CANCELPT_END;
	return ret;
}