Differences From Artifact [fa45b767a1]:
- File src/OFSelectKernelEventObserver.m — part of check-in [b7badc68a0] at 2019-09-01 15:20:30 on branch trunk — Use u suffix on a few constants (user: js, size: 6032) [annotate] [blame] [check-ins using]
To Artifact [6eb8060c59]:
- File
src/OFSelectKernelEventObserver.m
— part of check-in
[e702135e17]
at
2019-09-01 16:53:45
on branch trunk
— Remove remaining uses of lrint()
It was used to convert a time interval into seconds and microseconds or
seconds and nanoseconds and introduced inaccuracies. (user: js, size: 6009) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
23 24 25 26 27 28 29 | #ifdef OF_WINDOWS /* Win32 has a ridiculous default of 64, even though it supports much more. */ # define FD_SETSIZE 1024 #endif #include <errno.h> | < | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | #ifdef OF_WINDOWS /* Win32 has a ridiculous default of 64, even though it supports much more. */ # define FD_SETSIZE 1024 #endif #include <errno.h> #include <string.h> #include <sys/time.h> #import "OFSelectKernelEventObserver.h" #import "OFArray.h" #import "OFKernelEventObserver+Private.h" |
︙ | ︙ | |||
176 177 178 179 180 181 182 | * satisfy the required range, we just cast to int. */ #ifndef OF_WINDOWS timeout.tv_sec = (time_t)timeInterval; #else timeout.tv_sec = (long)timeInterval; #endif | | | 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | * satisfy the required range, we just cast to int. */ #ifndef OF_WINDOWS timeout.tv_sec = (time_t)timeInterval; #else timeout.tv_sec = (long)timeInterval; #endif timeout.tv_usec = (int)((timeInterval - timeout.tv_sec) * 1000); #ifdef OF_AMIGAOS if ((cancelSignal = AllocSignal(-1)) == (ULONG)-1) @throw [OFObserveFailedException exceptionWithObserver: self errNo: EAGAIN]; execSignalMask = _execSignalMask | (1ul << cancelSignal); |
︙ | ︙ |