nuttx/include/sys
Michal Lenc 360e938fa6 sched: add support for adjtime() interface
This commit adds Linux like adjtime() interface that is used to correct
the system time clock if it varies from real value. The adjustment is
done by slight adjustment of clock period and therefore the adjustment
is without time jumps (both forward and backwards)

The implementation is enabled by CONFIG_CLOCK_ADJTIME and separated from
CONFIG_CLOCK_TIMEKEEPING functions. Options CONFIG_CLOCK_ADJTIME_SLEWLIMIT
and CONFIG_CLOCK_ADJTIME_PERIOD can be used to control the adjustment
speed.

Interfaces up_get_timer_period() and up_adj_timer_period() has to be
defined by architecture level support.

This is not a POSIX interface but derives from 4.3BSD, System V.
It is also supported for Linux compatibility.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-04-25 14:37:50 -03:00
..
boardctl.h Let BOARDIOC_SOFTRESETCAUSE_ASSERT equals to the default value of BOARD_ASSERT_RESET_VALUE 2023-04-24 05:14:06 -04:00
custom_file.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
endian.h libc: Add sys/endian.h to improve the compatiblity with bionic libc 2023-01-15 12:26:15 -03:00
epoll.h sys/epool.h: add EPOLLET (edge-triggered) flag to fix compile break 2023-01-27 15:30:55 -03:00
eventfd.h fs: Make the binary(no process) mode as the default 2022-06-07 20:22:26 +03:00
file.h
ioctl.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
ipc.h libc/ipc: add ftok(3) support 2022-06-09 18:19:48 +03:00
mman.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
mount.h fs/ioctl: add BLKSSZGET cmd to get block sector size 2022-07-22 09:07:57 +03:00
msg.h sched/msgq: add support of System V message queue 2022-10-22 12:58:11 +08:00
param.h include: Add nitems() definition to sys/param.h 2023-02-09 20:05:44 +08:00
poll.h vfs/poll: Remove the unused ptr field from pollfd 2023-03-06 13:19:42 +02:00
prctl.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
queue.h sys/queue.h: remove CONFIG_ALLOW_MIT_COMPONENTS 2023-01-30 11:26:04 +08:00
random.h getrandom: fix comment contradicting code 2022-06-15 11:18:04 -03:00
resource.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
select.h fs: Map FD_SETSIZE to OPEN_MAX instead hardcoding 256 2023-02-19 19:17:20 +02:00
sendfile.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
shm.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
signalfd.h fs/signalfd: using file descriptor to accept signal 2022-12-28 23:05:58 +08:00
socket.h include/sys/socket.h: Add SOCK_CTRL to socket type 2023-02-16 12:13:01 +09:00
sockio.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
stat.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
statfs.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
statvfs.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
syscall_lookup.h system: pthread_barrierwait should be moved to kernel space 2023-04-25 15:34:40 +08:00
syscall.h syscall/names: export the syscall name in STUB module 2022-03-14 21:37:53 +02:00
sysinfo.h sys/sysinfo: align sysinfo define with linux 2023-02-09 20:11:55 +08:00
sysmacros.h sys/sysmacros.h: support sysmacros header 2022-07-22 11:10:08 +08:00
time.h sched: add support for adjtime() interface 2023-04-25 14:37:50 -03:00
timerfd.h fs/vfs: Add file descriptor based timers support 2021-12-20 04:00:20 -06:00
times.h libc: Implement times function 2021-07-21 13:11:54 -03:00
tree.h libc: Move tree.h from include/nuttx to include/sys 2023-01-03 10:34:57 +02:00
types.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
uio.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
un.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
utsname.h utsname: Expand the buffer for version information slightly 2023-02-14 22:35:43 +08:00
vfs.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
videoio.h drivers/video: enhance v4l2 compatibility 2022-12-03 02:48:01 +08:00
wait.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00