Introduce time64 support.
[uclibc-ng.git] / libc / sysdeps / linux / common / utimensat.c
blob6a78ebb4fd0f804933f6c390ddb65ece51c45d03
1 /*
2 * utimensat() for uClibc
4 * Copyright (C) 2009 Analog Devices Inc.
6 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
7 */
9 #include <sys/syscall.h>
10 #include <sys/stat.h>
12 #if defined(__NR_utimensat) || defined(__NR_utimensat_time64)
13 #if defined(__UCLIBC_USE_TIME64__) && defined(__NR_utimensat_time64)
14 _syscall4_time64(int, utimensat, int, fd, const char *, path, const struct timespec *, times, int, flags)
15 #else
16 _syscall4(int, utimensat, int, fd, const char *, path, const struct timespec *, times, int, flags)
17 #endif
18 libc_hidden_def(utimensat)
19 #else
20 /* should add emulation with utimens() and /proc/self/fd/ ... */
21 #endif