《UNIX环境高级编程》笔记12--chmod函数和fchmod函数

这2个函数都是用来改变现有文件的访问权限的。函数的定义如下: [cpp]  view plain  copy #include<sys/stat.h>   int chmod(const char* pathname, mode_t mode); //通过文件名对指定的文件进行操作   int fchmod(int filedes, mode_t mode); //通过文件描述符对以打开的文件进行
相关文章
相关标签/搜索