blob: b5129e6c0eabbe0f55bedd24f1b96e7c7c29e18d [file] [log] [blame]
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#ifndef __NR_chmod
int chmod(const char *path, mode_t mode)
{
return fchmodat(AT_FDCWD, path, mode, 0);
}
#endif /* __NR_chmod */