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

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


> On 20/08/2016, at 4:19 AM, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
> 
> I knew there would be something :). Thanks.

You’re welcome and I’m happy to contribute :)

I found the new headers - looks like full support for clock_gettime() in macOS 10.12

__CLOCK_AVAILABILITY
int clock_getres(clockid_t __clock_id, struct timespec *__res);

__CLOCK_AVAILABILITY
int clock_gettime(clockid_t __clock_id, struct timespec *__tp);

#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
__CLOCK_AVAILABILITY
__uint64_t clock_gettime_nsec_np(clockid_t __clock_id);
#endif

__OSX_AVAILABLE(10.12) __IOS_PROHIBITED
__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 Christianson
bryan@xxxxxxxxxxxxx




--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/