1 /*
2  * fchmod() for uClibc
3  *
4  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
5  *
6  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
7  */
8 
9 #include <sys/syscall.h>
10 #include <sys/stat.h>
11 
12 #define __NR___syscall_fchmod __NR_fchmod
_syscall2(int,__syscall_fchmod,int,fildes,__kernel_mode_t,mode)13 static __inline__ _syscall2(int, __syscall_fchmod,
14 		int, fildes, __kernel_mode_t, mode)
15 
16 int fchmod(int fildes, mode_t mode)
17 {
18 	return (__syscall_fchmod(fildes, mode));
19 }
20