[PATCH] POSIX monotonic clock
Yaakov (Cygwin/X)
yselkowitz@users.sourceforge.net
Tue Aug 3 05:52:00 GMT 2010
On Mon, 2010-08-02 at 20:37 -0400, Christopher Faylor wrote:
> But that changes the sense of the errno. EINVAL would indicate an unsupported
> argument. At least some of the cases fail because of an unimplemented NT
> function call, e.g., ENOSYS. Regardless of what POSIX says, I think that ENOSYS
> is ok, in at least some cases, for Cygwin since I believe QueryPerformanceCounter
> doesn't work on NT3.5 and NT4.
Thanks for the review. This patch uses ENOSYS for QueryPerformance*
failures and EINVAL for unsupported/illegal CLOCK_* arguments. If this
is OK, then I'll proceed with the newlib patch, which needs to be
applied first.
Yaakov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winsup-cygwin-monotonic-clock.patch
Type: text/x-patch
Size: 7615 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20100803/777ca5a8/attachment.bin>
More information about the Cygwin-patches
mailing list