Re: [chrony-dev] gitlab patch notification to list

2024-04-12 Thread Bryan Christianson
Sorry about that - I hadn't realised that this was caused by issues at tuxfamily.org > On 8 Apr 2024, at 08:39, Bryan Christianson wrote: > > I just refreshed my local copy of chrony and noticed I was a couple of weeks > behind in patches. Prior to the move to gitlab t

[chrony-dev] gitlab patch notification to list

2024-04-12 Thread Bryan Christianson
. Regards, Bryan -- Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] [Git][chrony/chrony][master] 2 commits: ntp: initialize network correction of transmitted packets

2023-11-07 Thread Bryan Christianson
57+01:00 logging: add log severity to > file log prefix when debug is enabled > > 2 changed files: > • logging.c > • ntp_io_linux.c > > — > View it on GitLab. > You're receiving this email because of your account on gitlab.com. Manage all > notifications · Help Brya

[chrony-dev] [PATCH] macOS - Replace tuxfamily with chrony-project

2023-07-27 Thread Bryan Christianson
The chrony project has moved from tuxfamily.org to chrony-project.org. Reflect these changes in the macOS startup files and documentation. --- contrib/bryan_christianson_1/README.txt | 24 +-- ...plist => org.chrony-project.chronyc.plist} | 2 +- ...plist => org.chrony-proj

Re: [chrony-dev] libchrony

2023-06-02 Thread Bryan Christianson
bscribe" in the subject. > For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the > subject. > Trouble? Email listmas...@chrony.tuxfamily.org. > Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.

Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 4.3-76-ga849665

2023-04-17 Thread Bryan Christianson
Thank you Miroslav All fixed and clean compile now > On 17/04/2023, at 9:43 PM, Miroslav Lichvar wrote: > > It should be fixed now. Thanks for the report. > Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "uns

Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 4.3-76-ga849665

2023-04-13 Thread Bryan Christianson
versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 5 warnings generated. -- Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamil

[chrony-dev] Cannot check config file as non privileged user

2023-03-31 Thread Bryan Christianson
G) 2023-03-31T21:49:47Z Disabled control of system clock 2023-03-31T21:49:47Z Fatal error : Could not open socket /var/run/chrony.clk.tty.usbserial-1420.sock When I run as root it works fine, but is at odds with the documentation. I am using the current git head to build chrony. -- Bryan Chris

Re: [chrony-dev] [PATCH] Support multiple extpps refclocks on a single PHC device

2023-02-19 Thread Bryan Christianson
c->extpps = RCL_GetDriverOption(instance, "extpps") ? 1 : 0; > > + phc->path = Malloc(strlen(path)); > + strcpy(phc->path, path); > + > phc->clock = HCL_CreateInstance(0, 16, > UTI_Log2ToDouble(RCL_GetDriverPoll(instance)), >

Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 4.3-32-gbadaa83

2023-01-18 Thread Bryan Christianson
TIME_BITS) && _TIME_BITS == 64 typedef int32_t alt_time_t; @@ -75,6 +76,7 @@ struct alt_timeval { alt_suseconds_t tv_usec; }; #endif +#endif static void read_sample(int sockfd, int event, void *anything) { > On 19/01/2023, at 6:14 AM, Bryan Christianson wrote: > > Hi Miro

Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 4.3-32-gbadaa83

2023-01-18 Thread Bryan Christianson
--- > commit badaa83c319ae5a0bef872d1e7a55bf1260c1b84 > Author: Miroslav Lichvar > Date: Wed Jan 18 16:14:10 2023 +0100 > >refclock: convert mismatched timeval in SOCK messages > Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org

Re: [chrony-dev] Purging old clients

2022-03-03 Thread Bryan Christianson
ent. My main concern was there would be an overflow or memory leak but clearly thats not the case. Thanks, Bryan Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help

[chrony-dev] Purging old clients

2022-03-02 Thread Bryan Christianson
ks good to see what looks like a memory leak, but maybe it's insignificant. Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "

Re: [chrony-dev] [PATCH] macOS: Remove temporary workaround for Apple signed/unsigned error in ntp_adjtime.

