// // Simulation de memoire partagee pour mac // #ifndef MACSHM_H_SEEN #define MACSHM_H_SEEN #define IPC_STAT 1 #define IPC_RMID 2 #define IPC_CREAT 0x0100 #define IPC_EXCL 0x0200 struct shmid_ds { size_t shm_segsz; }; int shmget(int key, size_t size, int flags); void* shmat(int shmid, void*, int); int shmctl(int shmid, int cmd, struct shmid_ds* buf); int shmdt(const void *addr); #endif