/illumos-gate/usr/src/ucbcmd/rusage/ |
H A D | rusage.c | 47 tv->tv_sec, tv->tv_usec/10000, s); 106 after.tv_sec -= before.tv_sec; in main() 109 after.tv_sec--; in main()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | ualarm.c | 33 new.it_interval.tv_sec = reload / USPS; in ualarm() 36 new.it_value.tv_sec = usecs / USPS; in ualarm() 40 return (old.it_value.tv_sec * USPS + old.it_value.tv_usec); in ualarm()
|
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_deleted.c | 184 ts.tv_sec = timeout / MILLISEC; in s10_poll() 347 ts[0].tv_sec = ltimes.actime; in s10_utime() 349 ts[1].tv_sec = ltimes.modtime; in s10_utime() 370 ts[0].tv_sec = ltimes[0].tv_sec; in s10_utimes() 372 ts[1].tv_sec = ltimes[1].tv_sec; in s10_utimes() 394 ts[0].tv_sec = ltimes[0].tv_sec; in s10_futimesat() 396 ts[1].tv_sec = ltimes[1].tv_sec; in s10_futimesat()
|
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/implicit_dependencies/without_structs/ |
H A D | implicit_dependencies_verbose.pretty | 5470 ('timespec', 'tv_sec')])}, 5503 ('timespec', 'tv_sec')])}, 5515 ('timespec', 'tv_sec')])}, 5523 ('timespec', 'tv_sec')])}, 5530 ('timespec', 'tv_sec')])}, 5578 ('timespec', 'tv_sec')])}, 5583 ('timespec', 'tv_sec')])}, 5594 ('timespec', 'tv_sec')])}, 5606 ('timespec', 'tv_sec')])}, 5644 ('timespec', 'tv_sec')])}, [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | rdisc.c | 339 ifp->int_rdisc_timer.tv_sec = now.tv_sec+MIN_WAITTIME; in set_supplier() 407 new.rts_time = now.tv_sec; in rdisc_age() 426 new.rts_time = now.tv_sec; in rdisc_age() 463 rdisc_timer.tv_sec = 0; in if_bad_rdisc() 484 rdisc_timer.tv_sec = 0; in if_rewire_rdisc() 497 ifp->int_rdisc_timer.tv_sec = now.tv_sec + in if_ok_rdisc() 718 new.rts_time = now.tv_sec; in rdisc_sort() 1134 rdisc_timer.tv_sec = now.tv_sec + NEVER; in rdisc_adv() 1178 rdisc_timer.tv_sec = now.tv_sec + NEVER; in rdisc_sol() 1414 rdisc_timer.tv_sec = 0; in rdisc_suppress() [all …]
|
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | clock.c | 71 ts->tv_sec = tv.tv_sec; in gethrestime() 115 tsp->tv_sec = (time_t)sec; in hrt2ts() 124 hrt = tsp->tv_sec; in ts2hrt()
|
/illumos-gate/usr/src/stand/lib/fs/hsfs/ |
H A D | hsfsops.c | 642 stp->st_atim.tv_sec = ip->i_atime.tv_sec; in boot_hsfs_fstat() 644 stp->st_mtim.tv_sec = ip->i_mtime.tv_sec; in boot_hsfs_fstat() 646 stp->st_ctim.tv_sec = ip->i_ctime.tv_sec; in boot_hsfs_fstat() 968 ip->i_atime.tv_sec = hsdep->hs_dir.adate.tv_sec; in hs_seti() 970 ip->i_ctime.tv_sec = hsdep->hs_dir.cdate.tv_sec; in hs_seti() 972 ip->i_mtime.tv_sec = hsdep->hs_dir.mdate.tv_sec; in hs_seti() 1095 tvp->tv_sec = 0; in hs_parse_dirdate() 1098 if (tvp->tv_sec != -1) { in hs_parse_dirdate() 1099 tvp->tv_sec += ((hour * 60) + minute) * 60 + sec; in hs_parse_dirdate() 1130 tvp->tv_sec = 0; in hs_parse_longdate() [all …]
|
/illumos-gate/usr/src/uts/common/rpc/sec/ |
H A D | auth_des.c | 157 ad->ad_timediff.tv_sec = 0; in authdes_create() 240 ad->ad_timestamp.tv_sec += ad->ad_timediff.tv_sec; in authdes_marshal() 244 ad->ad_timestamp.tv_sec += 1; in authdes_marshal() 252 IXDR_PUT_INT32(ixdr, ad->ad_timestamp.tv_sec); in authdes_marshal() 348 verf.adv_timestamp.tv_sec = IXDR_GET_INT32(ixdr) + 1; in authdes_validate() 434 timout.tv_sec = RTIME_TIMEOUT; in synchronize() 439 timep->tv_sec -= mytime.tv_sec; in synchronize() 441 timep->tv_sec -= 1; in synchronize()
|
/illumos-gate/usr/src/cmd/date/ |
H A D | date.c | 132 ts.tv_sec = strtol(optarg, &eptr, 0); in main() 136 ts.tv_sec = st.st_mtime; in main() 177 clock_val = ts.tv_sec; in main() 373 tp->tv_sec = tp->tv_usec = 0; in get_adj() 382 tp->tv_sec *= 10; in get_adj() 383 tp->tv_sec += *cp++ - '0'; in get_adj() 400 tp->tv_sec *= sign; in get_adj()
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_osd.c | 118 *loc = ((DAT_UINT64)(tv.tv_sec) * 1000000L) + (DAT_UINT64) tv.tv_usec; in dapl_os_get_time() 245 now.tv_sec = now.tv_sec + timeout_val / 1000000 + 1; in dapl_os_wait_object_wait() 248 now.tv_sec = now.tv_sec + timeout_val / 1000000; in dapl_os_wait_object_wait() 253 future.tv_sec = now.tv_sec; in dapl_os_wait_object_wait()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | clock_highres.c | 119 if (when->it_value.tv_sec == 0 && in clock_highres_timer_settime() 124 if (when->it_interval.tv_sec == 0 && in clock_highres_timer_settime() 131 clamped.it_value.tv_sec = when->it_value.tv_sec; in clock_highres_timer_settime() 132 clamped.it_interval.tv_sec = when->it_interval.tv_sec; in clock_highres_timer_settime() 154 it->it_itime.it_interval.tv_sec == 0 && in clock_highres_timer_settime()
|
H A D | clock_realtime.c | 65 ts->tv_sec = 0; in clock_realtime_getres() 121 if (interval2nth.tv_sec == 0 && in clock_realtime_fire() 157 if ((val->tv_sec > now.tv_sec) || in clock_realtime_fire_first() 158 (val->tv_sec == now.tv_sec && val->tv_nsec > now.tv_nsec)) { in clock_realtime_fire_first()
|
H A D | clock.c | 683 hrestime.tv_sec--; in clock() 692 hrestime.tv_sec++; in clock() 790 drift = tod.tv_sec - hrestime.tv_sec; in clock() 1217 time_reftime = hrestime.tv_sec; in clock_update() 1369 pps_time.tv_sec++; in ddi_hardpps() 1386 cal_sec = tvp->tv_sec; in ddi_hardpps() 1388 cal_sec -= pps_time.tv_sec; in ddi_hardpps() 1895 if (tmp.tv_sec != ts.tv_sec && tmp.tv_sec != ts.tv_sec + 1) { in clkset() 1907 boot_time = ts.tv_sec; in clkset() 2149 prev_set_tod = ts.tv_sec < 0 ? 0 : ts.tv_sec; in tod_set_prev() [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_xdr.c | 280 na->na_atime.tv_sec = IXDR_GET_U_INT32(ptr); in xdr_fattr() 298 IXDR_PUT_U_INT32(ptr, na->na_atime.tv_sec); in xdr_fattr() 300 IXDR_PUT_U_INT32(ptr, na->na_mtime.tv_sec); in xdr_fattr() 302 IXDR_PUT_U_INT32(ptr, na->na_ctime.tv_sec); in xdr_fattr() 347 na->na_atime.tv_sec = htonl(na->na_atime.tv_sec); in xdr_fastfattr() 349 na->na_mtime.tv_sec = htonl(na->na_mtime.tv_sec); in xdr_fastfattr() 351 na->na_ctime.tv_sec = htonl(na->na_ctime.tv_sec); in xdr_fastfattr() 1115 na->na_atime.tv_sec = htonl(na->na_atime.tv_sec); in xdr_fastdrok() 1117 na->na_mtime.tv_sec = htonl(na->na_mtime.tv_sec); in xdr_fastdrok() 1119 na->na_ctime.tv_sec = htonl(na->na_ctime.tv_sec); in xdr_fastdrok() [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | todsg.c | 118 hrestime.tv_sec = ssc_time; in _init() 139 hrestime.tv_sec = (time_t)0; in _init() 323 skew_adjust = hrestime.tv_sec - (seconds + domain_skew); in todsg_get() 347 ts.tv_sec = seconds + domain_skew; in todsg_get() 426 if (!complained && (ts.tv_sec != (seconds + domain_skew))) { in todsg_set() 428 complained = update_tod_skew(ts.tv_sec - hwtod); in todsg_set() 431 ts.tv_sec, hwtod, complained ? " failed" : ""); in todsg_set()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | timers.c | 53 now = tp.tv_sec + 1.e-6*tp.tv_usec; in getnow() 68 tnew.it_value.tv_sec = t; in setalarm() 69 tnew.it_value.tv_usec = 1.e6*(t- (double)tnew.it_value.tv_sec); in setalarm() 70 if(t && tnew.it_value.tv_sec==0 && tnew.it_value.tv_usec<1000) in setalarm() 72 tnew.it_interval.tv_sec = 0; in setalarm() 76 t = told.it_value.tv_sec + 1.e-6*told.it_value.tv_usec; in setalarm()
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | local.h | 155 (time)->tv_sec = 0; \ 160 (time)->tv_sec = (val) / 1000; \ 161 (time)->tv_usec = ((val) - ((time)->tv_sec * 1000)) * 1000; \ 244 sm_io_to.tv_sec = (to) / 1000; \ 245 sm_io_to.tv_usec = ((to) - (sm_io_to.tv_sec * 1000)) * 1000; \ 278 (to) -= (sm_io_to_diff.tv_sec * 1000); \
|
/illumos-gate/usr/src/lib/libresolv2/common/bsd/ |
H A D | gettimeofday.c | 26 tp->tv_sec--; in isc__gettimeofday() 32 tp->tv_sec++; in isc__gettimeofday() 49 tvp->tv_sec = clock; in gettimeofday()
|
/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | nfs3ops.c | 100 timeout.tv_sec = NFS_REXMIT_MIN; /* Total wait for call */ in nfs3read() 126 timeout.tv_sec = NFS_REXMIT_MIN; in nfs3read() 129 if (timeout.tv_sec < NFS_REXMIT_MAX) in nfs3read() 130 timeout.tv_sec++; in nfs3read() 132 timeout.tv_sec = 0; in nfs3read() 227 vap->va_atime.tv_sec = na->atime.seconds; in nfs3getattr() 231 vap->va_ctime.tv_sec = na->ctime.seconds; in nfs3getattr() 235 vap->va_mtime.tv_sec = na->mtime.seconds; in nfs3getattr()
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | sockcommon_vnops.c | 348 vap->va_atime.tv_sec = sti->sti_atime; in socket_vop_getattr() 349 vap->va_mtime.tv_sec = sti->sti_mtime; in socket_vop_getattr() 350 vap->va_ctime.tv_sec = sti->sti_ctime; in socket_vop_getattr() 353 vap->va_atime.tv_sec = 0; in socket_vop_getattr() 354 vap->va_mtime.tv_sec = 0; in socket_vop_getattr() 355 vap->va_ctime.tv_sec = 0; in socket_vop_getattr() 391 sti->sti_atime = vap->va_atime.tv_sec; in socket_vop_setattr() 393 sti->sti_mtime = vap->va_mtime.tv_sec; in socket_vop_setattr()
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | nis_ldap.c | 118 if (rootDirExpire >= now.tv_sec) in rootDirExpired() 147 srand48(now.tv_sec); in touchRootDir() 161 rootDirExpire = now.tv_sec + ttl; in touchRootDir()
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_frontend.c | 233 last_nsswitch_check.tv_sec = now; in _nscd_restart_if_cfgfile_changed() 240 } else if (last_nsswitch_modified.tv_sec == 0) { in _nscd_restart_if_cfgfile_changed() 244 if (last_nsswitch_modified.tv_sec < nss_buf.st_mtim.tv_sec || in _nscd_restart_if_cfgfile_changed() 245 (last_nsswitch_modified.tv_sec == nss_buf.st_mtim.tv_sec && in _nscd_restart_if_cfgfile_changed() 253 if (last_resolv_modified.tv_sec > 0) { in _nscd_restart_if_cfgfile_changed() 258 last_resolv_modified.tv_sec = 0; in _nscd_restart_if_cfgfile_changed() 263 } else if (last_resolv_modified.tv_sec == 0) { in _nscd_restart_if_cfgfile_changed() 266 } else if (last_resolv_modified.tv_sec < in _nscd_restart_if_cfgfile_changed() 267 res_buf.st_mtim.tv_sec || in _nscd_restart_if_cfgfile_changed() 268 (last_resolv_modified.tv_sec == in _nscd_restart_if_cfgfile_changed() [all …]
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | auth_time.c | 216 td->tv_sec = 0; in __rpc_get_time_offset() 408 tv.tv_sec = 5; 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/uts/sun4/io/ |
H A D | tod.c | 315 if (ddi_copyin((caddr_t)arg, (caddr_t)&ts.tv_sec, in tod_ioctl() 316 sizeof (ts.tv_sec), mode) != 0) { in tod_ioctl() 328 ts.tv_sec = (time_t)time32; in tod_ioctl() 343 if (ddi_copyout((caddr_t)&ts.tv_sec, (caddr_t)arg, in tod_ioctl() 344 sizeof (ts.tv_sec), mode) != 0) { in tod_ioctl() 356 time32 = (time32_t)ts.tv_sec; in tod_ioctl()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/ |
H A D | tmxtouch.c | 56 av.tv_sec = tmxsec(at); in tmxtouch() 66 mv.tv_sec = tmxsec(mt); in tmxtouch() 76 cv.tv_sec = tmxsec(ct); in tmxtouch()
|