Searched refs:uptime (Results 1 - 25 of 36) sorted by relevance

12

/external/toybox/toys/other/
H A Duptime.c0 /* uptime.c - Tell how long the system has been running.
7 USE_UPTIME(NEWTOY(uptime, ">0ps", TOYFLAG_USR|TOYFLAG_BIN))
10 bool "uptime"
14 usage: uptime [-ps]
19 -p Pretty (human-readable) uptime
41 t -= info.uptime;
51 info.uptime /= 60;
52 minutes = info.uptime%60;
53 info.uptime /= 60;
54 hours = info.uptime
[all...]
/external/iptables/include/linux/
H A Dkernel.h13 long uptime; /* Seconds since boot */ member in struct:sysinfo
/external/iproute2/include/uapi/linux/
H A Dsysinfo.h9 __kernel_long_t uptime; /* Seconds since boot */ member in struct:sysinfo
/external/kernel-headers/original/uapi/linux/
H A Dsysinfo.h9 __kernel_long_t uptime; /* Seconds since boot */ member in struct:sysinfo
/external/strace/tests/
H A Dsysinfo.c46 printf("sysinfo({uptime=%llu"
59 , (unsigned long long) si->uptime
/external/strace/tests-m32/
H A Dsysinfo.c46 printf("sysinfo({uptime=%llu"
59 , (unsigned long long) si->uptime
/external/strace/tests-mx32/
H A Dsysinfo.c46 printf("sysinfo({uptime=%llu"
59 , (unsigned long long) si->uptime
/external/strace/
H A Dsysinfo.c50 tprintf("{uptime=%llu"
63 zero_extend_signed_to_ull(si.uptime)
/external/scapy/scapy/modules/
H A Dp0f.py316 uptime = None
318 uptime = pkt2uptime(pkt)
321 if uptime == 0:
322 uptime = None
324 if uptime is not None:
325 res += pkt.sprintf(" (up: " + str(uptime/3600) + " hrs)\n -> %IP.dst%:%TCP.dport% (%TCP.flags%)")
351 extrahops=0, mtu=1500, uptime=None):
455 if uptime is not None:
456 ts_a = uptime
/external/ltp/testcases/kernel/syscalls/sysinfo/
H A Dsysinfo01.c127 printf("uptime %lu\n", sys_buf->uptime);
/external/iproute2/misc/
H A Drtacct.c579 long uptime = -1; local
581 if ((tfp = fopen("/proc/uptime", "r")) != NULL) {
582 if (fscanf(tfp, "%ld", &uptime) != 1)
583 uptime = -1;
587 if (uptime >= 0 && time(NULL) >= stb.st_mtime+uptime) {
H A Dnstat.c682 long uptime = -1; local
684 if ((tfp = fopen("/proc/uptime", "r")) != NULL) {
685 if (fscanf(tfp, "%ld", &uptime) != 1)
686 uptime = -1;
689 if (uptime >= 0 && time(NULL) >= stb.st_mtime+uptime) {
H A Difstat.c968 long uptime = -1; local
970 if ((tfp = fopen("/proc/uptime", "r")) != NULL) {
971 if (fscanf(tfp, "%ld", &uptime) != 1)
972 uptime = -1;
975 if (uptime >= 0 && time(NULL) >= stb.st_mtime+uptime) {
/external/toybox/toys/lsb/
H A Ddmesg.c125 TT.tea = time(0)-info.uptime;
/external/autotest/client/site_tests/platform_BootPerf/
H A Dplatform_BootPerf.py101 _UPTIME_PREFIX = 'uptime-'
141 /proc/uptime ("uptime-" files) or /sys/block/<dev>/stat
146 The given event file can contain either uptime or disk data.
303 # Not all 'uptime-network-*-ready' files necessarily exist;
360 /proc/uptime). The input values `t0` and `t1` are two
439 with open('/proc/uptime') as uptime_file:
440 uptime = float(uptime_file.readline().split()[0])
444 boot_t0, boot_t1, uptime)
/external/nos/host/android/citadel/validation/
H A Dcitadel_validation_tool.cpp289 const auto uptime = std::chrono::microseconds(cycles); local
292 if (uptime > limit) {
293 LOG(ERROR) << "Uptime is " << uptime.count()
/external/dhcpcd-6.8.2/
H A Dcommon.h186 time_t uptime(void);
H A Dcommon.c300 uptime(void) function
H A Dipv4ll.c177 up = uptime();
H A Ddhcp6.c312 up = uptime() - state->start_uptime;
1243 state->start_uptime = uptime();
1384 state->start_uptime = uptime();
1550 state->start_uptime = uptime();
1582 state->start_uptime = uptime();
1627 state->start_uptime = uptime();
/external/toybox/
H A DAndroid.mk142 toys/other/uptime.c \
387 uptime \
/external/tcpdump/
H A Dprint-sflow.c50 * | Switch uptime in ms |
63 uint8_t uptime[4]; member in struct:sflow_datagram_t
907 ND_PRINT((ndo, "sFlowv%u, %s agent %s, agent-id %u, seqnum %u, uptime %u, samples %u, length %u",
913 EXTRACT_32BITS(sflow_datagram->uptime),
/external/wpa_supplicant_8/hostapd/src/radius/
H A Dradius_server.c1906 int ret, uptime; local
1921 uptime = (now.sec - data->start_time.sec) * 100 +
1929 uptime);
/external/wpa_supplicant_8/src/radius/
H A Dradius_server.c1906 int ret, uptime; local
1921 uptime = (now.sec - data->start_time.sec) * 100 +
1929 uptime);
/external/wpa_supplicant_8/wpa_supplicant/src/radius/
H A Dradius_server.c1906 int ret, uptime; local
1921 uptime = (now.sec - data->start_time.sec) * 100 +
1929 uptime);

Completed in 812 milliseconds

12