[PATCH] clock_nanosleep(2)

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Wed Jul 20 09:16:00 GMT 2011


On Wed, 2011-07-20 at 09:56 +0200, Corinna Vinschen wrote:
> This doesn't look right.  In contrast to nanosleep, clock_nanosleep
> is not subsumed under the _POSIX_TIMERS option.  In fact it's the only
> function under the _POSIX_CLOCK_SELECTION option.

I did some searching, and there are actually two more:

http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_condattr_getclock.html

The behaviour of the following functions are also affected by this
option:

http://pubs.opengroup.org/onlinepubs/009695399/functions/clock_getres.html
http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_cond_wait.html

(It should be noted that the Clock Selection option was merged into the
Base with POSIX.1-2008.)

How should we proceed now?


Yaakov




More information about the Cygwin-patches mailing list