Loading

摘要: fd1=open("./file1",O|CREAT,0666)中的0666指的是该文件描述符fd1对file1的访问权限为0666, fd2=open("./file1",O|CREAT,0600)中的0600指的是该文件描述符fd2对file1的访问权限为0600, 后面fd1和fd2需要用来当 阅读全文
posted @ 2020-04-21 20:57 拾月凄辰 阅读(4361) 评论(0) 推荐(1) 编辑
摘要: 代码 code1.c: 1 #include <sys/ipc.h> 2 #include <sys/shm.h> 3 #include <sys/types.h> 4 #include <unistd.h> 5 #include <stdio.h> 6 #include <string.h> 7 阅读全文
posted @ 2020-04-21 20:51 拾月凄辰 阅读(960) 评论(0) 推荐(0) 编辑