摘要:
#include <stdio.h> #include <sys/socket.h> #include <sys/types.h> #include <time.h> #include <errno.h> #include <signal.h> #include <stdlib.h> #includ 阅读全文
posted @ 2021-12-28 09:06
roverqqq
阅读(120)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <sys/shm.h> #include <unistd.h> #include <string.h> int main() { key_t key; // 用于打开指定的共享内存 int shm_id; // 共享内存id char *p; 阅读全文
posted @ 2021-12-28 09:05
roverqqq
阅读(42)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <unistd.h> #include <string.h> #include <errno.h> int main() { int fd[2]; char buf[1024]; memset(buf,'\0',sizeof(buf)); pi 阅读全文
posted @ 2021-12-28 09:04
roverqqq
阅读(94)
评论(0)
推荐(0)

浙公网安备 33010602011771号