musl-tcc/src/ipc/semop.c

13 lines
235 B
C
Raw Normal View History

2022-03-20 04:48:53 -04:00
#include <sys/sem.h>
#include "syscall.h"
#include "ipc.h"
int semop(int id, struct sembuf *buf, size_t n)
{
#ifndef SYS_ipc
return syscall(SYS_semop, id, buf, n);
#else
return syscall(SYS_ipc, IPCOP_semop, id, n, 0, buf);
#endif
}