|
version 1.32.4.1, 2026/07/29 01:02:05
|
version 1.33, 2026/07/29 01:10:40
|
|
Line 172 SUCH DAMAGE.
|
Line 172 SUCH DAMAGE.
|
| #endif |
#endif |
| |
|
| /* timespec helpers */ |
/* timespec helpers */ |
| #ifndef TIMEVAL_TO_TIMESPEC |
|
| #define TIMEVAL_TO_TIMESPEC(tv, ts) { \ |
|
| (ts)->tv_sec = (tv)->tv_sec; \ |
|
| (ts)->tv_nsec = (tv)->tv_usec * 1000; \ |
|
| } |
|
| #endif |
|
| |
|
| #ifndef TIMESPEC_TO_TIMEVAL |
|
| #define TIMESPEC_TO_TIMEVAL(tv, ts) { \ |
|
| (tv)->tv_sec = (ts)->tv_sec; \ |
|
| (tv)->tv_usec = (ts)->tv_nsec / 1000; \ |
|
| } |
|
| #endif |
|
| |
|
| /* Operations on timevals. */ |
/* Operations on timevals. */ |
| #ifndef timerclear |
#ifndef timerclear |
| #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 | #define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) |
| #endif |
#endif |
| |
|
| #ifndef timerisset |
#ifndef timerisset |
|
Line 228 SUCH DAMAGE.
|
Line 214 SUCH DAMAGE.
|
| |
|
| /* Operations on timespecs. */ |
/* Operations on timespecs. */ |
| #ifndef timespecclear |
#ifndef timespecclear |
| #define timespecclear(tsp) (tsp)->tv_sec = (tsp)->tv_nsec = 0 | #define timespecclear(tsp) ((tsp)->tv_sec = (tsp)->tv_nsec = 0) |
| #endif |
#endif |
| |
|
| #ifndef timespecisset |
#ifndef timespecisset |