epoll_create: fail with EINVAL if size is non-positive
[musl] / src / ipc / ipc.h
index 5487582..746a905 100644 (file)
@@ -1,6 +1,9 @@
+#include "syscall.h"
+
 #define IPCOP_semop      1
 #define IPCOP_semget     2
 #define IPCOP_semctl     3
+#define IPCOP_semtimedop 4
 #define IPCOP_msgsnd    11
 #define IPCOP_msgrcv    12
 #define IPCOP_msgget    13
@@ -9,3 +12,13 @@
 #define IPCOP_shmdt     22
 #define IPCOP_shmget    23
 #define IPCOP_shmctl    24
+
+#ifndef IPC_64
+#define IPC_64 0x100
+#endif
+
+#define IPC_TIME64 (IPC_STAT & 0x100)
+
+#define IPC_CMD(cmd) (((cmd) & ~IPC_TIME64) | IPC_64)
+
+#define IPC_HILO(b,t) ((b)->t = (b)->__##t##_lo | 0LL+(b)->__##t##_hi<<32)