S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP 分别是什么意思?
2016-09-01 19:15
344 查看
open第三个参数
一般用法:if((to_fd = open(to, O_WRONLY|O_CREAT, S_IRUSR|S_IWUSR)) == -1) { //db_error("Open %s Error:%s\n", to, strerror(errno)); //close(from_fd); //return -1; }
S_IRUSR Permits the file's owner to read it. 允许文件的所有者阅读它。
S_IWUSR Permits the file's owner to write to it. 允许文件所有者写它。
S_IRGRP Permits the file's group to read it. 允许文件组读取它
S_IWGRP Permits the file's group to write to it. 允许文件组编写它
|是位或运算符。 man creat
相关文章推荐
- S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP 分别是什么意思?
- S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP
- div+css与xhtml+css分别是什么意思?
- Excel错误分别代表什么意思
- C#中??和?分别是什么意思? 在ASP.NET开发中一些单词的标准缩写 C#SESSION丢失问题的解决办法 在C#中INTERFACE与ABSTRACT CLASS的区别 SQL命令语句小技巧 JQUERY判断CHECKBOX是否选中三种方法 JS中!=、==、!==、===的用法和区别 在对象比较中,对象相等和对象一致分别指的是什么?
- linux4位权限分别代表什么意思
- shell 脚本中$$,$#,$?分别代表什么意思?
- asp.net中,<%#%>,<%=%>和<%%>分别是什么意思,有什么区别
- Keil MDK中的Code, RO-data , RW-data, ZI-data分别代表什么意思?
- 手机端meta分别是什么意思
- a:link,a:visited,a:hover,a:active 分别是什么意思?
- 豆瓣 CSS 规范中 .hili, .bd, .tb, .frm 分别表示什么意思?
- ./configure make make install分别是什么意思?
- SVNsvn文件里有问号,打勾,感叹号,蓝色的十字符号,这些符号分别代表什么意思?SVN里面的AD
- Keil MDK中的Code, RO-data , RW-data, ZI-data分别代表什么意思?(转)
- asp.net中,<%#%>,<%=%>和<%%>分别是什么意思,有什么区别
- Linux shell 脚本中, $@ 和$# 分别是什么意思?
- 脏和腑的满和实分别指什么意思
- int * * a[10],int * (*a)[10]和 int(*a[10])() 分别是什么意思
- C#中??和?分别是什么意思