2021-04-20 Thread Bryan Christianson
> On 20/04/2021, at 6:40 PM, Miroslav Lichvar wrote: > > Thanks. I'll shorten the subject a bit if that's ok with you. No problem. Thanks Miroslav. Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsu

[chrony-dev] [PATCH] macOS: Remove temporary workaround for Apple signed/unsigned error in ntp_adjtime.

2021-04-19 Thread Bryan Christianson
Early beta releases of macOS Big Sur had a signed/unsigned error in Apple's implementation of ntp_adjtime. Apple have since fixed this error and the workaround is no longer required. --- sys_timex.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/sys_timex.c b/sys_timex.c index 9a8504e

Re: [chrony-dev] Frequency transfer in NTP

2021-01-28 Thread Bryan Christianson
ch a development and I hope it goes ahead. Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

[chrony-dev] Using gnutls-3.7.0 to build chrony

2021-01-06 Thread Bryan Christianson
s seem to be working OK. Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] [PATCH] sys_timex: add workaround for broken ntp_adjtime() on macOS

2020-10-15 Thread Bryan Christianson
ith i << 16 - > it didnt like i being a -ve number, so I made the additional tweak of i * (1 > << 16) > > Bryan Christianson > br...@whatroute.net > > > > > -- > To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with > "

Re: [chrony-dev] logdir permissions

2020-10-02 Thread Bryan Christianson
k - thanks for the explanation. Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] logdir permissions

2020-10-01 Thread Bryan Christianson
onyd already does that, so that seemed like a better place to make the change. Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with &quo

[chrony-dev] logdir permissions

2020-10-01 Thread Bryan Christianson
directive that allows the default to be overridden. Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subj

Re: [chrony-dev] 4.0 release soon

2020-10-01 Thread Bryan Christianson
I have configured both appear to be working fine. Apple have yet to either acknowledge or fix the signed/unsigned bug in macOS 11, so I guess we're stuck with the workaround for now. Thanks so much for your all work in preparing this - it's been a long hard road. Bryan Christianson br

Re: [chrony-dev] [PATCH] sys_timex: add workaround for broken ntp_adjtime() on macOS

2020-08-31 Thread Bryan Christianson
l tweak of i * (1 << 16) Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

[chrony-dev] [PATCH] test: extend frequency in ntp_adjtime() test

2020-08-31 Thread Bryan Christianson
Extend the frequency range in the test to cover negative frequencies. --- test/kernel/ntpadjtime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/kernel/ntpadjtime.c b/test/kernel/ntpadjtime.c index d6be154..4af96b4 100644 --- a/test/kernel/ntpadjtime.c +++ b/test/k

[chrony-dev] [PATCH] sys_timex: add workaround for broken ntp_adjtime() on macOS

2020-08-31 Thread Bryan Christianson
On macOS 11.0 (Big Sur) beta, ntp_adjtime() incorrectly returns timex.freq as an unsigned number. This patch is a workaround for the bug and should be removed when Apple fix the problem (assuming they will). --- sys_timex.c | 23 +-- 1 file changed, 21 insertions(+), 2 deleti

[chrony-dev] [PATCH] macOS 11.0 (Big Sur) beta - Bug in implementation of ntp_adjtime()

2020-08-29 Thread Bryan Christianson
macOS 11.0 (Big Sur) beta incorrectly returns timex.freq as an unsigned number. This patch is a workaround for the bug and should be removed when Apple fix the problem (assuming they will). The patch also extends the ntpadjtime test to cover negative frequencies. --- sys_timex.c |

Re: [chrony-dev] chronyd broken on macOS Big Sur

2020-08-27 Thread Bryan Christianson
d this in chrony. Maybe the test case in chrony should also look at -ve frequencies? Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] chronyd broken on macOS Big Sur

2020-08-27 Thread Bryan Christianson
ling interval, you should see in the tracking log when the > offset jumped. Thank you Miroslav - I'll get on to this tomorrow. -- Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the sub

Re: [chrony-dev] chronyd broken on macOS Big Sur

2020-08-26 Thread Bryan Christianson
tation of ntp_adjtime() that somehow causes the clock to jump by random intervals. I would really appreciate help in building a *simple* program to be able to demonstrate this to Apple in a new bug report. Thanks, Bryan -- Bryan Christianson br...@whatroute.net chronyd-debug.txt.gz Description: GNU Zip compressed data

