fchmodat.c 381 B

12345678910111213141516
  1. /*
  2. * fchmodat() for uClibc
  3. *
  4. * Copyright (C) 2009 Analog Devices Inc.
  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. #ifdef __NR_fchmodat
  11. _syscall4(int, fchmodat, int, fd, const char *, file, mode_t, mode, int, flag)
  12. #else
  13. /* should add emulation with fchmod() and /proc/self/fd/ ... */
  14. #endif