1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 17:44:58 +00:00
serenity/Base/usr/share/man/man2
Nico Weber 323e727a4c Kernel+LibC: Add adjtime(2)
Most systems (Linux, OpenBSD) adjust 0.5 ms per second, or 0.5 us per
1 ms tick. That is, the clock is sped up or slowed down by at most
0.05%.  This means adjusting the clock by 1 s takes 2000 s, and the
clock an be adjusted by at most 1.8 s per hour.

FreeBSD adjusts 5 ms per second if the remaining time adjustment is
>= 1 s (0.5%) , else it adjusts by 0.5 ms as well. This allows adjusting
by (almost) 18 s per hour.

Since Serenity OS can lose more than 22 s per hour (#3429), this
picks an adjustment rate up to 1% for now. This allows us to
adjust up to 36s per hour, which should be sufficient to adjust
the clock fast enough to keep up with how much time the clock
currently loses. Once we have a fancier NTP implementation that can
adjust tick rate in addition to offset, we can think about reducing
this.

adjtime is a bit old-school and most current POSIX-y OSs instead
implement adjtimex/ntp_adjtime, but a) we have to start somewhere
b) ntp_adjtime() is a fairly gnarly API. OpenBSD's adjfreq looks
like it might provide similar functionality with a nicer API. But
before worrying about all this, it's probably a good idea to get
to a place where the kernel APIs are (barely) good enough so that
we can write an ntp service, and once we have that we should write
a way to automatically evaluate how well it keeps the time adjusted,
and only then should we add improvements ot the adjustment mechanism.
2020-11-10 19:03:08 +01:00
..
access.md Base: Write some initial man pages 2019-09-28 18:29:42 +02:00
adjtime.md Kernel+LibC: Add adjtime(2) 2020-11-10 19:03:08 +01:00
chroot.md Base: Document unveil(2) 2020-05-04 21:44:50 +02:00
disown.md Kernel+LibC: Add sys$disown() for disowning child processes 2020-08-04 18:17:16 +02:00
getegid.md Add man pages for seteuid() and friends. 2020-07-03 19:37:28 +02:00
geteuid.md Add man pages for seteuid() and friends. 2020-07-03 19:37:28 +02:00
getgid.md Add man pages for seteuid() and friends. 2020-07-03 19:37:28 +02:00
getpid.md Base: Add man pages for gettid(), getpid(), and getppid() 2020-07-05 19:37:43 +02:00
getppid.md Base: Add man pages for gettid(), getpid(), and getppid() 2020-07-05 19:37:43 +02:00
getresgid.md Add man pages for seteuid() and friends. 2020-07-03 19:37:28 +02:00
getresuid.md man pages: Consistently use "Otherwise, " in the few places that said "^Else, " 2020-07-07 16:37:46 +02:00
gettid.md Base: Add man pages for gettid(), getpid(), and getppid() 2020-07-05 19:37:43 +02:00
getuid.md Add man pages for seteuid() and friends. 2020-07-03 19:37:28 +02:00
mkdir.md Base: Add some "See also" links to the man pages 2019-10-03 08:23:54 +02:00
module_load.md Kernel: Do not return ENOENT for unresolved symbols 2020-01-18 23:51:22 +01:00
module_unload.md Base: Document EPERM error in module_load(2) and module_unload(2) 2020-01-02 12:35:19 +01:00
mount.md Everywhere: Fix more typos 2020-10-03 12:36:49 +02:00
pipe.md Everywhere: Fix more typos 2020-10-03 12:36:49 +02:00
pledge.md Base: Add "sendfd" and "recvfd" promises to pledge(2) 2020-06-25 10:58:37 +02:00
posix_spawn.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawn_file_actions_addchdir.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawn_file_actions_addclose.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawn_file_actions_adddestroy.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawn_file_actions_adddup2.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawn_file_actions_addfchdir.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawn_file_actions_addopen.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawn_file_actions_init.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawnattr_destroy.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawnattr_getflags.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawnattr_getpgroup.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawnattr_getschedparam.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawnattr_getschedpolicy.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawnattr_getsigdefault.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawnattr_getsigmask.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawnattr_init.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawnattr_setflags.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawnattr_setpgroup.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawnattr_setschedparam.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawnattr_setschedpolicy.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawnattr_setsigdefault.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawnattr_setsigmask.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
posix_spawnp.md Add manpages for posix_spawn 2020-07-06 10:01:14 +02:00
readlink.md Base: Document readlink(1) and readlink(2) :^) 2020-06-17 15:02:03 +02:00
recvfd.md Base: Mention that sendfd & recvfd were introduced in plan9port 2020-06-25 15:49:04 +02:00
sendfd.md Base: Fix sendfd's man page return section 2020-06-27 11:50:31 +02:00
set_process_name.md Base: Add man page about set_process_name(2) 2020-07-27 19:10:18 +02:00
setegid.md Add man pages for seteuid() and friends. 2020-07-03 19:37:28 +02:00
seteuid.md man pages: Consistently use "Otherwise, " in the few places that said "^Else, " 2020-07-07 16:37:46 +02:00
setgid.m Add man pages for seteuid() and friends. 2020-07-03 19:37:28 +02:00
setresgid.md Add man pages for seteuid() and friends. 2020-07-03 19:37:28 +02:00
setresuid.md man pages: Consistently use "Otherwise, " in the few places that said "^Else, " 2020-07-07 16:37:46 +02:00
setuid.md man pages: Consistently use "Otherwise, " in the few places that said "^Else, " 2020-07-07 16:37:46 +02:00
shbuf_allow_pid.md Kernel+LibC: Rename shared buffer syscalls to use a prefix 2020-02-28 12:55:58 +01:00
shbuf_create.md Kernel+LibC: Rename shared buffer syscalls to use a prefix 2020-02-28 12:55:58 +01:00
uname.md Docs: Add uname(1) and uname(2) man pages 2019-11-17 19:48:11 +01:00
unveil.md Base: Fix a typo 2020-05-05 11:07:06 +02:00