X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2d21ac55c334faf3a56e5634905ed6987fc787d4..b0d623f7f2ae71ed96e60569f61f9a9a27016e80:/bsd/sys/time.h diff --git a/bsd/sys/time.h b/bsd/sys/time.h index 6f3d264cb..732d1ae76 100644 --- a/bsd/sys/time.h +++ b/bsd/sys/time.h @@ -79,6 +79,13 @@ #define __need_struct_timeval #ifdef KERNEL #define __need_struct_user_timespec +#define __need_struct_user32_timespec +#define __need_struct_user64_timespec +#define __need_struct_user_timeval +#define __need_struct_user32_timeval +#define __need_struct_user64_timeval +#define __need_struct_user32_itimerval +#define __need_struct_user64_itimerval #endif /* KERNEL */ #include @@ -137,30 +144,6 @@ struct itimerval { #define FD_COPY(f, t) __DARWIN_FD_COPY(f, t) #endif /* FD_COPY */ -#ifdef KERNEL -#ifndef _USERTIMEVAL -#define _USERTIMEVAL - -#include /* user_time_t */ -/* - * LP64 version of struct timeval. time_t is a long and must grow when - * we're dealing with a 64-bit process. - * WARNING - keep in sync with struct timeval - */ - -struct user_timeval { - user_time_t tv_sec; /* seconds */ - suseconds_t tv_usec __attribute((aligned(8))); /* and microseconds */ -}; - -struct user_itimerval { - struct user_timeval it_interval; /* timer interval */ - struct user_timeval it_value; /* current value */ -}; - -#endif /* _USERTIMEVAL */ -#endif /* KERNEL */ - #define TIMEVAL_TO_TIMESPEC(tv, ts) { \ (ts)->tv_sec = (tv)->tv_sec; \ (ts)->tv_nsec = (tv)->tv_usec * 1000; \