头文件
<sys/stat.h>
函数
chmod(char* path , mode_t mode) //文件目录和权限
fchmod(int fd , mode_t mode)//文件编号,文件权限
使用例程
chmod使用例程