/netbsd-6-1-5-RELEASE/usr.sbin/faithd/ |
H A D | tcp.c | 202 struct timeval tv; local 218 tv.tv_sec = FAITH_TIMEOUT / 4; 219 tv.tv_usec = 0; 223 error = select(maxfd + 1, &readfds, &writefds, &exceptfds, &tv);
|
/netbsd-6-1-5-RELEASE/usr.sbin/timed/timed/ |
H A D | measure.c | 328 update_time(struct timeval *tv, const struct tsp *msg) argument 336 tv->tv_sec = msg->tsp_time.tv_sec; 337 tv->tv_usec = msg->tsp_time.tv_usec; 338 (void)settimeofday(tv, 0);
|
/netbsd-6-1-5-RELEASE/external/bsd/libbind/dist/isc/ |
H A D | ev_timers.c | 151 evTimeSpec(struct timeval tv) { argument 154 ts.tv_sec = tv.tv_sec; 155 ts.tv_nsec = tv.tv_usec * 1000; 161 struct timeval tv; local 163 tv.tv_sec = ts.tv_sec; 164 tv.tv_usec = ts.tv_nsec / 1000; 165 return (tv);
|
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/lib/isc/unix/ |
H A D | app.c | 310 struct timeval tv, *tvp; local 317 tv.tv_sec = 0; 318 tv.tv_usec = 0; 319 tvp = &tv; 332 tv.tv_sec = us / 1000000; 333 tv.tv_usec = us % 1000000; 334 tvp = &tv;
|
/netbsd-6-1-5-RELEASE/sys/compat/osf1/ |
H A D | osf1_misc.c | 363 struct timeval tv, ntv, endtv; local 369 tv.tv_sec = otv.tv_sec; 370 tv.tv_usec = otv.tv_usec; 372 ticks = howmany((u_long)tv.tv_sec * 1000000 + tv.tv_usec, tick); 376 getmicrotime(&tv); 382 timersub(&ntv, &tv, &endtv);
|
H A D | osf1_file.c | 413 struct timeval tv[2], *tvp; local 425 tv[0].tv_sec = otv.tv_sec; 426 tv[0].tv_usec = otv.tv_usec; 428 tv[1].tv_sec = otv.tv_sec; 429 tv[1].tv_usec = otv.tv_usec; 430 tvp = tv;
|
/netbsd-6-1-5-RELEASE/lib/libc/isc/ |
H A D | ev_timers.c | 166 evTimeSpec(struct timeval tv) { argument 169 ts.tv_sec = tv.tv_sec; 170 ts.tv_nsec = tv.tv_usec * 1000; 176 struct timeval tv; local 178 tv.tv_sec = ts.tv_sec; 179 tv.tv_usec = ts.tv_nsec / 1000; 180 return (tv);
|
/netbsd-6-1-5-RELEASE/external/ibm-public/postfix/dist/src/tlsmgr/ |
H A D | tlsmgr.c | 458 struct timeval tv; local 467 GETTIMEOFDAY(&tv); 468 RAND_seed(&tv, sizeof(struct timeval)); 753 struct timeval tv; local 767 GETTIMEOFDAY(&tv); 768 tv.tv_sec ^= getpid(); 769 RAND_seed(&tv, sizeof(struct timeval));
|
/netbsd-6-1-5-RELEASE/crypto/dist/ipsec-tools/src/setkey/ |
H A D | setkey.c | 479 struct timeval tv; local 480 tv.tv_sec = 1; 481 tv.tv_usec = 0; 482 if (setsockopt(so, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) { 622 struct timeval tv; local 623 tv.tv_sec = 1; 624 tv.tv_usec = 0; 625 if (setsockopt(so, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < [all...] |
/netbsd-6-1-5-RELEASE/dist/dhcp/dst/ |
H A D | prandom.c | 243 struct timeval tv; local 256 gettimeofday(&tv,NULL); 258 d_round = tv.tv_sec - MAX_OLD; 260 d_round += (tv.tv_sec - d_round)/2; 358 struct timeval tv; local 362 if (gettimeofday(&tv, NULL)) /* only do this if needed */ 365 f_round = (tv.tv_sec - MAX_OLD); 371 f_round += (tv.tv_sec - f_round)/2; /* set new cutoff */ 376 (u_char *)&tv, sizeof(tv)); [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/openldap/dist/libraries/libldap/ |
H A D | init.c | 284 struct timeval tv; local 286 tv.tv_usec = 0; 287 tv.tv_sec = strtol( opt, &next, 10 ); 288 if ( next != opt && next[ 0 ] == '\0' && tv.tv_sec > 0 ) { 289 (void)ldap_set_option( NULL, attrs[i].offset, (const void *)&tv ); 443 struct timeval tv; local 445 tv.tv_usec = 0; 446 tv.tv_sec = strtol( value, &next, 10 ); 447 if ( next != value && next[ 0 ] == '\0' && tv.tv_sec > 0 ) { 448 (void)ldap_set_option( NULL, attrs[i].offset, (const void *)&tv ); [all...] |
H A D | ldap_sync.c | 632 struct timeval tv = { 0 }, local 707 tv.tv_sec = ls->ls_timelimit; 708 tvp = &tv; 732 tv.tv_sec = 0; 733 tv.tv_usec = 100000; 736 LDAP_MSG_RECEIVED, &tv, &res ); 835 struct timeval tv, local 849 tv.tv_sec = ls->ls_timeout; 850 tv.tv_usec = 0; 851 tvp = &tv; [all...] |
/netbsd-6-1-5-RELEASE/lib/libc/rpc/ |
H A D | clnt_dg.c | 322 struct timeval next_sendtime, starttime, time_waited, tv; local 400 timersub(&next_sendtime, &time_waited, &tv); 402 timersub(&timeout, &time_waited, &tv); 403 if (tv.tv_sec < 0 || tv.tv_usec < 0) 404 tv.tv_sec = tv.tv_usec = 0; 405 TIMEVAL_TO_TIMESPEC(&tv, &ts); 433 gettimeofday(&tv, NULL); 434 timersub(&tv, [all...] |
/netbsd-6-1-5-RELEASE/tests/fs/common/nfsrpc/ |
H A D | clnt_dg.c | 324 struct timeval next_sendtime, starttime, time_waited, tv; local 402 timersub(&next_sendtime, &time_waited, &tv); 404 timersub(&timeout, &time_waited, &tv); 405 if (tv.tv_sec < 0 || tv.tv_usec < 0) 406 tv.tv_sec = tv.tv_usec = 0; 407 TIMEVAL_TO_TIMESPEC(&tv, &ts); 435 gettimeofday(&tv, NULL); 436 timersub(&tv, [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/am-utils/dist/conf/mtab/ |
H A D | mtab_mach3.c | 197 struct timeval tv; local 207 tv.tv_sec = 0; 208 tv.tv_usec = (am_mypid & 0x07) << 17; 209 if (tv.tv_usec) 210 if (select(0, (voidp) 0, (voidp) 0, (voidp) 0, &tv) < 0)
|
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/adjtimed/ |
H A D | adjtimed.c | 61 #define tvtod(tv) ((double)tv.tv_sec + ((double)tv.tv_usec / (double)MILLION)) 231 AdjustClockRate(&msg.msgb.tv, &remains); 234 msg.msgb.tv = remains;
|
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/kernel/ |
H A D | tty_chu_STREAMS.c | 453 struct timeval tv; local 465 uniqtime(&tv); 485 sec = tv.tv_sec - chuc->codetimes[i-1].tv_sec; 486 usec = tv.tv_usec - chuc->codetimes[i-1].tv_usec; 503 chuc->codetimes[i] = tv;
|
/netbsd-6-1-5-RELEASE/sys/dev/i2c/ |
H A D | m41t00.c | 231 m41t00_gettime(struct todr_chip_handle *ch, struct timeval *tv) argument 239 tv->tv_sec = clock_ymdhms_to_secs(&dt); 240 tv->tv_usec = 0; 246 m41t00_settime(struct todr_chip_handle *ch, struct timeval *tv) argument 251 clock_secs_to_ymdhms(tv->tv_sec, &dt);
|
H A D | pcf8583.c | 268 pcfrtc_gettime(struct todr_chip_handle *ch, struct timeval *tv) argument 278 tv->tv_sec = clock_ymdhms_to_secs(&dt); 279 tv->tv_usec = centi * 10000; 285 pcfrtc_settime(struct todr_chip_handle *ch, struct timeval *tv) argument 291 clock_secs_to_ymdhms(tv->tv_sec, &dt); 293 if ((err = pcfrtc_clock_write(sc, &dt, tv->tv_usec / 10000)) != 0)
|
/netbsd-6-1-5-RELEASE/lib/libedit/ |
H A D | terminal.c | 1325 const struct termcapval *tv; local 1351 for (tv = tval; tv->name != NULL; tv++) 1352 if (strcmp(tv->name, what) == 0) 1355 if (tv->name != NULL) 1358 if (tv == &tval[T_pt] || tv == &tval[T_km] || 1359 tv == &tval[T_am] || tv 1403 const struct termcapval *tv; local [all...] |
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/ |
H A D | cfgloop.c | 798 unsigned tv = 0; 803 tovisit[tv++] = loop->header; 810 tovisit[tv++] = bb; 811 tovisit[tv++] = EXIT_BLOCK_PTR; 815 tv = dfs_enumerate_from (loop->latch, 1, glb_enum_p, 820 gcc_assert (tv == loop->num_nodes); 829 basic_block *tovisit, int *tv) 833 tovisit[(*tv)++] = bb; 846 fill_sons_in_loop (loop, son, tovisit, tv); 850 fill_sons_in_loop (loop, postpone, tovisit, tv); 797 unsigned tv = 0; local 827 fill_sons_in_loop(const struct loop *loop, basic_block bb, basic_block *tovisit, int *tv) argument 860 int tv; local [all...] |
/netbsd-6-1-5-RELEASE/sys/compat/netbsd32/ |
H A D | netbsd32_compat_50.c | 82 get_utimes32(const netbsd32_timeval50p_t *tptr, struct timeval *tv, argument 96 netbsd32_to_timeval50(&tv32[0], &tv[0]); 97 netbsd32_to_timeval50(&tv32[1], &tv[1]); 99 *tvp = tv; 125 syscallarg(netbsd32_timeval50p_t) tv; 131 if (SCARG_P32(uap, tv)) { 132 error = copyin(SCARG_P32(uap, tv), &tv32, sizeof(tv32)); 182 syscallarg(const netbsd32_timeval50p_t) tv; 201 if (SCARG_P32(uap, tv) == 0) 204 if ((error = copyin(SCARG_P32(uap, tv), 221 struct timeval tv[2], *tvp; local 290 struct timeval tv[2], *tvp; local 522 struct timeval tv[2], *tvp; local [all...] |
/netbsd-6-1-5-RELEASE/usr.bin/xinstall/ |
H A D | xinstall.c | 624 struct timeval tv[2]; local 631 /* ensure that from_sb & tv are sane if !dolink */ 636 TIMESPEC_TO_TIMEVAL(&tv[0], &from_sb.st_atimespec); 637 TIMESPEC_TO_TIMEVAL(&tv[1], &from_sb.st_mtimespec); 639 tv[0].tv_sec = from_sb.st_atime; 640 tv[0].tv_usec = 0; 641 tv[1].tv_sec = from_sb.st_mtime; 642 tv[1].tv_usec = 0; 772 if (futimes(to_fd, tv) == -1) 775 if (utimes(to_name, tv) 1153 metadata_log(const char *path, const char *type, struct timeval *tv, const char *slink, const char *digestresult, off_t size) argument [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/atf/dist/atf-report/ |
H A D | reader.cpp | 133 struct timeval tv; local 134 tv.tv_sec = string_to_int< long >(t.text().substr(0, divider)); 135 tv.tv_usec = string_to_int< long >(t.text().substr(divider + 1)); 136 return tv; 173 struct timeval* tv ATF_DEFS_ATTRIBUTE_UNUSED, 199 struct timeval* tv ATF_DEFS_ATTRIBUTE_UNUSED,
|
/netbsd-6-1-5-RELEASE/sys/compat/linux/common/ |
H A D | linux_misc_notalpha.c | 288 struct timeval tv[2], *tvp; local 294 tv[0].tv_usec = tv[1].tv_usec = 0; 295 tv[0].tv_sec = lut.l_actime; 296 tv[1].tv_sec = lut.l_modtime; 297 tvp = tv;
|