JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... stdlib.h > #include < unistd.h > #include < stdio.h > #include < assert.h > int main(int argc, char *argv[]) { cpu_set_t *cpusetp; size_t size; int num_cpus; if (argc < 2) { fprintf(stderr, "Usage: %s <num-cpus>\n", argv[0]); exit(EXIT_FAILURE); } num_ ... cpus = atoi(argv[1]); cpusetp = CPU_ALLOC(num_cpus); if (cpusetp == NULL) { perror("CPU_ALLOC"); exit(EXIT_FAILURE); } size = CPU_ALLOC_SIZE(num_cpus); ... CPU_ZERO_S(size, cpusetp); for (int cpu = 0; cpu < num_cpus; cpu += 2) CPU_SET_S(cpu, size, cpusetp); printf("CPU_COUNT() of set: %d\n", CPU_COUNT_ ... ... stdlib.h > #include < unistd.h > #include < stdio.h > #include < assert.h > int main(int argc, char *argv[]) { cpu_set_t *cpusetp; size_t size; int num_cpus; if (argc < 2) { fprintf(stderr, "Usage: %s <num-cpus>\n", argv[0]); exit(EXIT_FAILURE); } num_ ... cpus = atoi(argv[1]); cpusetp = CPU_ALLOC(num_cpus); if (cpusetp == NULL) { perror("CPU_ALLOC"); exit(EXIT_FAILURE); } size = CPU_ALLOC_SIZE(num_cpus); ... CPU_ZERO_S(size, cpusetp); for (int cpu = 0; cpu < num_cpus; cpu += 2) CPU_SET_S(cpu, size, cpusetp); printf("CPU_COUNT() of set: %d\n", CPU_COUNT_ ... ... stdlib.h > #include < unistd.h > #include < stdio.h > #include < assert.h > int main(int argc, char *argv[]) { cpu_set_t *cpusetp; size_t size; int num_cpus; if (argc < 2) { fprintf(stderr, "Usage: %s <num-cpus>\n", argv[0]); exit(EXIT_FAILURE); } num_ ... cpus = atoi(argv[1]); cpusetp = CPU_ALLOC(num_cpus); if (cpusetp == NULL) { perror("CPU_ALLOC"); exit(EXIT_FAILURE); } size = CPU_ALLOC_SIZE(num_cpus); ... CPU_ZERO_S(size, cpusetp); for (int cpu = 0; cpu < num_cpus; cpu += 2) CPU_SET_S(cpu, size, cpusetp); printf("CPU_COUNT() of set: %d\n", CPU_COUNT_ ... ... stdlib.h > #include < unistd.h > #include < stdio.h > #include < assert.h > int main(int argc, char *argv[]) { cpu_set_t *cpusetp; size_t size; int num_cpus; if (argc < 2) { fprintf(stderr, "Usage: %s <num-cpus>\n", argv[0]); exit(EXIT_FAILURE); } num_ ... cpus = atoi(argv[1]); cpusetp = CPU_ALLOC(num_cpus); if (cpusetp == NULL) { perror("CPU_ALLOC"); exit(EXIT_FAILURE); } size = CPU_ALLOC_SIZE(num_cpus); ... CPU_ZERO_S(size, cpusetp); for (int cpu = 0; cpu < num_cpus; cpu += 2) CPU_SET_S(cpu, size, cpusetp); printf("CPU_COUNT() of set: %d\n", CPU_COUNT_ ... ... stdlib.h > #include < unistd.h > #include < stdio.h > #include < assert.h > int main(int argc, char *argv[]) { cpu_set_t *cpusetp; size_t size; int num_cpus; if (argc < 2) { fprintf(stderr, "Usage: %s <num-cpus>\n", argv[0]); exit(EXIT_FAILURE); } num_ ... cpus = atoi(argv[1]); cpusetp = CPU_ALLOC(num_cpus); if (cpusetp == NULL) { perror("CPU_ALLOC"); exit(EXIT_FAILURE); } size = CPU_ALLOC_SIZE(num_cpus); ... CPU_ZERO_S(size, cpusetp); for (int cpu = 0; cpu < num_cpus; cpu += 2) CPU_SET_S(cpu, size, cpusetp); printf("CPU_COUNT() of set: %d\n", CPU_COUNT_ ... ... stdlib.h > #include < unistd.h > #include < stdio.h > #include < assert.h > int main(int argc, char *argv[]) { cpu_set_t *cpusetp; size_t size; int num_cpus; if (argc < 2) { fprintf(stderr, "Usage: %s <num-cpus>\n", argv[0]); exit(EXIT_FAILURE); } num_ ... cpus = atoi(argv[1]); cpusetp = CPU_ALLOC(num_cpus); if (cpusetp == NULL) { perror("CPU_ALLOC"); exit(EXIT_FAILURE); } size = CPU_ALLOC_SIZE(num_cpus); ... CPU_ZERO_S(size, cpusetp); for (int cpu = 0; cpu < num_cpus; cpu += 2) CPU_SET_S(cpu, size, cpusetp); printf("CPU_COUNT() of set: %d\n", CPU_COUNT_ ... ... stdlib.h > #include < unistd.h > #include < stdio.h > #include < assert.h > int main(int argc, char *argv[]) { cpu_set_t *cpusetp; size_t size; int num_cpus; if (argc < 2) { fprintf(stderr, "Usage: %s <num-cpus>\n", argv[0]); exit(EXIT_FAILURE); } num_ ... cpus = atoi(argv[1]); cpusetp = CPU_ALLOC(num_cpus); if (cpusetp == NULL) { perror("CPU_ALLOC"); exit(EXIT_FAILURE); } size = CPU_ALLOC_SIZE(num_cpus); ... CPU_ZERO_S(size, cpusetp); for (int cpu = 0; cpu < num_cpus; cpu += 2) CPU_SET_S(cpu, size, cpusetp); printf("CPU_COUNT() of set: %d\n", CPU_COUNT_ ... ... stdlib.h > #include < unistd.h > #include < stdio.h > #include < assert.h > int main(int argc, char *argv[]) { cpu_set_t *cpusetp; size_t size; int num_cpus; if (argc < 2) { fprintf(stderr, "Usage: %s <num-cpus>\n", argv[0]); exit(EXIT_FAILURE); } num_ ... cpus = atoi(argv[1]); cpusetp = CPU_ALLOC(num_cpus); if (cpusetp == NULL) { perror("CPU_ALLOC"); exit(EXIT_FAILURE); } size = CPU_ALLOC_SIZE(num_cpus); ... CPU_ZERO_S(size, cpusetp); for (int cpu = 0; cpu < num_cpus; cpu += 2) CPU_SET_S(cpu, size, cpusetp); printf("CPU_COUNT() of set: %d\n", CPU_COUNT_ ... ... stdlib.h > #include < unistd.h > #include < stdio.h > #include < assert.h > int main(int argc, char *argv[]) { cpu_set_t *cpusetp; size_t size; int num_cpus; if (argc < 2) { fprintf(stderr, "Usage: %s <num-cpus>\n", argv[0]); exit(EXIT_FAILURE); } num_ ... cpus = atoi(argv[1]); cpusetp = CPU_ALLOC(num_cpus); if (cpusetp == NULL) { perror("CPU_ALLOC"); exit(EXIT_FAILURE); } size = CPU_ALLOC_SIZE(num_cpus); ... CPU_ZERO_S(size, cpusetp); for (int cpu = 0; cpu < num_cpus; cpu += 2) CPU_SET_S(cpu, size, cpusetp); printf("CPU_COUNT() of set: %d\n", CPU_COUNT_ ... ... stdlib.h > #include < unistd.h > #include < stdio.h > #include < assert.h > int main(int argc, char *argv[]) { cpu_set_t *cpusetp; size_t size; int num_cpus; if (argc < 2) { fprintf(stderr, "Usage: %s <num-cpus>\n", argv[0]); exit(EXIT_FAILURE); } num_ ... cpus = atoi(argv[1]); cpusetp = CPU_ALLOC(num_cpus); if (cpusetp == NULL) { perror("CPU_ALLOC"); exit(EXIT_FAILURE); } size = CPU_ALLOC_SIZE(num_cpus); ... CPU_ZERO_S(size, cpusetp); for (int cpu = 0; cpu < num_cpus; cpu += 2) CPU_SET_S(cpu, size, cpusetp); printf("CPU_COUNT() of set: %d\n", CPU_COUNT_ ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。