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

12

/external/toybox/toys/other/
H A Duptime.c0 /* uptime.c - Tell how long the system has been running.
8 USE_UPTIME(NEWTOY(uptime, NULL, TOYFLAG_USR|TOYFLAG_BIN))
11 bool "uptime"
15 usage: uptime
45 info.uptime /= 60;
46 minutes = info.uptime%60;
47 info.uptime /= 60;
48 hours = info.uptime%24;
49 days = info.uptime/24;
/external/iptables/include/linux/
H A Dkernel.h13 long uptime; /* Seconds since boot */ member in struct:sysinfo
/external/kernel-headers/original/uapi/linux/
H A Dsysinfo.h8 __kernel_long_t uptime; /* Seconds since boot */ member in struct:sysinfo
/external/strace/tests/
H A Dsysinfo.c37 printf("sysinfo({uptime=%llu"
50 (unsigned long long) si.uptime
/external/strace/
H A Dsysinfo.c49 tprintf("{uptime=%llu"
62 (unsigned long long) si.uptime
/external/iproute2/misc/
H A Drtacct.c582 long uptime = -1; local
583 if ((tfp = fopen("/proc/uptime", "r")) != NULL) {
584 if (fscanf(tfp, "%ld", &uptime) != 1)
585 uptime = -1;
589 if (uptime >= 0 && time(NULL) >= stb.st_mtime+uptime) {
H A Dnstat.c644 long uptime = -1; local
645 if ((tfp = fopen("/proc/uptime", "r")) != NULL) {
646 if (fscanf(tfp, "%ld", &uptime) != 1)
647 uptime = -1;
650 if (uptime >= 0 && time(NULL) >= stb.st_mtime+uptime) {
H A Difstat.c814 long uptime = -1; local
815 if ((tfp = fopen("/proc/uptime", "r")) != NULL) {
816 if (fscanf(tfp, "%ld", &uptime) != 1)
817 uptime = -1;
820 if (uptime >= 0 && time(NULL) >= stb.st_mtime+uptime) {
/external/autotest/client/site_tests/platform_BootPerf/
H A Dplatform_BootPerf.py104 _UPTIME_PREFIX = 'uptime-'
140 /proc/uptime ("uptime-" files) or /sys/block/<dev>/stat
145 The given event file can contain either uptime or disk data.
304 # Not all 'uptime-network-*-ready' files necessarily exist;
363 /proc/uptime). The input values `t0` and `t1` are two
442 with open('/proc/uptime') as uptime_file:
443 uptime = float(uptime_file.readline().split()[0])
447 boot_t0, boot_t1, uptime)
/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();
H A Ddhcp.c726 time_t up = uptime() - state->start_uptime;
3578 state->start_uptime = uptime();
/external/toybox/
H A DAndroid.mk131 toys/other/uptime.c \
360 uptime \
/external/tcpdump/
H A Dprint-sflow.c49 * | Switch uptime in ms |
62 uint8_t uptime[4]; member in struct:sflow_datagram_t
857 ND_PRINT((ndo, "sFlowv%u, %s agent %s, agent-id %u, seqnum %u, uptime %u, samples %u, length %u",
863 EXTRACT_32BITS(sflow_datagram->uptime),
/external/wpa_supplicant_8/hostapd/src/radius/
H A Dradius_server.c1897 int ret, uptime; local
1912 uptime = (now.sec - data->start_time.sec) * 100 +
1920 uptime);
/external/wpa_supplicant_8/src/radius/
H A Dradius_server.c1897 int ret, uptime; local
1912 uptime = (now.sec - data->start_time.sec) * 100 +
1920 uptime);
/external/wpa_supplicant_8/wpa_supplicant/src/radius/
H A Dradius_server.c1897 int ret, uptime; local
1912 uptime = (now.sec - data->start_time.sec) * 100 +
1920 uptime);
/external/toybox/generated/
H A Dnewtoys.h249 USE_UPTIME(NEWTOY(uptime, NULL, TOYFLAG_USR|TOYFLAG_BIN))
H A Dflags.h2865 // uptime
5459 #define TT this.uptime
/external/toybox/toys/posix/
H A Dps.c299 SLOT_uptime, /*si.uptime @read time*/ SLOT_vsz, // Virtual mem Size
642 // systems (or ps | more) we re-fetch uptime as we fetch each /proc line.
644 slot[SLOT_uptime] = TT.si.uptime;
/external/valgrind/include/vki/
H A Dvki-linux.h260 long uptime; /* Seconds since boot */ member in struct:vki_sysinfo
/external/robolectric/v3/runtime/
H A Dandroid-all-5.1.1_r9-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/android/ com/google/android/collect/ ...
H A Dandroid-all-5.0.0_r2-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/android/ com/google/android/collect/ ...

Completed in 2371 milliseconds

12