summaryrefslogtreecommitdiffstats
path: root/usr/klibc/chmod.c
blob: b5129e6c0eabbe0f55bedd24f1b96e7c7c29e18d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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 */