utimensat.c 660 B

12345678910111213141516171819202122
  1. /*
  2. * utimensat() 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. #if defined(__NR_utimensat) || defined(__NR_utimensat_time64)
  11. #if defined(__UCLIBC_USE_TIME64__) && defined(__NR_utimensat_time64)
  12. _syscall4_time64(int, utimensat, int, fd, const char *, path, const struct timespec *, times, int, flags)
  13. #else
  14. _syscall4(int, utimensat, int, fd, const char *, path, const struct timespec *, times, int, flags)
  15. #endif
  16. libc_hidden_def(utimensat)
  17. #else
  18. /* should add emulation with utimens() and /proc/self/fd/ ... */
  19. #endif