/third_party/node/deps/uv/src/unix/ |
D | qnx.c | 117 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 126 *cpu_infos = uv__malloc(num_cpus * sizeof(**cpu_infos)); in uv_cpu_info() 127 if (*cpu_infos == NULL) in uv_cpu_info() 131 (*cpu_infos)[i].model = strdup(&strings->data[cpuinfo->name]); in uv_cpu_info() 132 (*cpu_infos)[i].speed = cpuinfo->speed; in uv_cpu_info()
|
D | haiku.c | 113 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 122 if (cpu_infos == NULL || count == NULL) in uv_cpu_info() 153 *cpu_infos = uv__calloc(system.cpu_count, sizeof(**cpu_infos)); in uv_cpu_info() 154 if (*cpu_infos == NULL) in uv_cpu_info() 158 cpu_info = *cpu_infos; in uv_cpu_info()
|
D | openbsd.c | 179 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 200 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info() 201 if (!(*cpu_infos)) in uv_cpu_info() 218 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info() 235 uv__free((*cpu_infos)[j].model); in uv_cpu_info() 237 uv__free(*cpu_infos); in uv_cpu_info() 238 *cpu_infos = NULL; in uv_cpu_info()
|
D | freebsd.c | 172 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 218 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info() 219 if (!(*cpu_infos)) in uv_cpu_info() 229 uv__free(*cpu_infos); in uv_cpu_info() 237 uv__free(*cpu_infos); in uv_cpu_info() 243 uv__free(*cpu_infos); in uv_cpu_info() 248 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
|
D | hurd.c | 134 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 149 *cpu_infos = uv__calloc(hbi.avail_cpus, sizeof(**cpu_infos)); in uv_cpu_info() 150 if (*cpu_infos == NULL) { in uv_cpu_info() 160 *cpu_infos = NULL; in uv_cpu_info()
|
D | netbsd.c | 180 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 216 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info() 217 if (!(*cpu_infos)) { in uv_cpu_info() 219 uv__free(*cpu_infos); in uv_cpu_info() 224 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
|
D | cygwin.c | 44 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 46 *cpu_infos = NULL; in uv_cpu_info()
|
D | darwin.c | 327 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 356 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info() 357 if (!(*cpu_infos)) { in uv_cpu_info() 365 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
|
D | ibmi.c | 282 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 286 *cpu_infos = NULL; in uv_cpu_info() 291 *cpu_infos = uv__malloc(numcpus * sizeof(uv_cpu_info_t)); in uv_cpu_info() 292 if (!*cpu_infos) { in uv_cpu_info() 296 cpu_info = *cpu_infos; in uv_cpu_info()
|
D | sunos.c | 662 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 679 *cpu_infos = uv__malloc(lookup_instance * sizeof(**cpu_infos)); in uv_cpu_info() 680 if (!(*cpu_infos)) { in uv_cpu_info() 687 cpu_info = *cpu_infos; in uv_cpu_info() 709 cpu_info = *cpu_infos; in uv_cpu_info()
|
D | linux-core.c | 268 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 274 *cpu_infos = NULL; in uv_cpu_info() 305 *cpu_infos = ci; in uv_cpu_info()
|
/third_party/libuv/src/unix/ |
D | qnx.c | 117 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 126 *cpu_infos = uv__malloc(num_cpus * sizeof(**cpu_infos)); in uv_cpu_info() 127 if (*cpu_infos == NULL) in uv_cpu_info() 131 (*cpu_infos)[i].model = strdup(&strings->data[cpuinfo->name]); in uv_cpu_info() 132 (*cpu_infos)[i].speed = cpuinfo->speed; in uv_cpu_info()
|
D | haiku.c | 113 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 122 if (cpu_infos == NULL || count == NULL) in uv_cpu_info() 153 *cpu_infos = uv__calloc(system.cpu_count, sizeof(**cpu_infos)); in uv_cpu_info() 154 if (*cpu_infos == NULL) in uv_cpu_info() 158 cpu_info = *cpu_infos; in uv_cpu_info()
|
D | freebsd.c | 172 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 218 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info() 219 if (!(*cpu_infos)) in uv_cpu_info() 229 uv__free(*cpu_infos); in uv_cpu_info() 237 uv__free(*cpu_infos); in uv_cpu_info() 243 uv__free(*cpu_infos); in uv_cpu_info() 248 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
|
D | openbsd.c | 179 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 200 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info() 201 if (!(*cpu_infos)) in uv_cpu_info() 218 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info() 235 uv__free((*cpu_infos)[j].model); in uv_cpu_info() 237 uv__free(*cpu_infos); in uv_cpu_info() 238 *cpu_infos = NULL; in uv_cpu_info()
|
D | hurd.c | 134 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 149 *cpu_infos = uv__calloc(hbi.avail_cpus, sizeof(**cpu_infos)); in uv_cpu_info() 150 if (*cpu_infos == NULL) { in uv_cpu_info() 160 *cpu_infos = NULL; in uv_cpu_info()
|
D | netbsd.c | 180 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 216 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info() 217 if (!(*cpu_infos)) { in uv_cpu_info() 219 uv__free(*cpu_infos); in uv_cpu_info() 224 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
|
D | cygwin.c | 44 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 46 *cpu_infos = NULL; in uv_cpu_info()
|
D | ibmi.c | 282 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 286 *cpu_infos = NULL; in uv_cpu_info() 291 *cpu_infos = uv__malloc(numcpus * sizeof(uv_cpu_info_t)); in uv_cpu_info() 292 if (!*cpu_infos) { in uv_cpu_info() 296 cpu_info = *cpu_infos; in uv_cpu_info()
|
D | darwin.c | 327 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 356 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info() 357 if (!(*cpu_infos)) { in uv_cpu_info() 365 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
|
D | sunos.c | 662 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 679 *cpu_infos = uv__malloc(lookup_instance * sizeof(**cpu_infos)); in uv_cpu_info() 680 if (!(*cpu_infos)) { in uv_cpu_info() 687 cpu_info = *cpu_infos; in uv_cpu_info() 709 cpu_info = *cpu_infos; in uv_cpu_info()
|
D | linux-core.c | 268 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 274 *cpu_infos = NULL; in uv_cpu_info() 305 *cpu_infos = ci; in uv_cpu_info()
|
/third_party/libuv/src/win/ |
D | util.c | 557 uv_cpu_info_t* cpu_infos; in uv_cpu_info() local 567 cpu_infos = NULL; in uv_cpu_info() 576 cpu_infos = uv__calloc(cpu_count, sizeof *cpu_infos); in uv_cpu_info() 577 if (cpu_infos == NULL) { in uv_cpu_info() 646 cpu_info = &cpu_infos[i]; in uv_cpu_info() 663 *cpu_infos_ptr = cpu_infos; in uv_cpu_info() 668 if (cpu_infos != NULL) { in uv_cpu_info() 671 uv__free(cpu_infos[i].model); in uv_cpu_info() 674 uv__free(cpu_infos); in uv_cpu_info()
|
/third_party/node/deps/uv/src/win/ |
D | util.c | 557 uv_cpu_info_t* cpu_infos; in uv_cpu_info() local 567 cpu_infos = NULL; in uv_cpu_info() 576 cpu_infos = uv__calloc(cpu_count, sizeof *cpu_infos); in uv_cpu_info() 577 if (cpu_infos == NULL) { in uv_cpu_info() 646 cpu_info = &cpu_infos[i]; in uv_cpu_info() 663 *cpu_infos_ptr = cpu_infos; in uv_cpu_info() 668 if (cpu_infos != NULL) { in uv_cpu_info() 671 uv__free(cpu_infos[i].model); in uv_cpu_info() 674 uv__free(cpu_infos); in uv_cpu_info()
|
/third_party/node/src/ |
D | node_os.cc | 104 uv_cpu_info_t* cpu_infos; in GetCPUInfo() local 107 int err = uv_cpu_info(&cpu_infos, &count); in GetCPUInfo() 118 uv_cpu_info_t* ci = cpu_infos + i; in GetCPUInfo() 133 uv_free_cpu_info(cpu_infos, count); in GetCPUInfo()
|