Yo Ian! On Thu, 29 Aug 2019 17:16:11 -0500 Ian Bruene via devel <devel@ntpsec.org> wrote:
> On 8/29/19 4:36 PM, Gary E. Miller via devel wrote: > > Hal you are corect. Page 140, section 6.7.9 Initialization. > > > > "If an object that has static or thread storage duration is not > > initialized explicitly, then: > > [...] > > -- if it has arithmetic tye, it is initialized to (positive or > > unsigned) zero;" > > > > So static storage items are initialized for at least C11. > > We use C99 not C11. However the C99 standard has the same language in > it. You only think you use c99. Look in /usr/include/features.h for _GNU_SOURCE. NTPsec compiles with _GNU_SOURCE. That turns on this in features.h: /* If _GNU_SOURCE was defined by the user, turn on all the other features. */ #ifdef _GNU_SOURCE [...] # define _ISOC11_SOURCE 1 [...] # define _POSIX_SOURCE 1 [...] # define _POSIX_C_SOURCE 200809L [...] # define _XOPEN_SOURCE 700 [...] #endif Side effect is that this, in wscript, does nothing: wscript: ctx.define("_POSIX_C_SOURCE", "200112L", quote=False) I suggest you take a good long hard look at the contents of that include file. RGDS GARY --------------------------------------------------------------------------- Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703 g...@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
pgpfNRrGkD9z_.pgp
Description: OpenPGP digital signature
_______________________________________________ devel mailing list devel@ntpsec.org http://lists.ntpsec.org/mailman/listinfo/devel