aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-07-16 08:49:50 +0100
committerRon Yorston <rmy@pobox.com>2023-07-16 08:49:50 +0100
commitbc0d14ee8eb9720a5df097f5620c4b4c679b6c98 (patch)
tree8aaac80f79822ac2f590854dfecc4af91c0cedd4 /include
parent51ba60c766e010f67dd410ad31a2c4814a8440e4 (diff)
downloadbusybox-w32-bc0d14ee8eb9720a5df097f5620c4b4c679b6c98.tar.gz
busybox-w32-bc0d14ee8eb9720a5df097f5620c4b4c679b6c98.tar.bz2
busybox-w32-bc0d14ee8eb9720a5df097f5620c4b4c679b6c98.zip
date: allow system date to be set
Implement clock_settime(2) and enable the '-s' option to allow the system time to be set. This requires elevated privileges. The code in date.c is now identical to upstream BusyBox. Costs 256-272 bytes.
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h
index ae34666e8..232ffadd7 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -294,6 +294,7 @@ time_t timegm(struct tm *tm);
294 294
295int nanosleep(const struct timespec *req, struct timespec *rem); 295int nanosleep(const struct timespec *req, struct timespec *rem);
296int clock_gettime(clockid_t clockid, struct timespec *tp); 296int clock_gettime(clockid_t clockid, struct timespec *tp);
297int clock_settime(clockid_t clockid, const struct timespec *tp);
297 298
298/* 299/*
299 * sys/stat.h 300 * sys/stat.h