%m, #614

Gary E. Miller gem at rellim.com
Thu Aug 29 22:01:05 UTC 2019


Yo Richard!

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

> On 8/29/19 4:04 PM, Hal Murray via devel wrote:
> > Gary said:
> > [API for strerror_r()]  
> >> On Linux, yes.  But not on all distros.  For example, on Android,
> >> which gpsd supports, strerror_r() always returns an int.  No
> >> options.   
> > 
> > Same on NetBSD and FreeBSD.  
> 
> Right, so that seems like an argument to use the XSI interface, not
> the GNU one. Everyone but Linux glibc uses the XSI interface, and
> Linux glibc can be configured to present the XSI interface.
> 
> "The XSI-compliant version is provided if: (_POSIX_C_SOURCE >=
> 200112L) && ! _GNU_SOURCE"
> 
> So basically, don't set _GNU_SOURCE, and either don't set
> _POSIX_C_SOURCE at all, or set _POSIX_C_SOURCE to 200112L (or
> something newer)?

Then you can not run on older glibc (pre 2.13).  CentOS supported 2.12 as
recently as 2017.

> Then make sure the NTPsec code is consistently written with the
> assumption of the XSI interface, not the GNU one (i.e. fix one of the
> mismatches in NTPsec, if that hasn't already been done).

And breaks not too old distros...

I'll leave that policy decision to someone else.

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/1786ce33/attachment.bin>


More information about the devel mailing list