《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); //通過文件描述符對以打開的文件進行
相關文章
相關標籤/搜索