#include <sys/types.h> #include <sys/ipc.h> #include <sys/shm.h> int shmget ( key_t key, size_t size, int shmflag ); int shmctl ( int shmid, int cmd, struct shmid_ds *buf ); void * shmat ( int shmid, const void *shmaddr, int shmflag ); int shmdt ( const void *shmaddr );