Searched refs:cp_time_len (Results 1 – 3 of 3) sorted by relevance
/dports/sysutils/symon/symon-2.88/platform/DragonFly/ |
H A D | sm_cpu.c | 66 static size_t cp_time_len = 0; variable 76 if (cp_time_len == 0) { in init_cpu() 77 cp_time_len = CTL_MAXNAME; in init_cpu() 78 if (sysctlnametomib(cp_time_mib_str, cp_time_mib, &cp_time_len) < 0) { in init_cpu() 80 cp_time_len = 0; in init_cpu() 83 if ((sysctl(cp_time_mib, cp_time_len, NULL, &cp_size, NULL, 0) != -1) && in init_cpu() 106 if (sysctl(cp_time_mib, cp_time_len, cp_buf, &cp_size, NULL, 0) < 0) { in gets_cpu() 118 if (!cp_time_len) in get_cpu()
|
/dports/sysutils/symon/symon-2.88/platform/FreeBSD/ |
H A D | sm_cpu.c | 66 static size_t cp_time_len = 0; variable 76 if (cp_time_len == 0) { in init_cpu() 77 cp_time_len = CTL_MAXNAME; in init_cpu() 78 if (sysctlnametomib(cp_time_mib_str, cp_time_mib, &cp_time_len) < 0) { in init_cpu() 80 cp_time_len = 0; in init_cpu() 83 if ((sysctl(cp_time_mib, cp_time_len, NULL, &cp_size, NULL, 0) != -1) && in init_cpu() 106 if (sysctl(cp_time_mib, cp_time_len, cp_buf, &cp_size, NULL, 0) < 0) { in gets_cpu() 118 if (!cp_time_len) in get_cpu()
|
/dports/sysutils/ascpu/ascpu-1.11/ |
H A D | ascpu_x.c | 581 size_t cp_time_len = sizeof(cp_time); in read_stat() local 582 int error = sysctl(cp_time_mib, 2, cp_time, &cp_time_len, NULL, 0); in read_stat()
|