This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH] clock_nanosleep(2)
On Wed, 2011-07-20 at 04:16 -0500, Yaakov (Cygwin/X) wrote:
> 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?
Actually, no need to panic, I took a closer look at this, and it's not
all that hard at all, so I'll go ahead and implement
pthread_condattr_[gs]etclock() as well. Just give me a day or two to
get it done. In the meantime, I'll proceed with the revised newlib
patch.
Yaakov