Searched refs:tv64 (Results 1 – 3 of 3) sorted by relevance
512 struct user64_timeval tv64 = {}; in sysctl_timeval() local514 tv64.tv_sec = tv->tv_sec; in sysctl_timeval()515 tv64.tv_usec = tv->tv_usec; in sysctl_timeval()516 return SYSCTL_OUT(req, &tv64, sizeof(tv64)); in sysctl_timeval()
4928 struct user64_timeval tv64; in sooptcopyin_timeval() local4930 if (sopt->sopt_valsize < sizeof(tv64)) { in sooptcopyin_timeval()4934 sopt->sopt_valsize = sizeof(tv64); in sooptcopyin_timeval()4936 error = copyin(sopt->sopt_val, &tv64, sizeof(tv64)); in sooptcopyin_timeval()4941 bcopy(CAST_DOWN(caddr_t, sopt->sopt_val), &tv64, in sooptcopyin_timeval()4942 sizeof(tv64)); in sooptcopyin_timeval()4944 if (tv64.tv_sec < 0 || tv64.tv_sec > LONG_MAX || in sooptcopyin_timeval()4945 tv64.tv_usec < 0 || tv64.tv_usec >= 1000000) { in sooptcopyin_timeval()4949 tv_p->tv_sec = (__darwin_time_t)tv64.tv_sec; in sooptcopyin_timeval()4950 tv_p->tv_usec = tv64.tv_usec; in sooptcopyin_timeval()[all …]
1809 struct user64_timeval *tv64 = (struct user64_timeval *)(void *)CMSG_DATA(tmp_cp); in copyout_control() local1811 os_unaligned_deref(&tv64->tv_sec) = tv->tv_sec; in copyout_control()1812 os_unaligned_deref(&tv64->tv_usec) = tv->tv_usec; in copyout_control()