Re: [chrony-dev] chronyd broken on macOS Big Sur

2020-08-20 Thread Bryan Christianson
/en.wikipedia.org/wiki/Timed , a standard from the mid 1980s that as far as I am aware is used by no-one else. Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ.

[chrony-dev] chronyd broken on macOS Big Sur

2020-07-17 Thread Bryan Christianson
have submitted a 'Feedback' report to Apple about this, but they are notoriously unresponsive. If anyone on the list is able to suggest a workaround I'd be most grateful. Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org wit

Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 4.0-pre2-97-g828e6ce

2020-07-10 Thread Bryan Christianson
> On 10/07/2020, at 7:07 PM, Miroslav Lichvar wrote: > > On Fri, Jul 10, 2020 at 08:50:27AM +1200, Bryan Christianson wrote: >> Minor glitch with these patches on macOS > > And all other non-Linux systems, I presume. Thanks for getting it fixed. Bryan Christianso

Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 4.0-pre2-97-g828e6ce

2020-07-09 Thread Bryan Christianson
f5bf44ea0e2c532 (commit) > via a3436c26f0e8e2c679bc045e35d8e3905de39456 (commit) > via b0f5024d560aba9bf2dcef62af57336013e86cee (commit) > via eae4b2abe596f63b705cc0c0815efef211c9e821 (commit) > via ff03b813b00bf60c41725b7f3886f5d79c5e689f (commit) > from 4e747da4b

Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 4.0-pre2-64-ge1d9a57

2020-06-10 Thread Bryan Christianson
, 0, __darwin_obsz(str), __VA_ARGS__) ^ 1 warning generated. > On 11/06/2020, at 1:39 AM, g...@tuxfamily.net wrote: > > This is an automated email from git. It was generated because a ref > change was pushed to the "chrony/chrony.git" reposito

[chrony-dev] Compiling tests on macOS X

2020-06-07 Thread Bryan Christianson
mpiler is: bryan@number9 chronyd-pristine % clang --version Apple clang version 11.0.3 (clang-1103.0.32.62) Target: x86_64-apple-darwin19.5.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin Any one have any suggestion

Re: [chrony-dev] time.cloudflare.com nts not working for me

2020-04-09 Thread Bryan Christianson
t; Thank you very much for the update. Glad to know it's not my setup/firewall etc. -- Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfam

[chrony-dev] time.cloudflare.com nts not working for me

2020-04-09 Thread Bryan Christianson
chrony.conf with: > server time.cloudflare.com nts ntsport 1234 iburst > > server nts.ntp.se nts ntsport 4443 iburst > &

Re: [chrony-dev] [chrony-announce] chrony-4.0-pre1 released

2020-03-16 Thread Bryan Christianson
e "privops.h" > #include "util.h" > > -#ifdef HAVE_MACOS_SYS_TIMEX > #include > + > +#ifdef HAVE_MACOS_SYS_TIMEX > #include "sys_netbsd.h" > > static int have_ntp_adjtime = 0; > > On Mon, Mar 16, 2020 at 9:38 AM Miroslav Li

Re: [chrony-dev] [PATCH] macOS - weak linkage of clock_gettime

2020-03-16 Thread Bryan Christianson
> On 16/03/2020, at 11:10 PM, Miroslav Lichvar wrote: > > On Fri, Mar 13, 2020 at 08:33:00AM +1300, Bryan Christianson wrote: >> Earlier versions of macOS do not provide clock_gettime(). This patch checks >> for clock_gettime() at run-time and falls back to gettimeofda

[chrony-dev] [PATCH] macOS - weak linkage of clock_gettime

2020-03-12 Thread Bryan Christianson
Earlier versions of macOS do not provide clock_gettime(). This patch checks for clock_gettime() at run-time and falls back to gettimeofday() if the symbol is not present. --- sys_macosx.c | 33 + 1 file changed, 33 insertions(+) diff --git a/sys_macosx.c b/sys_ma

[chrony-dev] [PATCH] macOS - weak linkage of clock_gettime (fixed missing include)

