• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <sys/sem.h>
2 #include <unsupported_api.h>
3 
4 #include "syscall.h"
5 #include "ipc.h"
6 
semop(int id,struct sembuf * buf,size_t n)7 int semop(int id, struct sembuf *buf, size_t n)
8 {
9 	unsupported_api(__FUNCTION__);
10 #ifndef SYS_ipc
11 	return syscall(SYS_semop, id, buf, n);
12 #else
13 	return syscall(SYS_ipc, IPCOP_semop, id, n, 0, buf);
14 #endif
15 }
16