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

#include <sys/stat.h>  // for fchmodat
#include <sys/types.h> // for mode_t
#include <syscall.h>   // for __syscall_4, syscall

int fchmodat(int fd, const char *path, mode_t mode, int flag)
{
	return syscall(fchmodat2, fd, path, mode, flag);
}