summaryrefslogtreecommitdiff
path: root/lib/libc/stat/chmod.c
blob: f204df83214e65ca242b4e16c75e98c787edb385 (plain)
1
2
3
4
5
6
7
8
9
10
#include "asm/unistd_64.h" // for __NR_chmod

#include <sys/stat.h>  // for chmod
#include <sys/types.h> // for mode_t
#include <syscall.h>   // for __syscall_2, syscall

int chmod(const char *path, mode_t mode)
{
	return syscall(chmod, path, mode);
}