The function chmod is defined in the `sys/stat.h` rather than in `fcntl.h`. It should be moved to the Stat class rather than remaining in the Fcntl class.