/netbsd/sys/compat/sys/ |
H A D | time_types.h | 79 ts->tv_sec = ts50->tv_sec; in timeval50_to_timeval() 86 memset(ts50, 0, sizeof(*ts50)); in timeval_to_timeval50() 87 ts50->tv_sec = (long)ts->tv_sec; in timeval_to_timeval50() 88 ts50->tv_usec = ts->tv_usec; in timeval_to_timeval50() 95 ts->tv_sec = ts50->tv_sec; in timespec50_to_timespec() 96 ts->tv_nsec = ts50->tv_nsec; in timespec50_to_timespec() 102 memset(ts50, 0, sizeof(*ts50)); in timespec_to_timespec50() 104 ts50->tv_nsec = ts->tv_nsec; in timespec_to_timespec50() 118 memset(ts50, 0, sizeof(*ts50)); in itimerval_to_itimerval50() 134 struct itimerspec50 *ts50) in itimerspec_to_itimerspec50() argument [all …]
|
/netbsd/sys/compat/common/ |
H A D | kern_50.c | 69 struct timespec50 ts50; in compat_50_sys__lwp_park() local 75 error = copyin(SCARG(uap, ts), &ts50, sizeof(ts50)); in compat_50_sys__lwp_park() 78 timespec50_to_timespec(&ts50, &ts); in compat_50_sys__lwp_park() 94 struct timespec50 ts50; in tscopyin() local 98 error = copyin(u, &ts50, sizeof(ts50)); in tscopyin() 101 timespec50_to_timespec(&ts50, s); in tscopyin() 108 struct timespec50 ts50; in tscopyout() local 111 timespec_to_timespec50(s, &ts50); in tscopyout() 112 return copyout(&ts50, u, sizeof(ts50)); in tscopyout()
|
H A D | kern_time_50.c | 357 struct timespec50 ts50; in compat_50_sys_aio_suspend() local 366 error = copyin(SCARG(uap, timeout), &ts50, in compat_50_sys_aio_suspend() 370 timespec50_to_timespec(&ts50, &ts); in compat_50_sys_aio_suspend() 397 struct timespec50 ts50; in compat_50_sys_mq_timedsend() local 403 error = copyin(SCARG(uap, abs_timeout), &ts50, sizeof(ts50)); in compat_50_sys_mq_timedsend() 406 timespec50_to_timespec(&ts50, &ts); in compat_50_sys_mq_timedsend() 432 struct timespec50 ts50; in compat_50_sys_mq_timedreceive() local 438 error = copyin(SCARG(uap, abs_timeout), &ts50, sizeof(ts50)); in compat_50_sys_mq_timedreceive() 442 timespec50_to_timespec(&ts50, &ts); in compat_50_sys_mq_timedreceive()
|
H A D | kern_select_50.c | 62 struct timespec50 ts50; in compat_50_kevent_fetch_timeout() local 67 error = copyin(src, &ts50, sizeof(ts50)); in compat_50_kevent_fetch_timeout() 70 timespec50_to_timespec(&ts50, (struct timespec *)dest); in compat_50_kevent_fetch_timeout()
|
/netbsd/lib/libc/compat/sys/ |
H A D | compat_mqueue.c | 64 unsigned * __restrict buf, const struct timespec50 * __restrict ts50) in __weak_alias() 68 if (ts50) in __weak_alias() 69 timespec50_to_timespec(ts50, tsp = &ts); in __weak_alias() 77 unsigned buf, const struct timespec50 *ts50) in mq_timedsend() argument 81 if (ts50) in mq_timedsend() 82 timespec50_to_timespec(ts50, tsp = &ts); in mq_timedsend()
|
H A D | compat__lwp_park.c | 57 _lwp_park(const struct timespec50 *ts50, lwpid_t unpark, in _lwp_park() argument 62 if (ts50) in _lwp_park() 63 timespec50_to_timespec(ts50, tsp = &ts); in _lwp_park()
|
H A D | compat_lfs_segwait.c | 56 lfs_segwait(fsid_t *fsid, struct timeval50 *ts50) in lfs_segwait() argument 60 if (ts50) in lfs_segwait() 61 timeval50_to_timeval(ts50, tsp = &ts); in lfs_segwait()
|
H A D | compat_aio_suspend.c | 61 const struct timespec50 * ts50) in __weak_alias() 65 if (ts50) in __weak_alias() 66 timespec50_to_timespec(ts50, tsp = &ts); in __weak_alias()
|
H A D | compat_adjtime.c | 60 adjtime(const struct timeval50 *ts50, struct timeval50 *rts50) in __weak_alias() 67 if (ts50) in __weak_alias() 68 timeval50_to_timeval(ts50, tsp = &ts); in __weak_alias()
|
H A D | compat_nanosleep.c | 60 nanosleep(const struct timespec50 *ts50, struct timespec50 *rts50) in __weak_alias() 67 if (ts50) in __weak_alias() 68 timespec50_to_timespec(ts50, tsp = &ts); in __weak_alias()
|
H A D | compat_kevent.c | 58 struct kevent100 *eventlist, size_t nevents, const struct timespec50 *ts50) in kevent() argument 62 if (ts50) in kevent() 63 timespec50_to_timespec(ts50, tsp = &ts); in kevent()
|