Lines Matching refs:size
64 int uv_exepath(char* buffer, size_t* size) { in uv_exepath() argument
69 if (buffer == NULL || size == NULL || *size == 0) in uv_exepath()
83 *size -= 1; in uv_exepath()
85 if (*size > abspath_size) in uv_exepath()
86 *size = abspath_size; in uv_exepath()
88 memcpy(buffer, abspath, *size); in uv_exepath()
89 buffer[*size] = '\0'; in uv_exepath()
96 size_t size = sizeof(freecount); in uv_get_free_memory() local
98 if (sysctlbyname("vm.stats.vm.v_free_count", &freecount, &size, NULL, 0)) in uv_get_free_memory()
110 size_t size = sizeof(info); in uv_get_total_memory() local
112 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_total_memory()
131 size_t size = sizeof(info); in uv_loadavg() local
134 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0) < 0) return; in uv_loadavg()
193 size_t size; in uv_cpu_info() local
215 size = sizeof(cpuspeed); in uv_cpu_info()
216 if (sysctlbyname("hw.clockrate", &cpuspeed, &size, NULL, 0)) in uv_cpu_info()
220 size = sizeof(model); in uv_cpu_info()
221 if (sysctlbyname(model_key, &model, &size, NULL, 0)) in uv_cpu_info()
224 size = sizeof(numcpus); in uv_cpu_info()
225 if (sysctlbyname("hw.ncpu", &numcpus, &size, NULL, 0)) in uv_cpu_info()
237 size = sizeof(maxcpus); in uv_cpu_info()
238 if (sysctlbyname(maxcpus_key, &maxcpus, &size, NULL, 0)) { in uv_cpu_info()
243 size = maxcpus * CPUSTATES * sizeof(long); in uv_cpu_info()
245 cp_times = uv__malloc(size); in uv_cpu_info()
251 if (sysctlbyname(cptimes_key, cp_times, &size, NULL, 0)) { in uv_cpu_info()