fchmod.c 437 B

12345678910111213141516171819
  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. #include <sys/syscall.h>
  9. #include <sys/stat.h>
  10. #define __NR___syscall_fchmod __NR_fchmod
  11. static __inline__ _syscall2(int, __syscall_fchmod,
  12. int, fildes, __kernel_mode_t, mode)
  13. int fchmod(int fildes, mode_t mode)
  14. {
  15. return (__syscall_fchmod(fildes, mode));
  16. }