futimens.c 551 B

1234567891011121314151617181920212223
  1. /* vi: set sw=4 ts=4: */
  2. /*
  3. * futimens() implementation for uClibc
  4. *
  5. * Copyright (C) 2009 Bernhard Reutner-Fischer <uclibc@uclibc.org>
  6. *
  7. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  8. */
  9. #include <sys/syscall.h>
  10. #define __need_timespec
  11. #include <time.h>
  12. #ifdef __NR_utimensat
  13. extern int utimensat (int __fd, __const char *__path,
  14. __const struct timespec __times[2],
  15. int __flags) __THROW;
  16. libc_hidden_proto(utimensat)
  17. int futimens (int fd, __const struct timespec ts[2])
  18. {
  19. return utimensat(fd, 0, ts, 0);
  20. }
  21. #endif