Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 40) sorted by relevance

12

/busybox-1.35.0/libbb/
Dbb_strtod.c49 if (sizeof(ts->tv_sec) <= sizeof(int))
50 ts->tv_sec = bb_strtou(arg, &arg, 10);
51 else if (sizeof(ts->tv_sec) <= sizeof(long))
52 ts->tv_sec = bb_strtoul(arg, &arg, 10);
54 ts->tv_sec = bb_strtoull(arg, &arg, 10);
Dduration.c73 ts.tv_sec = MAXINT(typeof(ts.tv_sec)); in sleep_for_duration()
75 if (duration >= 0 && duration < ts.tv_sec) { in sleep_for_duration()
76 ts.tv_sec = duration; in sleep_for_duration()
77 ts.tv_nsec = (duration - ts.tv_sec) * 1000000000; in sleep_for_duration()
Dtime.c315 return ts.tv_sec * 1000000000ULL + ts.tv_nsec; in monotonic_ns()
321 return ts.tv_sec * 1000000ULL + ts.tv_nsec/1000; in monotonic_us()
327 return ts.tv_sec * 1000ULL + ts.tv_nsec/1000000; in monotonic_ms()
333 return ts.tv_sec; in monotonic_sec()
342 return tv.tv_sec * 1000000000ULL + tv.tv_usec * 1000; in monotonic_ns()
348 return tv.tv_sec * 1000000ULL + tv.tv_usec; in monotonic_us()
354 return tv.tv_sec * 1000ULL + tv.tv_usec / 1000; in monotonic_ms()
Dbb_do_delay.c57 ts.tv_sec = ms / 1000; in msleep()
Dutmp.c32 utent.ut_tv.tv_sec = time(NULL); in write_new_utmp()
120 utent.ut_tv.tv_sec = time(NULL); in update_utmp()
Dcopy_file.c430 times[1].tv_sec = times[0].tv_sec = source_stat.st_mtime; in copy_file()
/busybox-1.35.0/miscutils/
Dtime.c206 vv_ms = (resp->ru.ru_utime.tv_sec + resp->ru.ru_stime.tv_sec) * 1000 in summarize()
301 (unsigned)resp->ru.ru_stime.tv_sec, in summarize()
305 if (resp->ru.ru_stime.tv_sec >= 3600) /* One hour -> h:m:s. */ in summarize()
307 (unsigned)(resp->ru.ru_stime.tv_sec / 3600), in summarize()
308 (unsigned)(resp->ru.ru_stime.tv_sec % 3600) / 60, in summarize()
309 (unsigned)(resp->ru.ru_stime.tv_sec % 60)); in summarize()
312 (unsigned)(resp->ru.ru_stime.tv_sec / 60), in summarize()
313 (unsigned)(resp->ru.ru_stime.tv_sec % 60), in summarize()
318 (unsigned)resp->ru.ru_utime.tv_sec, in summarize()
322 if (resp->ru.ru_utime.tv_sec >= 3600) /* One hour -> h:m:s. */ in summarize()
[all …]
Dts.c66 ts.tv_sec -= base.tv_sec; in ts_main()
70 ts.tv_sec--; in ts_main()
76 localtime_r(&ts.tv_sec, &tm_time); in ts_main()
Dadjtimex.c170 (long)txc.time.tv_sec, (long)txc.time.tv_usec, in adjtimex_main()
/busybox-1.35.0/util-linux/
Dhwclock.c116 long diff = sys_tv.tv_sec - t; in show_clock()
195 tv.tv_sec = read_rtc(pp_rtcname, NULL, utc); in to_sys_clock()
210 if (sizeof(time_t) == sizeof(tv.tv_sec)) { in from_sys_clock()
212 gmtime_r((time_t*)&tv.tv_sec, &tm_time); in from_sys_clock()
214 localtime_r((time_t*)&tv.tv_sec, &tm_time); in from_sys_clock()
216 time_t t = tv.tv_sec; in from_sys_clock()
258 t = tv.tv_sec; in from_sys_clock()
279 if (tv.tv_sec < t /* we are still in old second */ in from_sys_clock()
280 || (tv.tv_sec == t && tv.tv_usec < adj) /* not too far into next second */ in from_sys_clock()
287 t = tv.tv_sec; in from_sys_clock()
Dlast_fancy.c58 tmp = ut->ut_tv.tv_sec; in show_entry()
63 dur_secs = MAX(dur_secs - (time_t)ut->ut_tv.tv_sec, (time_t)0); in show_entry()
210 start_time = ut.ut_tv.tv_sec; in last_main()
214 down_time = ut.ut_tv.tv_sec; in last_main()
220 down_time = ut.ut_tv.tv_sec; in last_main()
253 show_entry(&ut, NORMAL, up->ut_tv.tv_sec); in last_main()
284 boot_time = ut.ut_tv.tv_sec; in last_main()
Drdate.c100 ts.tv_sec = remote_time; in rdate_main()
Dlast.c155 t_tmp = (time_t)ut.ut_tv.tv_sec; in last_main()
Dscript.c176 newtime = tv.tv_sec + (double) tv.tv_usec / 1000000; in script_main()
/busybox-1.35.0/coreutils/
Dtouch.c135 timebuf[0].tv_sec = stbuf.st_atime; in touch_main()
136 timebuf[1].tv_sec = stbuf.st_mtime; in touch_main()
156 timebuf[1].tv_sec = timebuf[0].tv_sec = t; in touch_main()
Ddate.c247 ts.tv_sec = statbuf.st_mtime; in date_main()
259 time(&ts.tv_sec); in date_main()
265 localtime_r(&ts.tv_sec, &tm_time); in date_main()
287 ts.tv_sec = validate_tm_time(date_str, &tm_time); in date_main()
Dwho.c144 seconds = ut->ut_tv.tv_sec; in who_main()
/busybox-1.35.0/networking/
Disrv.c297 tv.tv_sec = timeout; in isrv_run()
299 tv.tv_sec = linger_timeout; in isrv_run()
308 FD_COUNT, (int)tv.tv_sec); in isrv_run()
309 n = select(FD_COUNT, &rd, wrp, NULL, tv.tv_sec ? &tv : NULL); in isrv_run()
Dbrctl.c275 unsigned tv_sec = f->ageing_timer_value / 100; in show_bridge_macs() local
285 tv_sec, tv_csec in show_bridge_macs()
296 unsigned tv_sec = centisec / 100; in show_bridge_timer() local
298 printf("%s%4u.%.2u", msg, tv_sec, tv_csec); in show_bridge_timer()
/busybox-1.35.0/runit/
Drunsv.c71 ts->tv_sec = tv.tv_sec; in gettimeofday_ns()
252 status.time_be64 = SWAP_BE64(s->start.tv_sec + 0x400000000000000aULL); in update_status()
669 deadline = svd[0].start.tv_sec + 1; in runsv_main()
672 if (LESS(svd[0].start.tv_sec, deadline)) in runsv_main()
682 deadline = svd[1].start.tv_sec + 1; in runsv_main()
685 if (LESS(svd[1].start.tv_sec, deadline)) in runsv_main()
/busybox-1.35.0/procps/
Dnmeter.c763 time_t t = tv->tv_sec; in S_STAT_END()
789 tv_mono.tv_sec = G.tv.tv_sec - G.start.tv_sec; in collect_monotonic()
791 if (tv_mono.tv_sec < 0) { in collect_monotonic()
793 tv_mono.tv_sec = 0; in collect_monotonic()
800 tv_mono.tv_sec--; in collect_monotonic()
976 rem = G.delta - ((ullong)G.tv.tv_sec*1000000 + G.tv.tv_usec) % G.deltanz; in nmeter_main()
/busybox-1.35.0/archival/libarchive/
Ddata_extract_all.c246 t[1].tv_sec = t[0].tv_sec = file_header->mtime; in data_extract_all()
/busybox-1.35.0/examples/shutdown-1.0/script/
Dhardshutdown.c120 t.tv_sec = strtol(argv[c], NULL, 10); in main()
/busybox-1.35.0/init/
Dhalt.c109 utmp.ut_tv.tv_sec = time(NULL); in write_wtmp()
/busybox-1.35.0/archival/
Dbbunzip.c148 times[1].tv_sec = times[0].tv_sec = xstate.mtime; in bbunpack()

12