Home
last modified time | relevance | path

Searched refs:sysinfo (Results 1 - 25 of 116) sorted by relevance

12345

/third_party/libuv/src/unix/
H A Dsysinfo-memory.c26 #include <sys/sysinfo.h>
29 struct sysinfo info; in uv_get_free_memory()
31 if (sysinfo(&info) == 0) in uv_get_free_memory()
37 struct sysinfo info; in uv_get_total_memory()
39 if (sysinfo(&info) == 0) in uv_get_total_memory()
H A Dsysinfo-loadavg.c26 #include <sys/sysinfo.h>
29 struct sysinfo info; in uv_loadavg()
31 if (sysinfo(&info) < 0) return; in uv_loadavg()
H A Dcygwin.c25 #include <sys/sysinfo.h>
29 struct sysinfo info; in uv_uptime()
31 if (sysinfo(&info) < 0) in uv_uptime()
/third_party/node/deps/uv/src/unix/
H A Dsysinfo-memory.c26 #include <sys/sysinfo.h>
29 struct sysinfo info; in uv_get_free_memory()
31 if (sysinfo(&info) == 0) in uv_get_free_memory()
37 struct sysinfo info; in uv_get_total_memory()
39 if (sysinfo(&info) == 0) in uv_get_total_memory()
H A Dsysinfo-loadavg.c26 #include <sys/sysinfo.h>
29 struct sysinfo info; in uv_loadavg()
31 if (sysinfo(&info) < 0) return; in uv_loadavg()
H A Dcygwin.c25 #include <sys/sysinfo.h>
29 struct sysinfo info; in uv_uptime()
31 if (sysinfo(&info) < 0) in uv_uptime()
/third_party/musl/porting/linux/user/include/sys/
H A Dsysinfo.h11 struct sysinfo { struct
27 #include <linux/sysinfo.h>
30 int sysinfo (struct sysinfo *);
/third_party/musl/include/sys/
H A Dsysinfo.h11 struct sysinfo { struct
27 #include <linux/sysinfo.h>
30 int sysinfo (struct sysinfo *);
/third_party/ltp/testcases/kernel/syscalls/sysinfo/
H A Dsysinfo03.c7 Test if CLOCK_BOOTTIME namespace offset is applied to sysinfo uptime and that
16 #include <sys/sysinfo.h>
38 struct sysinfo si; in verify_sysinfo()
47 sysinfo(&si); in verify_sysinfo()
52 sysinfo(&si); in verify_sysinfo()
58 tst_res(TFAIL, "Wrong sysinfo uptime offset %li", diff); in verify_sysinfo()
60 tst_res(TPASS, "Correct sysinfo uptime offset %i", off); in verify_sysinfo()
63 tst_res(TFAIL, "/proc/uptime %li differs from sysinfo %li", in verify_sysinfo()
66 tst_res(TPASS, "/proc/uptime is consistent with sysinfo"); in verify_sysinfo()
H A Dsysinfo01.c23 * Verify that sysinfo() succeeds to get the system information and fills
27 * sysinfo() returns value 0 on success and the sysinfo structure should
41 * if we are being called by another sysinfo test.
72 #include <sys/sysinfo.h>
84 struct sysinfo *sys_buf; in main()
89 sys_buf = malloc(sizeof(struct sysinfo)); in main()
101 TEST(sysinfo(sys_buf)); in main()
105 tst_brkm(TFAIL, cleanup, "sysinfo() Failed, errno=%d" in main()
112 * sysinfo in main()
[all...]
H A Dsysinfo02.c24 * Verify that sysinfo() returns the correct error for an invalid address structure.
27 * sysinfo() returns value 0 on success and the sysinfo structure should
68 #include <sys/sysinfo.h>
85 struct sysinfo *sysinfo_buf; in main()
100 TEST(sysinfo(sysinfo_buf)); in main()
109 tst_brkm(TFAIL, cleanup, "sysinfo() Failed, Expected -1 " in main()
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dsysinfo.c18 #include <sys/sysinfo.h>
29 struct sysinfo info; in sysinfo_0100()
32 int result = sysinfo(&info); in sysinfo_0100()
71 int result = sysinfo(NULL); in sysinfo_0200()
/third_party/musl/src/linux/
H A Dsysinfo.c1 #include <sys/sysinfo.h>
4 int __lsysinfo(struct sysinfo *info) in __lsysinfo()
9 weak_alias(__lsysinfo, sysinfo);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Dsysinfo.h10 struct sysinfo { struct
26 int sysinfo (struct sysinfo *);
/third_party/musl/src/legacy/
H A Dgetloadavg.c3 #include <sys/sysinfo.h>
7 struct sysinfo si; in getloadavg()
9 sysinfo(&si); in getloadavg()
/third_party/musl/porting/uniproton/kernel/include/sys/
H A Dsysinfo.h10 struct sysinfo { struct
26 int sysinfo (struct sysinfo *);
/third_party/musl/porting/liteos_a/kernel/include/
H A Dsysinfo.h8 struct sysinfo { struct
24 int sysinfo (struct sysinfo *);
/third_party/musl/porting/liteos_a_newlib/kernel/include/
H A Dsysinfo.h8 struct sysinfo { struct
24 int sysinfo (struct sysinfo *);
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Dsysinfo.h10 struct sysinfo { struct
26 int sysinfo (struct sysinfo *);
/third_party/ltp/lib/
H A Dtst_virt.c69 FILE *sysinfo; in is_ibmz() local
73 if (access("/proc/sysinfo", F_OK) != 0) in is_ibmz()
76 sysinfo = SAFE_FOPEN(NULL, "/proc/sysinfo", "r"); in is_ibmz()
79 while (fgets(line, sizeof(line), sysinfo) != NULL) { in is_ibmz()
86 SAFE_FCLOSE(NULL, sysinfo); in is_ibmz()
/third_party/alsa-lib/test/
H A Dseq.c42 snd_seq_system_info_t *sysinfo; in system_info() local
44 snd_seq_system_info_alloca(&sysinfo); in system_info()
45 if ((err = snd_seq_system_info(handle, sysinfo))<0) { in system_info()
49 max_clients = snd_seq_system_info_get_clients(sysinfo); in system_info()
50 max_ports = snd_seq_system_info_get_ports(sysinfo); in system_info()
51 max_queues = snd_seq_system_info_get_ports(sysinfo); in system_info()
/third_party/musl/src/linux/x32/
H A Dsysinfo.c1 #include <sys/sysinfo.h>
23 int __lsysinfo(struct sysinfo *info) in __lsysinfo()
49 weak_alias(__lsysinfo, sysinfo);
/third_party/rust/crates/nix/src/sys/
H A Dsysinfo.rs8 /// System info structure returned by `sysinfo`.
11 pub struct SysInfo(libc::sysinfo);
78 /// [See `sysinfo(2)`](https://man7.org/linux/man-pages/man2/sysinfo.2.html).
79 pub fn sysinfo() -> Result<SysInfo> { in sysinfo() functions
81 let res = unsafe { libc::sysinfo(info.as_mut_ptr()) }; in sysinfo()
/third_party/rust/crates/nix/test/sys/
H A Dtest_sysinfo.rs1 use nix::sys::sysinfo::*;
5 let info = sysinfo().unwrap(); in sysinfo_works()
/third_party/lzma/CPP/Windows/
H A DSystem.cpp11 #include <sys/sysinfo.h>
217 struct sysinfo info; in GetRamSize()
218 if (::sysinfo(&info) != 0) in GetRamSize()

Completed in 6 milliseconds

12345