2020-03-11 Thread Bryan Christianson
Earlier versions of macOS do not provide clock_gettime(). This patch checks for clock_gettime() at run-time and falls back to gettimeofday() if the symbol is not present. --- local.c | 8 sys_macosx.c | 25 + sys_macosx.h | 1 + 3 files changed, 34 inserti

[chrony-dev] [PATCH] macOS - weak linkage of clock_gettime

2020-03-11 Thread Bryan Christianson
Earlier versions of macOS do not provide clock_gettime(). This patch checks for clock_gettime() at run-time and falls back to gettimeofday() if the symbol is not present. --- local.c | 4 sys_macosx.c | 25 + sys_macosx.h | 1 + 3 files changed, 30 insertions(

Re: [chrony-dev] Problems building with nettle-3.5

2020-03-10 Thread Bryan Christianson
Thanks Miroslav > On 10/03/2020, at 9:26 PM, Miroslav Lichvar wrote: > > On Tue, Mar 10, 2020 at 06:45:46PM +1300, Bryan Christianson wrote: >> gcc -mmacosx-version-min=10.10 -Wmissing-prototypes -Wall >> -I/Users/bryan/Software-Swift5/chronyd/Crypt/opt/include -o doc

[chrony-dev] Problems building with nettle-3.5

2020-03-09 Thread Bryan Christianson
", referenced from: _main in docheck-5b59e0.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Any help appreciated. Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@ch

Re: [chrony-dev] chronyd 3.5 on macOS

2019-12-07 Thread Bryan Christianson
e on how to test that hypothesis. I'm quite happy to include a sleep detection launchd daemon with chronycontrol, which already has the mechanisms for installation/removal/starting/stopping of privileged programs. -- Bryan Christianson br...@whatroute.net -- To unsubscribe email c

Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 3.5-25-g45e41b7

2019-07-25 Thread Bryan Christianson
On 25/07/2019, at 7:57 PM, Miroslav Lichvar wrote: > > On Thu, Jul 25, 2019 at 04:50:58AM +1200, Bryan Christianson wrote: >> Hi Miroslav >> Minor warning generated by compiler on macOS. > > Ok, that means macOS doesn't support those socket flags. The warning

Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 3.5-25-g45e41b7

2019-07-24 Thread Bryan Christianson
=4 -Wmissing-prototypes -Wall -pthread -c socket.c socket.c:147:1: warning: unused function 'check_socket_flag' [-Wunused-function] check_socket_flag(int sock_flag, int fd_flag, int fs_flag) ^ 1 warning generated. -- Bryan Christianson br...@whatroute.net -- To unsubscribe e

Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 3.5-22-gd786809

2019-07-18 Thread Bryan Christianson
st/simulation/133-hwtimestamp |6 +- > test/unit/test.c | 2 +- > test/unit/util.c| 15 - > util.c | 109 +--- > util.h |5 +- > 20 files changed, 1785 insertions(+), 1205 deletions(-) > create

Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 3.5-22-gd786809

2019-07-18 Thread Bryan Christianson
| 131 > test/simulation/133-hwtimestamp |6 +- > test/unit/test.c| 2 +- > test/unit/util.c| 15 - > util.c | 109 +--- > util.h |5 +- > 20 files changed, 17

[chrony-dev] [PATCH] Remove adjtime() check.

2018-10-01 Thread Bryan Christianson
Remove the runtime checking of adjtime(). adjtime() was broken in beta releases of macOS 10.13 but is ok now. --- sys_macosx.c | 42 ++ 1 file changed, 2 insertions(+), 40 deletions(-) diff --git a/sys_macosx.c b/sys_macosx.c index 00ce302..807d62e 100644

Re: [chrony-dev] chrony-3.4 released

2018-09-26 Thread Bryan Christianson
atch done tonight. -- Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] chrony-3.4 released

2018-09-19 Thread Bryan Christianson
; The source code can be downloaded here: > https://download.tuxfamily.org/chrony/chrony-3.4.tar.gz > > MD5 and SHA1 sums: > 7170e750469c198fc6784047d6f71144 chrony-3.4.tar.gz > fa41e595e7041a9deda76a69e970a023091474f6 chrony-3.4.tar.gz > > -- > Miroslav Lichvar Brya

