| 104 | |
| 105 | Also 'struct timeval' used in iprt/time.h is in a similar way |
| 106 | defined iff KERNEL is NOT defined. |
| 107 | |
| 108 | {{{ |
| 109 | #ifndef __KERNEL__ |
| 110 | #ifndef _STRUCT_TIMESPEC |
| 111 | #define _STRUCT_TIMESPEC |
| 112 | struct timespec { |
| 113 | __kernel_old_time_t tv_sec; /* seconds */ |
| 114 | long tv_nsec; /* nanoseconds */ |
| 115 | }; |
| 116 | #endif |
| 117 | |
| 118 | struct timeval { |
| 119 | __kernel_old_time_t tv_sec; /* seconds */ |
| 120 | __kernel_suseconds_t tv_usec; /* microseconds */ |
| 121 | }; |
| 122 | |
| 123 | struct itimerspec { |
| 124 | struct timespec it_interval;/* timer period */ |
| 125 | struct timespec it_value; /* timer expiration */ |
| 126 | }; |
| 127 | |
| 128 | struct itimerval { |
| 129 | struct timeval it_interval;/* timer interval */ |
| 130 | struct timeval it_value; /* current value */ |
| 131 | }; |
| 132 | #endif |
| 133 | }}} |