diff options
author | Ron Yorston <rmy@pobox.com> | 2023-07-16 08:49:50 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-07-16 08:49:50 +0100 |
commit | bc0d14ee8eb9720a5df097f5620c4b4c679b6c98 (patch) | |
tree | 8aaac80f79822ac2f590854dfecc4af91c0cedd4 /include | |
parent | 51ba60c766e010f67dd410ad31a2c4814a8440e4 (diff) | |
download | busybox-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.h | 1 |
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 | ||
295 | int nanosleep(const struct timespec *req, struct timespec *rem); | 295 | int nanosleep(const struct timespec *req, struct timespec *rem); |
296 | int clock_gettime(clockid_t clockid, struct timespec *tp); | 296 | int clock_gettime(clockid_t clockid, struct timespec *tp); |
297 | int clock_settime(clockid_t clockid, const struct timespec *tp); | ||
297 | 298 | ||
298 | /* | 299 | /* |
299 | * sys/stat.h | 300 | * sys/stat.h |