Re: [chrony-dev] [PATCH v2] main: add -X to fall back if time is not adjustable

2018-03-12 Thread Bryan Christianson
-- > To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with > "unsubscribe" in the subject. > For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the > subject. > Trouble? Email listmas...@chrony.tuxfamily.org. > Bryan

Re: [chrony-dev] Wild frequency fluctuations in macOS 13.2

2017-12-08 Thread Bryan Christianson
> On 9/12/2017, at 6:10 PM, Gerriet M. Denkmann wrote: > > > >> On 9 Dec 2017, at 10:31, Bryan Christianson wrote: >> >> If you have not disabled timed by specifying an unknown ip address or >> hostname in the Date&Time System preferences pane,

Re: [chrony-dev] Wild frequency fluctuations in macOS 13.2

2017-12-08 Thread Bryan Christianson
bscribe email chrony-dev-requ...@chrony.tuxfamily.org with > "unsubscribe" in the subject. > For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the > subject. > Trouble? Email listmas...@chrony.tuxfamily.org. > Bryan Christianson br...@what

Re: [chrony-dev] macOS 13: suspicious jumps while sleeping

2017-11-22 Thread Bryan Christianson
if this is set the Mac will from time to time wake up, perform a number of tasks and then sleep again. Maybe this is the reason you are seeing all these wakeups. I don't have access to a laptop to check this behaviour and in fact leave my Mac Mini always on (with display sleep).

Re: [chrony-dev] macOS 13: suspicious jumps while sleeping

2017-11-22 Thread Bryan Christianson
only solution I have been able to come up with is to enable automatic time adjustments and then set the NTP server name to some fictitious name that has no IP address. After changing the name, then once again disable automatic time adjustments. timed will continue to run but fail in its at

Re: [chrony-dev] Using Linux Capabilities

2017-11-08 Thread Bryan Christianson
ut source code changes that’s fine with me. > Maybe you could just start chronyd but with the listening port (123) blocked in your firewall. When your system clock has been set by the external source and chronyc is reporting it as OK, then open the port to allow external requests. Bryan Christian

[chrony-dev] macOS 10.13 bug acknowledged by Apple

2017-08-08 Thread Bryan Christianson
I got notification from Apple today about the adjtime() bug - they asked me to test and sign off as fixed. It all seems to be working as expected so I closed the ticket. Easy enough to re-open if we encounter problems down the track. Bryan Christianson br...@whatroute.net -- To unsubscribe

[chrony-dev] [PATCH] macOS adjtime() faults with NULL request

2017-08-08 Thread Bryan Christianson
On some systems, passing NULL as the first argument to adjtime, will result in returning the amount of adjustment outstanding from a previous call to adjtime(). On macOS this is not allowed and the adjtime call will fault. We can simulate the behaviour of the other systems by cancelling the cur

[chrony-dev] macOS 10.13 with netbsd driver

2017-08-08 Thread Bryan Christianson
) +LOG_FATAL("adjtime() failed"); + + if (PRV_AdjustTime(&remadj, NULL) < 0) +LOG_FATAL("adjtime() failed"); +#else if (PRV_AdjustTime(NULL, &remadj) < 0) LOG_FATAL("adjtime() failed"); +#endif adjustment_remaining = UTI_TimevalToDouble(

Re: [chrony-dev] macOS 10.13 beta 5 - adjtime() is fixed.

2017-08-07 Thread Bryan Christianson
ecause it is the same hardware in both cases. Maybe I need to test that a little more to see if its a real or imaginary (on my part) difference. Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe"

[chrony-dev] macOS 10.13 beta 5 - adjtime() is fixed.

2017-08-07 Thread Bryan Christianson
change to the previous results in maximum skew. Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Tro

[chrony-dev] [PATCH] chronyd -q does not step the system clock

2017-07-31 Thread Bryan Christianson
Attempting to step the system clock by using the -q option with chronyd would fail. --- main.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 5c6a281..b93a883 100644 --- a/main.c +++ b/main.c @@ -448,8 +448,13 @@ int main sched_priority = p

Re: [chrony-dev] Bug in chronyd -q "server ip"

