Should _POSIX_TIMERS be set to 200809L instead of 0?
Hi,
Gabriele G. has some problems with the vlc development people,
especially regarding the value of _POSIX_TIMERS, see also Gabrieles
first patch to debian-hurd.
>From /usr/include/i386-gnu/bits/posix_opt.h (in eglibc-2.17-98~1)
/* We do not have POSIX timers, but could in future without ABI change.
*/
#define _POSIX_TIMERS 0
Still we have (from local-clock_gettime_MONOTONIC.diff):
/* The monotonic clock might be available. */
#define _POSIX_MONOTONIC_CLOCK 200809L
/* The clock selection interfaces are available. */
#define _POSIX_CLOCK_SELECTION 200809L
According to the developers having _POSIX_TIMERS equal to zero while the
other two are defined is not correct.
Quoting:
> This is a completely illegal and non-sensical combination. POSIX requires
> timers if clock selection is supported, since clock selection instrinsically
> depends on timers. Furthermore POSIX.2008 requires timers and the monotonic
> clock in any case (they are *not* optional).
>
> So as already implied, your system is broken. It is your operating system, not
> VLC, that needs fixing.
However from
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap02.html
one reads (quote):
* The following symbolic constants shall be defined by the implementation as follows:
o Symbolic constants defined with the value 200809L:
_POSIX_CLOCK_SELECTION
...
_POSIX_TIMERS
...
* The system may support one or more options (see Options) denoted by the following symbolic constants:
_POSIX_MONOTONIC_CLOCK
Who is right?
Reply to: