[PATCH] clock_nanosleep(2)

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


This patchset implements the POSIX clock_nanosleep(2) function:

http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_nanosleep.html
http://www.kernel.org/doc/man-pages/online/pages/man2/clock_nanosleep.2.html

In summary, clock_nanosleep(2) replaces nanosleep(2) as the primary
sleeping function, with all others rewritten in terms of the former.  It
also restores maximum precision to hires_ms::resolution(), saving the
<5000 100ns check for the one place where resolution is rounded off.

Patches for newlib, winsup/cygwin, and winsup/doc attached.  I would
appreciate a careful look at this one.


Yaakov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: newlib-clock_nanosleep.patch
Type: text/x-patch
Size: 600 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20110720/15095329/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winsup-cygwin-clock_nanosleep.patch
Type: text/x-patch
Size: 11583 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20110720/15095329/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winsup-doc-clock_nanosleep.patch
Type: text/x-patch
Size: 1400 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20110720/15095329/attachment-0002.bin>


More information about the Cygwin-patches mailing list