summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/fchmodat.c
blob: 7d4dd4e2c69563dbc48fd40d86562096802408ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * fchmodat() for uClibc
 *
 * Copyright (C) 2009 Analog Devices Inc.
 *
 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 */

#include <sys/syscall.h>
#include <sys/stat.h>

#ifdef __NR_fchmodat
_syscall4(int, fchmodat, int, fd, const char *, file, mode_t, mode, int, flag)
#else
/* should add emulation with fchmod() and /proc/self/fd/ ... */
#endif