yuezonghe | 824eb0c | 2024-06-27 02:32:26 -0700 | [diff] [blame^] | 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 | |||||
9 | #include <sys/syscall.h> | ||||
10 | #include <sys/stat.h> | ||||
11 | |||||
12 | #ifdef __NR_utimensat | ||||
13 | _syscall4(int, utimensat, int, fd, const char *, path, const struct timespec *, times, int, flags) | ||||
14 | libc_hidden_def(utimensat) | ||||
15 | #else | ||||
16 | /* should add emulation with utimens() and /proc/self/fd/ ... */ | ||||
17 | #endif | ||||
18 |