Lines Matching refs:size
55 size_t size = sizeof(info); in uv_loadavg() local
58 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0) == -1) return; in uv_loadavg()
66 int uv_exepath(char* buffer, size_t* size) { in uv_exepath() argument
75 if (buffer == NULL || size == NULL || *size == 0) in uv_exepath()
91 uv__strscpy(buffer, int_buf, *size); in uv_exepath()
94 *size = strlen(buffer); in uv_exepath()
102 size_t size = sizeof(info); in uv_get_free_memory() local
105 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_free_memory()
120 size_t size = sizeof(info); in uv_get_total_memory() local
122 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_total_memory()
172 size_t size = sizeof(info); in uv_uptime() local
175 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_uptime()
194 size_t size; in uv_cpu_info() local
197 size = sizeof(model); in uv_cpu_info()
198 if (sysctlbyname("machdep.cpu_brand", &model, &size, NULL, 0) && in uv_cpu_info()
199 sysctlbyname("hw.model", &model, &size, NULL, 0)) { in uv_cpu_info()
203 size = sizeof(numcpus); in uv_cpu_info()
204 if (sysctlbyname("hw.ncpu", &numcpus, &size, NULL, 0)) in uv_cpu_info()
209 size = sizeof(cpuspeed); in uv_cpu_info()
210 if (sysctlbyname("machdep.tsc_freq", &cpuspeed, &size, NULL, 0)) in uv_cpu_info()
213 size = numcpus * CPUSTATES * sizeof(*cp_times); in uv_cpu_info()
214 cp_times = uv__malloc(size); in uv_cpu_info()
218 if (sysctlbyname("kern.cp_time", cp_times, &size, NULL, 0)) in uv_cpu_info()