2017-07-31 Thread Bryan Christianson
> On 31/07/2017, at 8:32 PM, Miroslav Lichvar wrote: > > On Mon, Jul 31, 2017 at 05:08:33PM +1200, Bryan Christianson wrote: >> I was just looking at using the -q option before actually running the daemon. > > Have you considered using the initstepslew directive? I

[chrony-dev] Bug in chronyd -q "server ip"

2017-07-30 Thread Bryan Christianson
the clock, the null driver is invoked and that returns a failed code. Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help&q

Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 3.1-72-g1c277a8

2017-07-13 Thread Bryan Christianson
from 760285218f2dc0a86da23b059ab0ef1b5b0e0f03 (commit) Thank you Miroslav. All good on macOS 10.12 and 10.13(beta) Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-

Re: [chrony-dev] [PATCH] macOS - support for ntp_adjtime()

2017-07-13 Thread Bryan Christianson
> On 13/07/2017, at 11:10 PM, Miroslav Lichvar wrote: > > On Thu, Jul 13, 2017 at 12:18:02PM +1200, Bryan Christianson wrote: >> macOS 10.13 will implement the ntp_adjtime() system call, allowing better >> control over the system clock than is possible with the existing adj

[chrony-dev] [PATCH] macOS - support for ntp_adjtime()

2017-07-12 Thread Bryan Christianson
macOS 10.13 will implement the ntp_adjtime() system call, allowing better control over the system clock than is possible with the existing adjtime() system call. chronyd will support both the older and newer calls, enabling binary code to run without recompilation on macOS 10.9 through macOS 10.13

Re: [chrony-dev] [PATCH] macOS - support for ntp_adjtime()

2017-07-12 Thread Bryan Christianson
new version of chrony to get the benefit of a fixed kernel. And failing that, then as you say, another #ifdef Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] [PATCH] macOS - support for ntp_adjtime()

2017-07-11 Thread Bryan Christianson
#x27;m assuming Apple will get around to fixing the bug so I figured we don't want to add anything code will be difficult to remove at a later date. Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" i

Re: [chrony-dev] [PATCH] macOS - support for ntp_adjtime()

2017-07-10 Thread Bryan Christianson
0 (256) 0 (4096) 0 (65536) 0 (1048576) 1048576 us : 16 (16) 256 (256) 500 (4096) 500 (65536) 5000 (1048576) Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the

Re: [chrony-dev] [PATCH] macOS - support for ntp_adjtime()

2017-07-10 Thread Bryan Christianson
> On 11/07/2017, at 2:49 AM, Miroslav Lichvar wrote: > > On Mon, Jul 10, 2017 at 08:03:19PM +1200, Bryan Christianson wrote: >> >> +With the exception of macOS 10.12 and earlier, all systems have operating >> system > > Would it better to say "all suppo

[chrony-dev] [PATCH] macOS - support for ntp_adjtime()

2017-07-10 Thread Bryan Christianson
macOS 10.13 will implement the ntp_adjtime() system call, allowing better control over the system clock than is possible with the existing adjtime() system call. chronyd will support both the older and newer calls, enabling binary code to run without recompilation on macOS 10.9 through macOS 10.13

Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 3.1-65-g0773a1e

2017-06-30 Thread Bryan Christianson
--- > 10 files changed, 99 insertions(+), 55 deletions(-) > > > hooks/post-receive > -- > chrony/chrony.git > > -- > To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with > "unsubscribe" in the subject. > For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the > subject. > Trouble? Email listmas...@chrony.tuxfamily.org. > Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] [PATCH] macOS - support for ntp_adjtime()

2017-06-30 Thread Bryan Christianson
be some version specific configuration. Yes - I think this is the cleanest solution. Then there is no need to check for . If it is missing then the tool chain is broken. Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscr

[chrony-dev] [PATCH] macOS - support for ntp_adjtime()

2017-06-30 Thread Bryan Christianson
macOS 10.13 will implement the ntp_adjtime() system call, allowing better control over the system clock than is possible with the existing adjtime() system call. chronyd will support both the older and newer calls, enabling binary code to run without recompilation on macOS 10.9 through macOS 10.13

Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 3.1-16-gabb0941

