Brent Cook
29e3fe363e
ensure that all of the fields of struct timex are initialized
10 years ago
Brent Cook
eeb97529cd
prefer adjtimex over the deprecated ntp_adjtime on Linux
Thanks to @chneukirchen for the suggestion.
10 years ago
Brent Cook
198294a383
add __progname emulation, prevent setproctitle from overwriting it
Make a copy of __progname on start to avoid setproctitle clobbering it
later. Check if the OS supports __progname and emulate if unavailable.
- from OpenSSH.
Thanks to Paul B. Henson for reporting the setproctitle emulation issue
and Jonas 'Sortie' Termansen for suggesting __progname emulation.
10 years ago
Brent Cook
207a65ca0b
Add NetBSD support.
Fixes #3 , thanks to @gitisihara for providing the initial patch and
testing.
10 years ago
Brent Cook
6f93baf369
fix setproctitle on OS X and Linux
Call the compat code and select the correct emulation mode.
Remove the string encoding support, since we have fixed inputs for the
title string.
10 years ago
Brent Cook
2e79e8cb07
mach_absolute_time is monotonic
which is convenient, since it is exactly what we need.
10 years ago
Brent Cook
349259b778
rename clock_gettime OS X shim for consistency
10 years ago
Brent Cook
04f3b3eeee
use per-OS files for adjfreq emulation
This makes it easier to see what is supported by each OS, and to improve
them individually.
10 years ago
Brent Cook
8e4c175c42
update copyright block, patches
I removed all of the code in fake-sensors, I don't think Henning wants
all the credit for an empty file.
10 years ago
Brent Cook
ca4f4d455a
move all compatibility shims to compat
10 years ago
Brent Cook
7559d73f7d
fix build error on OS X
10 years ago
Brent Cook
9b4d748b44
initial OS X support
Well, support may be too concrete of a term. There is a lot that is
missing in OS X, and not everything can be implemented with portability
shims. The time APIs in OS X seem to have frozen with NeXTSTEP and never
advanced with POSIX.
10 years ago
Brent Cook
659bb3d7a2
consolidate patches, cleanup dist.sh
10 years ago
Brent Cook
d5b81b8ed2
new OpenNTPD portable tree
First attempt at building a new OpenNTPD portable project, based on the
latest OpenBSD source.
10 years ago