[lsb-discuss] LSB 4.0 Beta 1: possible <time.h> header file error

Denis Silakov silakov at ispras.ru
Fri Oct 17 00:59:14 PDT 2008


Wichmann, Mats D wrote:
> I think you're right, but there's also some evidence that this
> may have been intentional, so let's wait a bit before fixing.
> As a temporary workaround there would be no harm in replacing
> __sysconf with sysconf (as in, manually hack the header).
> __sysconf is in the LSB, tagged as:
>
> __sysconf() is not in the source standard; it is only in
> the binary standard.

Indeed, __sysconf is not supposed to be used in applications directly. 
However, CLK_TCK definition that causes the problem comes from 
bits/time.h header, and that header does provide __sysconf declaration. 
Since LSB time.h incorporate time.h and bits/time.h, maybe it makes 
sense to include __sysconf() declaration it this header, too?

-- 
Regards,
Denis.



More information about the lsb-discuss mailing list