2017-04-19 Thread Bryan Christianson
cific options and we can easily find out what works and what doesn't. B > On 20/04/2017, at 12:01 AM, Miroslav Lichvar wrote: > > On Wed, Apr 19, 2017 at 11:53:45PM +1200, Bryan Christianson wrote: >> It looks good on macOS Sierra 10.12.4 >> FYI - Here is the output

Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 3.1-16-gabb0941

2017-04-19 Thread Bryan Christianson
| 8 ++-- > 4 files changed, 33 insertions(+), 10 deletions(-) > > > hooks/post-receive > -- > chrony/chrony.git > > -- > To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with > "unsubscribe" in the subject. > For help email chrony-dev-

[chrony-dev] Compile warnings on macOS

2016-12-07 Thread Bryan Christianson
tss_chars) || ~ ^ ~ ntp_core.c:1521:29: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare] inst->local_tx.source < 0 || inst->local_tx.source >= sizeof (tss_chars)) -- Bryan Christianson br...@whatroute.net

Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 2.4-98-gea58a1e

2016-11-10 Thread Bryan Christianson
isions listed above that are new to this repository have > not appeared on any other notification email; so we list those > revisions in full, below. Compiles and runs with no problems on macOS Sierra Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.

[chrony-dev] chrony icon ?

2016-09-01 Thread Bryan Christianson
network activity associated with processes and chronyd looks a little stark with just its name and no image. I have absolutely no talent in designing icons, hence the request. — Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with

[chrony-dev] [PATCH] Add option --without-clock-gettime to disable clock_gettime even if present

2016-08-22 Thread Bryan Christianson
clock_gettime() will be ignored even if it is present --- configure | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/configure b/configure index 9857295..d1fee97 100755 --- a/configure +++ b/configure @@ -85,6 +85,7 @@ For better control, use the options

Re: [chrony-dev] clock_gettime() on macOS

2016-08-22 Thread Bryan Christianson
> On 22/08/2016, at 8:14 PM, Miroslav Lichvar wrote: > > On Mon, Aug 22, 2016 at 10:49:30AM +1200, Bryan Christianson wrote: >> We need to make sure that chrony compiled on macOS 10.12 (or later) will >> still run on versions earlier than macOS 10.12 > > Hm, is that

[chrony-dev] clock_gettime() on macOS

2016-08-21 Thread Bryan Christianson
ToTimespec(&tv, ts); + } else { +if (clock_gettime(CLOCK_REALTIME, ts) < 0) + LOG_FATAL(LOGF_Local, "clock_gettime() failed : %s", strerror(errno)); + } +} +#endif + +/* == */ #endif Bryan Christianson br...@whatroute.net -- To

Re: buglet - Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 2.4-41-g7a1ebc3

2016-08-19 Thread Bryan Christianson
> On 20/08/2016, at 4:28 AM, Bryan Christianson wrote: > > I found the new headers - looks like full support for clock_gettime() in > macOS 10.12 > > > Now I know what the problem is, I’ll have to figure out how to setup my IDE > to use the old headers :) > I t

Re: buglet - Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 2.4-41-g7a1ebc3

2016-08-19 Thread Bryan Christianson
ROHIBITED __TVOS_PROHIBITED __WATCHOS_PROHIBITED int clock_settime(clockid_t __clock_id, const struct timespec *__tp); Couldn’t find anything other than adjtime() for clock adjustment. Now I know what the problem is, I’ll have to figure out how to setup my IDE to use the old headers :) Bryan Christ

buglet - Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 2.4-41-g7a1ebc3

2016-08-19 Thread Bryan Christianson
GF_Local, "gettimeofday() failed : %s", strerror(errno)); UTI_TimevalToTimespec(&tv, ts); #endif Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ

Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 2.4-41-g7a1ebc3

2016-08-19 Thread Bryan Christianson
> On 20/08/2016, at 3:38 AM, Miroslav Lichvar wrote: > > On Sat, Aug 20, 2016 at 02:32:33AM +1200, Bryan Christianson wrote: >>> local: add support for clock_gettime() >>> >>> Use clock_gettime() to read the system clock in nanosecond resolution. &g

Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 2.4-41-g7a1ebc3

