%m, #614

Gary E. Miller gem at rellim.com
Thu Aug 29 20:41:35 UTC 2019


Yo Richard!

On Thu, 29 Aug 2019 14:35:36 -0500
Richard Laager via devel <devel at ntpsec.org> wrote:

> On 8/29/19 2:20 PM, Gary E. Miller via devel wrote:
> > Sadly we do not get to pick the API.  The user picks the available
> > APIs when he picks a distro.  
> Read `man strerror_r`. The defines determine which API (XSI or GNU)
> glibc provides. You, the application author, pick the API by setting
> the macros.

On Linux, yes.  But not on all distros.  For example, on Android,
which gpsd supports, strerror_r() always returns an int.  No options.

Ditto on osx which NTPsec supports:

https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/strerror.3.html

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20190829/be2cab7d/attachment.bin>


More information about the devel mailing list