Description: #include shm.h
int main(int argc,char*argv[])
{
key_t key
int shm_id
char*buf
//鑾峰緱key
if((key = ftok( ./ ,0xa)) < 0){
perror( ftok )
exit(1)
}
//鑾峰緱鍏变韩鍐呭瓨
if((shm_id = shmget(key,SHM_SIZE,IPC_CREAT|0644)) < 0){
perror( shmget )
exit(1)
}
//寤虹珛鍏变韩鍐呭瓨鍒拌
To Search:
File list (Check if you may need any files):
3_read.c
3_read - 副本.c
3_read - 副本 (2).c