VirtualBox

Changes between Version 1 and Version 2 of Ticket #19312, comment 9


Ignore:
Timestamp:
Mar 20, 2020 3:07:23 PM (4 years ago)
Author:
Frank Batschulat (Oracle)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19312, comment 9

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

© 2023 Oracle
ContactPrivacy policyTerms of Use