Lines Matching defs:processors
52 int processors = -1;
2198 if(processors == -1) {
2201 size_t len = sizeof(processors);
2210 if(sysctl(mib, 2, &processors, &len, NULL, 0) == -1) {
2211 ERROR("Failed to get number of available processors. "
2213 processors = 1;
2216 processors = sysconf(_SC_NPROCESSORS_ONLN);
2220 if(add_overflow(processors, 3) ||
2221 multiply_overflow(processors + 3, sizeof(pthread_t)))
2224 thread = malloc((3 + processors) * sizeof(pthread_t));
2334 for(i = 0; i < processors; i++) {
2340 printf("Parallel unsquashfs: Using %d processor%s\n", processors,
2341 processors == 1 ? "" : "s");
2553 } else if(strcmp(argv[i], "-processors") == 0 ||
2557 &processors)) {
2558 ERROR("%s: -processors missing or invalid "
2562 if(processors < 1) {
2563 ERROR("%s: -processors should be 1 or larger\n",
2655 "processors. By default will use\n");
2656 ERROR("\t\t\t\tnumber of processors available\n");