Possible cruft cleanup: clock_gettime vs getitimer

Joel Sherrill joel at rtems.org
Mon Feb 17 20:29:35 UTC 2020


On Mon, Feb 17, 2020 at 1:34 PM Gary E. Miller via devel <devel at ntpsec.org>
wrote:

> Yo Hal!
>
> On Sun, 16 Feb 2020 21:42:59 -0800
> Hal Murray via devel <devel at ntpsec.org> wrote:
>
> > wscript says:
> >         # MacOS doesn't have timer_create ??
> >         ('timer_create', ["signal.h", "time.h"], "RT", False),
> >
> > Can a MacOS wizard verify that and/or see what versions do/don't
> > support it? Thanks.
>
> I'm not a MacOS wizard, but I can verify that my up to date osX
> has no such function.
>
> [...]
> Checking for function timer_create                              : no
> [...]
>
> # fgrep timer_create /opt/local/include -R
> #
>
> My linux man page says timer_create() is POSIX 1993, so maybe a missing
> feature macro?
>
>        timer_create(): _POSIX_C_SOURCE >= 199309L
>

timer_create() was originally part of the POSIX Real-Time Extensions and is
now considered a "C Extension". newlib protects the method prototype with
_POSIX_TIMERS which has to be defined on a per OS basis as a feature
beyond the base POSIX version.

POSIX itself doesn't give much of a hint except the Real-Time Extension
history. That's the clue that support is likely very much optional and
varies.

https://pubs.opengroup.org/onlinepubs/9699919799/functions/timer_create.html


--joel


>
> But, when I tried to build with git head, I now get this error:
>
> Waf: Leaving directory `/usr/local/src/NTP/ntpsec/build/main'
> Fatal Python error: PyThreadState_Get: no current thread
> ../Do-config-ntpsec: line 11: 13733 Abort trap: 6           ./waf build
>
> RGDS
> GARY
> ---------------------------------------------------------------------------
> Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
>         gem at rellim.com  Tel:+1 541 382 8588
>
>             Veritas liberabit vos. -- Quid est veritas?
>     "If you can't measure it, you can't improve it." - Lord Kelvin
> _______________________________________________
> devel mailing list
> devel at ntpsec.org
> http://lists.ntpsec.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20200217/77d28e7a/attachment.htm>


More information about the devel mailing list