/illumos-gate/usr/src/boot/efi/libefi/ |
H A D | time.c | 267 struct timeval tv; in time() local 269 memset(&tv, 0, sizeof (tv)); in time() 270 EFI_GetTimeOfDay(&tv, NULL); in time() 273 *tloc = tv.tv_sec; in time() 274 return (tv.tv_sec); in time()
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_time.c | 227 struct timeval tv; in fmd_simulator_init() local 231 (void) gettimeofday(&tv, NULL); in fmd_simulator_init() 233 fts->fts_tod = (hrtime_t)tv.tv_sec * NANOSEC + in fmd_simulator_init() 234 (hrtime_t)tv.tv_usec * (NANOSEC / MICROSEC); in fmd_simulator_init() 240 tv.tv_sec, fts->fts_tod); in fmd_simulator_init() 355 timespec_t tv; in fmd_native_wait() local 357 tv.tv_sec = delta / NANOSEC; in fmd_native_wait() 358 tv.tv_nsec = delta % NANOSEC; in fmd_native_wait() 360 (void) nanosleep(&tv, NULL); in fmd_native_wait()
|
/illumos-gate/usr/src/lib/fm/libfmd_snmp/common/ |
H A D | resource.c | 575 struct timeval tv; in sunFmResourceTable_return() local 577 tv.tv_sec = UPDATE_WAIT_MILLIS / 1000; in sunFmResourceTable_return() 578 tv.tv_usec = (UPDATE_WAIT_MILLIS % 1000) * 1000; in sunFmResourceTable_return() 681 struct timeval tv; in sunFmResourceTable_handler() local 683 tv.tv_sec = UPDATE_WAIT_MILLIS / 1000; in sunFmResourceTable_handler() 684 tv.tv_usec = (UPDATE_WAIT_MILLIS % 1000) * 1000; in sunFmResourceTable_handler() 717 struct timeval tv; in sunFmResourceCount_return() local 719 tv.tv_sec = UPDATE_WAIT_MILLIS / 1000; in sunFmResourceCount_return() 766 struct timeval tv; in sunFmResourceCount_handler() local 768 tv.tv_sec = UPDATE_WAIT_MILLIS / 1000; in sunFmResourceCount_handler() [all …]
|
H A D | problem.c | 706 struct timeval tv; in sunFmProblemTable_return() local 708 tv.tv_sec = UPDATE_WAIT_MILLIS / 1000; in sunFmProblemTable_return() 833 struct timeval tv; in sunFmProblemTable_handler() local 835 tv.tv_sec = UPDATE_WAIT_MILLIS / 1000; in sunFmProblemTable_handler() 848 (void) snmp_alarm_register_hr(tv, 0, in sunFmProblemTable_handler() 874 struct timeval tv; in sunFmFaultEventTable_return() local 876 tv.tv_sec = UPDATE_WAIT_MILLIS / 1000; in sunFmFaultEventTable_return() 879 (void) snmp_alarm_register_hr(tv, 0, in sunFmFaultEventTable_return() 1060 struct timeval tv; in sunFmFaultEventTable_handler() local 1062 tv.tv_sec = UPDATE_WAIT_MILLIS / 1000; in sunFmFaultEventTable_handler() [all …]
|
H A D | module.c | 562 struct timeval tv; in sunFmModuleTable_return() local 564 tv.tv_sec = UPDATE_WAIT_MILLIS / 1000; in sunFmModuleTable_return() 565 tv.tv_usec = (UPDATE_WAIT_MILLIS % 1000) * 1000; in sunFmModuleTable_return() 567 (void) snmp_alarm_register_hr(tv, 0, sunFmModuleTable_return, in sunFmModuleTable_return() 660 struct timeval tv; in sunFmModuleTable_handler() local 662 tv.tv_sec = UPDATE_WAIT_MILLIS / 1000; in sunFmModuleTable_handler() 663 tv.tv_usec = (UPDATE_WAIT_MILLIS % 1000) * 1000; in sunFmModuleTable_handler() 675 (void) snmp_alarm_register_hr(tv, 0, sunFmModuleTable_return, in sunFmModuleTable_handler()
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | srvsvc_clnt.c | 401 struct timeval tv; in srvsvc_timesync() local 409 &tv, &tm) != 0) in srvsvc_timesync() 412 if (settimeofday(&tv, 0)) in srvsvc_timesync() 417 smb_tracef("SrvsvcTimeSync %s", ctime((time_t *)&tv.tv_sec)); in srvsvc_timesync() 427 struct timeval tv; in srvsvc_gettime() local 434 &tv, &tm) != 0) in srvsvc_gettime() 437 *t = tv.tv_sec; in srvsvc_gettime() 470 srvsvc_net_remote_tod(char *server, char *domain, struct timeval *tv, in srvsvc_net_remote_tod() argument 511 if (tv) { in srvsvc_net_remote_tod() 512 tv->tv_sec = tod->tod_elapsedt; in srvsvc_net_remote_tod() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/features/ |
H A D | time | 9 struct timeval tv; 11 return gettimeofday(&tv, &tz); 19 struct timeval tv; 20 return gettimeofday(&tv);
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | chkinput.c | 87 struct timeval tv; in _chkinput() local 91 tv.tv_sec = tv.t_usec = 0; in _chkinput() 92 n = select(20, &ifds, &ofds, &efds, &tv); in _chkinput()
|
/illumos-gate/usr/src/uts/common/io/bpf/ |
H A D | bpf.c | 1068 if (copyin((void *)addr, &tv, sizeof (tv)) != 0) { in bpfioctl() 1075 tv.tv_usec); in bpfioctl() 1091 tv.tv_usec = ticks - (tv.tv_sec * 1000000); in bpfioctl() 1092 error = copyout(&tv, (void *)addr, sizeof (tv)); in bpfioctl() 1146 struct timeval tv; in bpfioctl() local 1148 if (copyin((void *)addr, &tv, sizeof (tv)) != 0) { in bpfioctl() 1155 tv.tv_usec); in bpfioctl() 1171 tv.tv_usec = ticks - (tv.tv_sec * 1000000); in bpfioctl() 1172 if (copyout(&tv, (void *)addr, sizeof (tv)) != 0) in bpfioctl() 1495 struct timeval tv; in bpf_deliver() local [all …]
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | auth_time.c | 199 struct timeval tv; in __rpc_get_time_offset() local 408 tv.tv_sec = 5; in __rpc_get_time_offset() 409 tv.tv_usec = 0; in __rpc_get_time_offset() 413 xdr_u_int, (char *)&thetime, tv); in __rpc_get_time_offset() 640 (void) gettimeofday(&tv, 0); in __rpc_get_time_offset() 643 tv.tv_sec += (tv.tv_sec > 500000) ? 1 : 0; in __rpc_get_time_offset() 644 delta = (thetime > tv.tv_sec) ? thetime - tv.tv_sec : in __rpc_get_time_offset() 645 tv.tv_sec - thetime; in __rpc_get_time_offset() 646 td->tv_sec = (thetime < tv.tv_sec) ? - delta : delta; in __rpc_get_time_offset()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/ |
H A D | tvsleep.c | 36 int tvsleep(const Tv_t *tv, Tv_t *rv) { in tvsleep() argument 41 stv.tv_sec = tv->tv_sec; in tvsleep() 42 stv.tv_nsec = tv->tv_nsec; in tvsleep()
|
/illumos-gate/usr/src/ucbcmd/rusage/ |
H A D | rusage.c | 41 fprintt(s, tv) in fprintt() argument 43 struct timeval *tv; 47 tv->tv_sec, tv->tv_usec/10000, s);
|
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | clock.c | 68 struct timeval tv; in gethrestime() local 70 (void) gettimeofday(&tv, NULL); in gethrestime() 71 ts->tv_sec = tv.tv_sec; in gethrestime() 72 ts->tv_nsec = tv.tv_usec * 1000; in gethrestime()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.timed/ |
H A D | in.timed.c | 51 struct timeval tv; in machtime() local 53 if (gettimeofday(&tv, NULL) < 0) { in machtime() 57 return ((uint32_t)htonl(tv.tv_sec + 2208988800U)); in machtime()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm_hc.c | 191 struct tm tv; in print_hc_result() local 226 if (localtime_r(&srv->hcs_lasttime, &tv) == NULL) in print_hc_result() 228 (void) snprintf(buf, bufsize, "%02d:%02d:%02d", tv.tm_hour, in print_hc_result() 229 tv.tm_min, tv.tm_sec); in print_hc_result() 234 if (localtime_r(&srv->hcs_nexttime, &tv) == NULL) in print_hc_result() 236 (void) snprintf(buf, bufsize, "%02d:%02d:%02d", tv.tm_hour, in print_hc_result() 237 tv.tm_min, tv.tm_sec); in print_hc_result()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/ |
H A D | in.talkd.c | 74 struct timeval tv; in main() local 79 tv.tv_sec = MAX_LIFE; in main() 80 tv.tv_usec = 0; in main() 83 if (select(1, &rfds, 0, 0, &tv) <= 0) in main()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | select.c | 355 select(int nfds, fd_set *in0, fd_set *out0, fd_set *ex0, struct timeval *tv) in select() argument 360 if (tv == NULL) in select() 364 if (tv->tv_usec < 0 || tv->tv_usec >= MICROSEC) { in select() 375 ts.tv_sec = tv->tv_sec; in select() 376 ts.tv_nsec = tv->tv_usec * 1000; in select()
|
/illumos-gate/usr/src/cmd/cron/ |
H A D | at.c | 519 long tv; in gtime() local 524 tv = 0; in gtime() 526 tv += (365 + isleap(i)); in gtime() 536 ++tv; in gtime() 539 tv += dmsize[i]; in gtime() 540 tv += tptr->tm_mday - 1; in gtime() 541 tv = 24 * tv + tptr->tm_hour; in gtime() 542 tv = 60 * tv + tptr->tm_min; in gtime() 543 tv = 60 * tv + tptr->tm_sec; in gtime() 544 return (tv); in gtime()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/ |
H A D | pathtemp.c | 115 Tv_t tv; in pathtemp() local 182 tv.tv_nsec = 0; in pathtemp() 184 tvgettime(&tv); in pathtemp() 317 key = tmp.rng * tmp.key + tv.tv_nsec; in pathtemp() 319 tvgettime(&tv); in pathtemp() 320 tmp.key = tmp.rng * key + tv.tv_nsec; in pathtemp()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/ |
H A D | eloop.c | 239 struct timeval tv, now; in eloop_run() local 247 timersub(&eloop.timeout->time, &now, &tv); in eloop_run() 249 tv.tv_sec = tv.tv_usec = 0; in eloop_run() 253 default_t : (tv.tv_sec * 1000 + tv.tv_usec / 1000)); in eloop_run()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/repquota/ |
H A D | repquota.c | 287 struct timeval tv; in prquota() local 294 (void) time(&(tv.tv_sec)); in prquota() 295 tv.tv_usec = 0; in prquota() 305 else if (dqp->dqb_btimelimit > tv.tv_sec) in prquota() 307 (long)(dqp->dqb_btimelimit - tv.tv_sec)); in prquota() 316 else if (dqp->dqb_ftimelimit > tv.tv_sec) in prquota() 318 (long)(dqp->dqb_ftimelimit - tv.tv_sec)); in prquota()
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | ldap_op.c | 562 struct timeval tv; in ldapBind() local 565 tv = timeout; in ldapBind() 1452 tv = ls->timeout; in ldapSearch() 1512 &tv, &msg); in ldapSearch() 1772 tv.tv_sec -= 1; in ldapSearch() 1774 if (tv.tv_sec < 0) { in ldapSearch() 2049 struct timeval tv; in ldapModifyObjectClass() local 2227 struct timeval tv; in ldapModify() local 2521 struct timeval tv; in ldapAdd() local 2555 tv = lc->addTimeout; in ldapAdd() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh_common/ |
H A D | generic_key.c | 59 struct timeval tv; in setseed() local 61 (void) gettimeofday(&tv, (struct timezone *)NULL); in setseed() 62 rseed = tv.tv_sec + tv.tv_usec; in setseed()
|
/illumos-gate/usr/src/lib/libnsl/key/ |
H A D | gen_dhkeys.c | 70 struct timeval tv; local 72 (void) gettimeofday(&tv, (struct timezone *)NULL); 73 rseed = tv.tv_sec + tv.tv_usec;
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_filio.c | 221 struct timeval32 tv; /* copy of user's timeval */ in ufs_fiosatime() local 238 if (copyin(tvu, &tv, sizeof (tv))) in ufs_fiosatime() 247 TIMEVAL_TO_TIMEVAL32(&tv, &tv64); in ufs_fiosatime() 250 if (tv.tv_usec < 0 || tv.tv_usec >= 1000000) in ufs_fiosatime() 265 ip->i_atime = tv; in ufs_fiosatime()
|