1 2 3 4 5 6 7 8 9 10 11 12 13 14
| #include<sys/types.h> #include<sys/ipc.h> #include<sys/shm.h> key_t ftok(const char *pathname,int proj_id);
int shmget(key_t key,int size,int shmflg);
void *shmat(int shmid,const void *shmaddr,int shmflg);
int shmdt(const void *shmaddr); int shmctl(int shmid,int cmd,struct shmid_ds *buf);
|