summaryrefslogtreecommitdiffstats
path: root/src/lib/syscall_time.C
blob: 5c45fa80bf94e28ea0c00f7f22d3b0971098e53d (plain)
1
2
3
4
5
6
7
8
9
#include <sys/time.h>
#include <sys/syscall.h>

using namespace Systemcalls;

int nanosleep(uint64_t sec, uint64_t nsec)
{
    return (int64_t) _syscall2(TIME_NANOSLEEP, (void*)sec, (void*)nsec);
}
OpenPOWER on IntegriCloud