参考答案 recvs.c参考答案 #include <stdio.h> #include<stdlib.h> #include<string.h> #include<unistd.h> #include<sys/types.h> #include <linux/shm.h> main() { int shmid; char *viraddr; shmid=shmget(3567,BUFSIZ,0666|IPC_CREAT); viraddr=(char *)shmat(shmid,0,0); pri...
struct ipc_perm shm_perm; /* Ownership and permissions */ size_t shm_segsz; /* Size of segment (bytes) */ time_t shm_atime; /* Last attach time */ time_t shm_dtime; /* Last detach time */ time_t shm_ctime; /* Last change time */ pid_t shm_cpid; /* PID of creator ...