Searched refs:tv (Results 176 - 200 of 567) sorted by relevance

1234567891011>>

/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/sntp/
H A Dmain.c20 #define NORMALIZE_TIMEVAL(tv) \
22 while ((tv).tv_usec < 0) { \
23 (tv).tv_usec += 1000000; \
24 (tv).tv_sec--; \
26 while ((tv).tv_usec > 999999) { \
27 (tv).tv_usec -= 1000000; \
28 (tv).tv_sec++; \
/netbsd-6-1-5-RELEASE/external/lgpl3/gmp/dist/tests/
H A Dmisc.c103 struct timeval tv; local
104 gettimeofday (&tv, NULL);
105 seed = tv.tv_sec ^ (tv.tv_usec << 12);
108 time_t tv;
109 time (&tv);
110 seed = tv;
/netbsd-6-1-5-RELEASE/sys/dev/usb/
H A Dumass_scsipi.c220 microtime(&sc->tv);
230 device_xname(sc->sc_dev), sc->tv.tv_sec, (uint64_t)sc->tv.tv_usec,
401 struct timeval tv; local
403 microtime(&tv);
404 delta = (tv.tv_sec - sc->tv.tv_sec) * 1000000 + tv.tv_usec - sc->tv.tv_usec;
408 " status=%d\n", tv
[all...]
/netbsd-6-1-5-RELEASE/sys/compat/linux32/common/
H A Dlinux32_time.c92 struct timeval tv; local
97 microtime(&tv);
98 netbsd32_from_timeval50(&tv, &tv32);
216 struct timeval tv[2], *tvp; local
224 tv[0].tv_sec = (long)lut.l_actime;
225 tv[0].tv_usec = 0;
226 tv[1].tv_sec = (long)lut.l_modtime;
227 tv[1].tv_usec = 0;
228 tvp = tv;
/netbsd-6-1-5-RELEASE/lib/libc/gen/
H A Dutmpx.c76 struct timeval *tv = &utx->ut_tv; local
77 (void)memcpy(&otv, tv, sizeof(otv));
78 tv->tv_sec = otv.tv_sec;
79 tv->tv_usec = otv.tv_usec;
85 struct timeval tv; local
87 (void)memcpy(&tv, otv, sizeof(tv));
88 otv->tv_sec = (long)tv.tv_sec;
89 otv->tv_usec = (long)tv.tv_usec;
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssh/dist/
H A Dsshlogin.c172 struct timeval tv; local
181 (void)gettimeofday(&tv, NULL);
193 u.ut_time = (time_t)tv.tv_sec;
227 ux.ut_tv = tv;
257 uxp->ut_tv = tv;
/netbsd-6-1-5-RELEASE/external/bsd/am-utils/dist/conf/mtab/
H A Dmtab_file.c200 struct timeval tv; local
210 tv.tv_sec = 0;
211 tv.tv_usec = (am_mypid & 0x07) << 17;
212 if (tv.tv_usec)
213 if (select(0, (voidp) 0, (voidp) 0, (voidp) 0, &tv) < 0)
H A Dmtab_svr4.c169 struct timeval tv; local
183 if (gettimeofday(&tv, NULL) < 0)
186 xsnprintf(timestr, sizeof(timestr), "%ld", tv.tv_sec);
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/kernel/
H A Dtty_chu.c144 struct timeval tv; local
160 microtime(&tv);
170 sec = tv.tv_sec - chuc->codetimes[i-1].tv_sec;
171 usec = tv.tv_usec - chuc->codetimes[i-1].tv_usec;
186 chuc->codetimes[i] = tv;
H A Dtty_clk_STREAMS.c215 struct timeval tv; local
218 uniqtime(&tv);
246 *mp->b_wptr++= *( ((char*)&tv) + i );
/netbsd-6-1-5-RELEASE/sys/arch/sparc/dev/
H A Drtc.c155 rtc_gettime(todr_chip_handle_t handle, struct timeval *tv) argument
192 tv->tv_sec = clock_ymdhms_to_secs(&dt);
193 tv->tv_usec = 0;
202 rtc_settime(todr_chip_handle_t handle, struct timeval *tv) argument
208 clock_secs_to_ymdhms(tv->tv_sec, &dt);
/netbsd-6-1-5-RELEASE/sys/dev/i2c/
H A Dr2025.c105 r2025rtc_gettime(struct todr_chip_handle *ch, struct timeval *tv) argument
150 tv->tv_sec = clock_ymdhms_to_secs(&dt);
151 tv->tv_usec = 0;
157 r2025rtc_settime(struct todr_chip_handle *ch, struct timeval *tv) argument
164 clock_secs_to_ymdhms(tv->tv_sec, &dt);
H A Drs5c372.c106 rs5c372rtc_gettime(struct todr_chip_handle *ch, struct timeval *tv) argument
116 tv->tv_sec = clock_ymdhms_to_secs(&dt);
117 tv->tv_usec = 0;
123 rs5c372rtc_settime(struct todr_chip_handle *ch, struct timeval *tv) argument
128 clock_secs_to_ymdhms(tv->tv_sec, &dt);
H A Ds390.c122 s390rtc_gettime(struct todr_chip_handle *ch, struct timeval *tv) argument
132 tv->tv_sec = clock_ymdhms_to_secs(&dt);
133 tv->tv_usec = 0;
139 s390rtc_settime(struct todr_chip_handle *ch, struct timeval *tv) argument
144 clock_secs_to_ymdhms(tv->tv_sec, &dt);
/netbsd-6-1-5-RELEASE/sys/arch/arm/s3c2xx0/
H A Ds3c2440_rtc.c98 ssrtc_todr_gettime(struct todr_chip_handle *h, struct timeval *tv) argument
140 tv->tv_sec = clock_ymdhms_to_secs(&dt);
141 tv->tv_usec = 0;
147 ssrtc_todr_settime(struct todr_chip_handle *h, struct timeval *tv) argument
153 clock_secs_to_ymdhms(tv->tv_sec, &dt);
/netbsd-6-1-5-RELEASE/tests/net/config/
H A Dnetconfig.c205 struct timeval tv; local
215 tv.tv_sec = ms_timo / 1000;
216 tv.tv_usec = 1000 * (ms_timo % 1000);
218 &tv, sizeof(tv)) == -1)
/netbsd-6-1-5-RELEASE/external/bsd/libevent/dist/
H A Devutil.h170 #define evutil_gettimeofday(tv, tz) gettimeofday((tv), (tz))
172 int evutil_gettimeofday(struct timeval *tv, struct timezone *tz);
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/clockstuff/
H A Dchutest.c234 struct timeval tv; local
238 (void) gettimeofday(&tv, (struct timezone *)0);
240 raw_filter((unsigned int)c, &tv);
242 difftv.tv_sec = tv.tv_sec - lasttv.tv_sec;
243 difftv.tv_usec = tv.tv_usec - lasttv.tv_usec;
249 c, tv.tv_sec, tv.tv_usec, difftv.tv_sec,
251 lasttv = tv;
269 struct timeval *tv
286 diff.tv_sec = tv
[all...]
/netbsd-6-1-5-RELEASE/games/battlestar/
H A Dcommand6.c122 time_t tv; local
128 tv = time(NULL);
130 fprintf(score_fp, "%24.24s %8s %c%20s", ctime(&tv), username,
/netbsd-6-1-5-RELEASE/usr.bin/time/
H A Dtime.c203 prtv(const char *pre, const char *decpt, const struct timeval *tv, argument
207 (void)fprintf(stderr, "%s%9lld%s%02ld%s", pre, (long long)tv->tv_sec,
208 decpt, (long)tv->tv_usec / 10000, post);
/netbsd-6-1-5-RELEASE/external/bsd/openldap/dist/libraries/liblutil/
H A Duuid.c336 struct timeval tv;
356 gettimeofday( &tv, 0 );
358 time( &tv.tv_sec );
359 tv.tv_usec = 0;
362 tl = mul64ll(tv.tv_sec, 10000000UL);
363 set_add64l(tl, tv.tv_usec * 10UL);
/netbsd-6-1-5-RELEASE/external/bsd/openldap/dist/servers/slapd/back-ldap/
H A Dextended.c196 struct timeval tv; local
197 tv.tv_sec = -1;
198 if ( ldap_result( lc->lc_ld, msgid, LDAP_MSG_ALL, &tv, &res ) == -1 ) {
325 struct timeval tv; local
326 tv.tv_sec = -1;
327 if ( ldap_result( lc->lc_ld, msgid, LDAP_MSG_ALL, &tv, &res ) == -1 ) {
/netbsd-6-1-5-RELEASE/sys/compat/common/
H A Dvfs_syscalls_50.c197 struct timeval tv[2], *tvp; local
203 timeval50_to_timeval(&tv50[0], &tv[0]);
204 timeval50_to_timeval(&tv50[1], &tv[1]);
205 tvp = tv;
276 syscallarg(struct timeval50 *) tv;
291 if (SCARG(uap, tv)) {
292 error = copyin(SCARG(uap, tv), &atv50, sizeof(atv50));
/netbsd-6-1-5-RELEASE/tests/fs/puffs/h_dtfs/
H A Ddtfs_subr.c45 struct timeval tv; local
48 gettimeofday(&tv, NULL);
49 TIMEVAL_TO_TIMESPEC(&tv, &ts);
332 struct timeval tv; local
335 gettimeofday(&tv, NULL);
336 TIMEVAL_TO_TIMESPEC(&tv, &ts);
/netbsd-6-1-5-RELEASE/external/bsd/am-utils/dist/amd/
H A Dinfo_ldap.c365 struct timeval tv; local
373 tv.tv_sec = 3;
374 tv.tv_usec = 0;
386 &tv,
464 struct timeval tv; local
471 tv.tv_sec = 2;
472 tv.tv_usec = 0;
500 &tv,

Completed in 330 milliseconds

1234567891011>>