chmod(2): change permissions of file - Linux man page
chmod() changes the permissions of the file specified whose pathname is given in path, which is dereferenced if it is a symbolic link. ... #include int chmod(const char *path, mode_t mode); int fchmod(int fd, mode_t mode); Feature Test Macro ......