Cygwin sysconf.cc
Brian Inglis
Brian.Inglis@SystematicSw.ab.ca
Wed Mar 2 19:45:12 GMT 2022
On 2022-03-02 01:25, Corinna Vinschen wrote:
> Hi Brian,
>
> On Mar 1 13:20, Brian Inglis wrote:
>> Interested in a patch for sysconf.cc to return:
>>
>> _SC_TZNAME_MAX => TZNAME_MAX and
>> _SC_MONOTONIC_CLOCK => _POSIX_MONOTONIC_CLOCK?
>
> not sure I understand the question. Both are already implemented.
>
> $ getconf -a | egrep '(TZNAME_MAX|MONOTONIC_CLOCK)'
> _POSIX_TZNAME_MAX 6
> TZNAME_MAX undefined
> _POSIX_MONOTONIC_CLOCK 200809
Sorry, must have been looking at very *OLD* version online, as
_SC_CLOCK_SELECTION and _SC_MONOTONIC_CLOCK were not defined.
Why did you not define _SC_TZNAME_MAX => _POSIX_TZNAME_MAX when you
tweaked it?
My rereading of the man and POSIX pages leads me to believe that for all
known values of _SC_... the entries now showing {nsup, {c:0}} should be
{cons, {c:-1L}} supported but undefined, and only out of range values
for the parameter should be treated as {nsup, {c:-1L}}?
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
More information about the Cygwin-patches
mailing list