/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/sntp/ |
H A D | main.c | 20 #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 D | misc.c | 103 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 D | umass_scsipi.c | 220 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 D | linux32_time.c | 92 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 D | utmpx.c | 76 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 D | sshlogin.c | 172 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 D | mtab_file.c | 200 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 D | mtab_svr4.c | 169 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 D | tty_chu.c | 144 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 D | tty_clk_STREAMS.c | 215 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 D | rtc.c | 155 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 D | r2025.c | 105 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 D | rs5c372.c | 106 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 D | s390.c | 122 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 D | s3c2440_rtc.c | 98 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 D | netconfig.c | 205 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 D | evutil.h | 170 #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 D | chutest.c | 234 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 D | command6.c | 122 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 D | time.c | 203 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 D | uuid.c | 336 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 D | extended.c | 196 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 D | vfs_syscalls_50.c | 197 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 D | dtfs_subr.c | 45 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 D | info_ldap.c | 365 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,
|