Lines Matching refs:size

50   size_t size = sizeof(info);  in uv_loadavg()  local
53 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0) < 0) return; in uv_loadavg()
61 int uv_exepath(char* buffer, size_t* size) { in uv_exepath() argument
69 if (buffer == NULL || size == NULL || *size == 0) in uv_exepath()
97 *size -= 1; in uv_exepath()
99 if (*size > exepath_size) in uv_exepath()
100 *size = exepath_size; in uv_exepath()
102 memcpy(buffer, argsbuf[0], *size); in uv_exepath()
103 buffer[*size] = '\0'; in uv_exepath()
115 size_t size = sizeof(info); in uv_get_free_memory() local
118 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_free_memory()
128 size_t size = sizeof(info); in uv_get_total_memory() local
130 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_total_memory()
150 size_t size = sizeof(struct kinfo_proc); in uv_resident_set_memory() local
160 if (sysctl(mib, ARRAY_SIZE(mib), &kinfo, &size, NULL, 0) < 0) in uv_resident_set_memory()
171 size_t size = sizeof(info); in uv_uptime() local
174 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_uptime()
192 size_t size; in uv_cpu_info() local
196 size = sizeof(model); in uv_cpu_info()
197 if (sysctl(which, ARRAY_SIZE(which), &model, &size, NULL, 0)) in uv_cpu_info()
201 size = sizeof(numcpus); in uv_cpu_info()
202 if (sysctl(which, ARRAY_SIZE(which), &numcpus, &size, NULL, 0)) in uv_cpu_info()
213 size = sizeof(cpuspeed); in uv_cpu_info()
214 if (sysctl(which, ARRAY_SIZE(which), &cpuspeed, &size, NULL, 0)) in uv_cpu_info()
217 size = sizeof(info); in uv_cpu_info()
220 if (sysctl(percpu, ARRAY_SIZE(percpu), &info, &size, NULL, 0)) in uv_cpu_info()