| OLD | NEW |
| 1 #define _GNU_SOURCE | 1 #define _GNU_SOURCE |
| 2 #include <sys/sem.h> | 2 #include <sys/sem.h> |
| 3 #include "syscall.h" | 3 #include "syscall.h" |
| 4 #include "ipc.h" | 4 #include "ipc.h" |
| 5 | 5 |
| 6 int semtimedop(int id, struct sembuf *buf, size_t n, const struct timespec *ts) | 6 int semtimedop(int id, |
| 7 { | 7 struct sembuf* buf, |
| 8 size_t n, |
| 9 const struct timespec* ts) { |
| 8 #ifdef SYS_semtimedop | 10 #ifdef SYS_semtimedop |
| 9 » return syscall(SYS_semtimedop, id, buf, n, ts); | 11 return syscall(SYS_semtimedop, id, buf, n, ts); |
| 10 #else | 12 #else |
| 11 » return syscall(SYS_ipc, IPCOP_semtimedop, id, n, 0, buf, ts); | 13 return syscall(SYS_ipc, IPCOP_semtimedop, id, n, 0, buf, ts); |
| 12 #endif | 14 #endif |
| 13 } | 15 } |
| OLD | NEW |