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

2017-08-09 Thread Miroslav Lichvar
On Wed, Aug 09, 2017 at 05:14:05AM +1200, Bryan Christianson wrote: > 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 fa

[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