1570af302Sopenharmony_ci#include "syscall.h" 2570af302Sopenharmony_ci 3570af302Sopenharmony_ci#define IPCOP_semop 1 4570af302Sopenharmony_ci#define IPCOP_semget 2 5570af302Sopenharmony_ci#define IPCOP_semctl 3 6570af302Sopenharmony_ci#define IPCOP_semtimedop 4 7570af302Sopenharmony_ci#define IPCOP_msgsnd 11 8570af302Sopenharmony_ci#define IPCOP_msgrcv 12 9570af302Sopenharmony_ci#define IPCOP_msgget 13 10570af302Sopenharmony_ci#define IPCOP_msgctl 14 11570af302Sopenharmony_ci#define IPCOP_shmat 21 12570af302Sopenharmony_ci#define IPCOP_shmdt 22 13570af302Sopenharmony_ci#define IPCOP_shmget 23 14570af302Sopenharmony_ci#define IPCOP_shmctl 24 15570af302Sopenharmony_ci 16570af302Sopenharmony_ci#ifndef IPC_64 17570af302Sopenharmony_ci#define IPC_64 0x100 18570af302Sopenharmony_ci#endif 19570af302Sopenharmony_ci 20570af302Sopenharmony_ci#define IPC_TIME64 (IPC_STAT & 0x100) 21570af302Sopenharmony_ci 22570af302Sopenharmony_ci#define IPC_CMD(cmd) (((cmd) & ~IPC_TIME64) | IPC_64) 23570af302Sopenharmony_ci 24570af302Sopenharmony_ci#define IPC_HILO(b,t) ((b)->t = (b)->__##t##_lo | 0LL+(b)->__##t##_hi<<32) 25