Lines Matching refs:size
66 int uv_exepath(char* buffer, size_t* size) { in uv_exepath() argument
73 if (buffer == NULL || size == NULL || *size == 0) in uv_exepath()
87 *size -= 1; in uv_exepath()
88 if (*size > abspath_size) in uv_exepath()
89 *size = abspath_size; in uv_exepath()
91 memcpy(buffer, abspath, *size); in uv_exepath()
92 buffer[*size] = '\0'; in uv_exepath()
114 size_t size = sizeof(info); in uv_get_total_memory() local
116 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_total_memory()
135 size_t size = sizeof(info); in uv_loadavg() local
138 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0) < 0) return; in uv_loadavg()
170 size_t size = sizeof(info); in uv_uptime() local
173 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_uptime()
187 size_t size; in uv_cpu_info() local
194 size = sizeof(model); in uv_cpu_info()
195 if (sysctlbyname("machdep.cpu.brand_string", &model, &size, NULL, 0) && in uv_cpu_info()
196 sysctlbyname("hw.model", &model, &size, NULL, 0)) { in uv_cpu_info()
201 size = sizeof(cpuspeed); in uv_cpu_info()
202 sysctlbyname("hw.cpufrequency", &cpuspeed, &size, NULL, 0); in uv_cpu_info()