1 /* 2 * include/asm-s390/ipc.h 3 * 4 * S390 version 5 * 6 * Derived from "include/asm-i386/ipc.h" 7 */ 8 9 #ifndef __s390_IPC_H__ 10 #define __s390_IPC_H__ 11 12 /* 13 * These are used to wrap system calls on S390. 14 * 15 * See arch/s390/kernel/sys_s390.c for ugly details.. 16 */ 17 struct ipc_kludge { 18 struct msgbuf *msgp; 19 long msgtyp; 20 }; 21 22 #define SEMOP 1 23 #define SEMGET 2 24 #define SEMCTL 3 25 #define MSGSND 11 26 #define MSGRCV 12 27 #define MSGGET 13 28 #define MSGCTL 14 29 #define SHMAT 21 30 #define SHMDT 22 31 #define SHMGET 23 32 #define SHMCTL 24 33 34 /* Used by the DIPC package, try and avoid reusing it */ 35 #define DIPC 25 36 37 #define IPCCALL(version,op) ((version)<<16 | (op)) 38 39 #endif 40