2016-08-19 Thread Bryan Christianson
are system calls that will return nanosec resolution, but we are still stuck with adjtime() for adjustment. Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@ch

Re: [chrony-dev] [PATCH] Rename 'Mac OS X' to 'macOS'

2016-08-04 Thread Bryan Christianson
> On 4/08/2016, at 8:36 PM, Miroslav Lichvar wrote: > > On Thu, Aug 04, 2016 at 08:08:07PM +1200, Bryan Christianson wrote: >> From the the release of macOS Sierra (Version 10.12) the Macintosh >> operating system is called 'macOS' > > Thanks for the pa

[chrony-dev] chrony on macOS Sierra 10.12 (beta)

2016-08-04 Thread Bryan Christianson
Just an FYI All seems to be OK. Existing (compiled on El Capitan) chrony binaries run fine on 10.12 Chrony also compiles and runs with no issues on 10.12 using the beta versions of the development tools (Xcode 8). Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev

[chrony-dev] [PATCH] Rename 'Mac OS X' to 'macOS'

2016-08-04 Thread Bryan Christianson
an_christianson_1/README.txt @@ -1,16 +1,16 @@ -Notes for installing chrony on MacOS X +Notes for installing chrony on macOS Author: Bryan Christianson (br...@whatroute.net) These files are for those admins/users who would prefer to install chro

Re: [chrony-dev] chrony-2.4-pre1 released

2016-05-17 Thread Bryan Christianson
f very small floating-point numbers in command packets > > Removed features > > * Drop documentation in Texinfo format > > -- > Miroslav Lichvar Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "

Re: [chrony-dev] [GIT] chrony/chrony.git branch, master, updated. 2.3-36-gb252c57

2016-04-09 Thread Bryan Christianson
++ > test/simulation/115-cmdmontime |2 +- > 13 files changed, 94 insertions(+), 145 deletions(-) > > > hooks/post-receive > -- > chrony/chrony.git > > -- > To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with > "unsubscribe" in the subject. > For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the > subject. > Trouble? Email listmas...@chrony.tuxfamily.org. > Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] [GIT] chrony/chrony.git branch, master, updated. 2.2.1-105-ge3191e3

2016-01-30 Thread Bryan Christianson
> examples/chrony.keys.example | 15 ++-- > keys.c | 18 ++++- > keys.h|1 + > ntp_core.c|9 ++- > pktlength.c |8 +- > reference.c | 13 +--- > 15 files changed

Re: [chrony-dev] [GIT] chrony/chrony.git branch, master, updated. 2.2.1-90-g7cc432f

2016-01-25 Thread Bryan Christianson
> On 25/01/2016, at 11:36 PM, Miroslav Lichvar wrote: > > On Sat, Jan 23, 2016 at 08:56:23AM +1300, Bryan Christianson wrote: >> Many compiler warnings from this patch on OS X > >> gcc -O2 -g -Wmissing-prototypes -Wall -pthread -c pktlength.c >> pktlength.c:58:3

Re: [chrony-dev] [GIT] chrony/chrony.git branch, master, updated. 2.2.1-90-g7cc432f

2016-01-23 Thread Bryan Christianson
xtend initialisation tests > > commit 0a9d75bfb87d31f8ff287955df89ed10294c5cd2 > Author: Miroslav Lichvar > Date: Tue Jan 19 16:52:52 2016 +0100 > >pktlength: rework code to use tables > > commit 070f2706b7dd6a324472c443f4a24dfcb34d1be7 > Author: Miros

[chrony-dev] [PATCH] MacOSX - Incorrect sign in apply_step_offset()

2015-12-09 Thread Bryan Christianson
The desired offset was being added to the current time instead of being subtracted. --- sys_macosx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys_macosx.c b/sys_macosx.c index c1592dd..fb2a70e 100644 --- a/sys_macosx.c +++ b/sys_macosx.c @@ -248,7 +248,7 @@ apply_step_o

Re: [chrony-dev] [GIT] chrony/chrony.git branch, master, updated. 2.2-48-gfe50212

2015-12-09 Thread Bryan Christianson
you on Mac OS X? Apart from the initialisation problem, it all seems to be working OK. Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

  1   2   >