summaryrefslogtreecommitdiff
path: root/src/ipc/semtimedop.c
blob: a3b511b6810e510f9751d618a11627bae4a05d11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#define _GNU_SOURCE
#include <sys/sem.h>
#include "syscall.h"
#include "ipc.h"

int semtimedop(int id, struct sembuf *buf, size_t n, const struct timespec *ts)
{
#ifdef SYS_semop
	return syscall(SYS_semtimedop, id, buf, n, ts);
#else
	return syscall(SYS_ipc, IPCOP_semtimedop, id, n, 0, buf, ts);
#endif
}