musl/src/ipc/semtimedop.c
Rich Felker 35cf8b3e73 fix harmless inconsistency in semtimedop
this should not matter since the reality is that either all the sysv
sem syscalls are individual syscalls, or all of them are multiplexed
on the SYS_ipc syscall (depending on arch). but best to be consistent
anyway.
2013-11-09 17:54:20 -05:00

13 lines
311 B
C

#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_semtimedop
return syscall(SYS_semtimedop, id, buf, n, ts);
#else
return syscall(SYS_ipc, IPCOP_semtimedop, id, n, 0, buf, ts);
#endif
}