#include <sys/stat.h>

int chmod(const char *pathname, mode_t mode);
int fchmod(int fd, mode_t mode);
int fchmodat(int fd, const char *pathname, mode_t mode, int flag);

chmod函数在指定的文件上进行操作,而fchmod函数则对已打开的文件进行操作。

results matching ""

    No results matching ""