fchownat.c 419 B

1234567891011121314151617
  1. /*
  2. * fchownat() 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 <unistd.h>
  10. #ifdef __NR_fchownat
  11. _syscall5(int, fchownat, int, fd, const char *, file, uid_t, owner, gid_t, group, int, flag)
  12. libc_hidden_def(fchownat)
  13. #else
  14. /* should add emulation with fchown() and /proc/self/fd/ ... */
  15. #endif