18 lines
321 B
C++
18 lines
321 B
C++
#pragma once
|
|
|
|
#include <sys/syscall.h>
|
|
#include <linux/futex.h>
|
|
#include <unistd.h>
|
|
#include <sys/time.h>
|
|
|
|
namespace sys
|
|
{
|
|
|
|
inline int futex(void* addr1, int op, int val1, const struct timespec* timeout,
|
|
void* addr2, int val3)
|
|
{
|
|
return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3);
|
|
}
|
|
|
|
}
|