aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-05-14 09:18:53 +0100
committerRon Yorston <rmy@pobox.com>2021-05-14 09:18:53 +0100
commite5b7d2b2c17b1bd80d759350bb6d3cfa1303f687 (patch)
tree09c611f64361cde273c81a9f4bd8734cd3431f72 /include
parenta3f5a1b7f4275f713acf22f534f95c0da8392e53 (diff)
downloadbusybox-w32-e5b7d2b2c17b1bd80d759350bb6d3cfa1303f687.tar.gz
busybox-w32-e5b7d2b2c17b1bd80d759350bb6d3cfa1303f687.tar.bz2
busybox-w32-e5b7d2b2c17b1bd80d759350bb6d3cfa1303f687.zip
win32: implement futimens(2)/utimensat(2)
The touch applet has been changed to use futimens(2)/utimensat(2). Provide implementations of these for WIN32.
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h
index d48237add..89b26762a 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -34,6 +34,9 @@ int inet_pton(int af, const char *src, void *dst);
34#define O_DIRECT 0 34#define O_DIRECT 0
35#define O_SPECIAL 0x800000 35#define O_SPECIAL 0x800000
36 36
37#define AT_FDCWD -100
38#define AT_SYMLINK_NOFOLLOW 0x100
39
37/* 40/*
38 * grp.h 41 * grp.h
39 */ 42 */
@@ -348,6 +351,13 @@ int mingw_fstat(int fd, struct mingw_stat *buf);
348#define stat mingw_stat 351#define stat mingw_stat
349#define fstat mingw_fstat 352#define fstat mingw_fstat
350 353
354#define UTIME_NOW ((1l << 30) - 1l)
355#define UTIME_OMIT ((1l << 30) - 2l)
356
357int utimensat(int fd, const char *path, const struct timespec times[2],
358 int flags);
359int futimens(int fd, const struct timespec times[2]);
360
351/* 361/*
352 * sys/sysinfo.h 362 * sys/sysinfo.h
353 */ 363 */