summaryrefslogblamecommitdiff
path: root/src/time/nanosleep.c
blob: 0e0753f3a78a47ee1a6bd862c39e5123ebcef8f5 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                               
                                               
                     


                     
#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_TRY;
	CANCELPT_END;
	return ret;
}