//------------------------------------------------------------------- // myshmsem.h // // This header-file defines common constants and types used by // our 'lottery.cpp' and 'gambler.cpp' program demos. // // programmer: ALLAN CRUSE // written on: 13 OCT 2004 //------------------------------------------------------------------- #include // for struct semid_ds #define MY_SEM_KEY 2600 #define MY_MEM_KEY 26 #define MEM_SIZE 1024 union semun { int val; struct semid_ds *buf; ushort *array; };