summaryrefslogtreecommitdiff
path: root/src/time/nanosleep.c
blob: 4519b91561a822b2a9078f7f0190bcdc6c575ba3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <time.h>
#include "_safety.h"
#include "_syscall.h"

int nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
{
	SIGNAL_SAFE(0);
	SYSCALL(nanosleep, int, -1, rqtp, rmtp, 0, 0, 0, 0);
}

/*
POSIX(199309)
*/