[PATCH] clock_settime

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Sun May 8 22:48:00 GMT 2011


This implements the POSIX clock_settime function, on top of settimeofday:

http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_settime.html
http://www.kernel.org/doc/man-pages/online/pages/man3/clock_gettime.3.html
http://www.kernel.org/doc/man-pages/online/pages/man2/settimeofday.2.html

The fixes to settimeofday are necessary both to match BSD and Linux behaviour,
and to provide the errnos and return status for clock_settime required by POSIX.
I also fixed posix.sgml WRT clock_setres.

Patches for winsup/cygwin and winsup/doc, plus test programs for both
functions, attached.


Yaakov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clock_settime.patch
Type: application/octet-stream
Size: 4677 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20110508/1458ea92/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: settimeofday-test.c
Type: text/x-csrc
Size: 559 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20110508/1458ea92/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clock_settime-test.c
Type: text/x-csrc
Size: 707 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20110508/1458ea92/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: doc-clock_settime.patch
Type: application/octet-stream
Size: 843 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20110508/1458ea92/attachment-0001.obj>


More information about the Cygwin-patches mailing list