OVMS3-idf/components/newlib
Konstantin Kondrashov 6f529cbe64 newlib: Add adjtime - makes a gradual adjustment the system clock
This function speeds up or slows down the system clock in order to make a gradual adjustment. This ensures
 that the calendar time reported by the system clock is always monotonically increasing, which might not happen
 if you simply set the clock.

The delta argument specifies a relative adjustment to be made to the clock time. If negative, the system clock is
 slowed down for a while until it has lost this much elapsed time. If positive, the system clock is speeded up for a
 while.

If the olddelta argument is not a null pointer, the adjtime function returns information about any previous time
 adjustment that has not yet completed.

The return value is 0 on success and -1 on failure.

To stop the adjustement, call the function settimeofday(current_time).
2018-05-28 17:36:04 +05:00
..
include Fix redefinition of select() on platforms where ESP_PLATFORM is discarded 2018-05-25 13:37:43 +00:00
lib newlib: Add strptime(), qsort_r(), nanf() to libc & libc_nano 2017-11-16 17:35:18 +11:00
platform_include Fix redefinition of select() on platforms where ESP_PLATFORM is discarded 2018-05-25 13:37:43 +00:00
test newlib: Add adjtime - makes a gradual adjustment the system clock 2018-05-28 17:36:04 +05:00
.gitignore Initial public version 2016-08-17 23:08:22 +08:00
.gitmodules Initial public version 2016-08-17 23:08:22 +08:00
component.mk build system: Restore ifdef/ifndef in Makefiles, clean up examples build 2017-09-05 16:11:03 +10:00
COPYING.NEWLIB Initial public version 2016-08-17 23:08:22 +08:00
locks.c newlib locks: Fix _lock_init() & _lock_init_recursive() failing to initialise a lock 2017-06-30 08:54:56 +10:00
Makefile.old Initial public version 2016-08-17 23:08:22 +08:00
reent_init.c vfs: code review fixes 2016-10-27 17:21:17 +08:00
select.c VFS: Optionally disable the VFS implementation of select() 2018-05-23 10:14:16 +02:00
syscall_table.c heap: Refactor heap regions/capabilities out of FreeRTOS 2017-07-10 17:46:03 +08:00
syscalls.c Add option to allocate external RAM using heap_alloc_caps 2017-09-14 10:47:44 +08:00
time.c newlib: Add adjtime - makes a gradual adjustment the system clock 2018-05-28 17:36:04 +05:00