Lines Matching defs:nprocs

50 int nprocs;
178 for (i = 0, cpu = 0; i < nprocs && cpu < ncpus; cpu++) {
191 if (i < nprocs) {
192 printf("Error: Number of online cpus reduced since start of test: %d < %d\n", i, nprocs);
586 int *fd1 = malloc(nprocs * sizeof(int));
587 int *fd2 = malloc(nprocs * sizeof(int));
597 close_fds(fd1, nprocs);
601 reset_fds(fd1, nprocs);
602 reset_fds(fd2, nprocs);
603 enable_fds(fd1, nprocs);
604 enable_fds(fd2, nprocs);
606 disable_fds(fd1, nprocs);
607 disable_fds(fd2, nprocs);
609 breaks1 = read_fds(fd1, nprocs);
610 breaks2 = read_fds(fd2, nprocs);
612 close_fds(fd1, nprocs);
613 close_fds(fd2, nprocs);
630 int *fd1 = malloc(nprocs * sizeof(int));
631 int *fd2 = malloc(nprocs * sizeof(int));
641 close_fds(fd1, nprocs);
645 reset_fds(fd1, nprocs);
646 reset_fds(fd2, nprocs);
647 enable_fds(fd1, nprocs);
648 enable_fds(fd2, nprocs);
650 disable_fds(fd1, nprocs);
651 disable_fds(fd2, nprocs);
653 breaks1 = read_fds(fd1, nprocs);
654 breaks2 = read_fds(fd2, nprocs);
656 close_fds(fd1, nprocs);
657 close_fds(fd2, nprocs);
674 int *fd1 = malloc(nprocs * sizeof(int));
675 int *fd2 = malloc(nprocs * sizeof(int));
685 close_fds(fd1, nprocs);
689 reset_fds(fd1, nprocs);
690 reset_fds(fd2, nprocs);
691 enable_fds(fd1, nprocs);
692 enable_fds(fd2, nprocs);
694 disable_fds(fd1, nprocs);
695 disable_fds(fd2, nprocs);
697 breaks1 = read_fds(fd1, nprocs);
698 breaks2 = read_fds(fd2, nprocs);
700 close_fds(fd1, nprocs);
701 close_fds(fd2, nprocs);
718 int *fd1 = malloc(nprocs * sizeof(int));
719 int *fd2 = malloc(nprocs * sizeof(int));
729 close_fds(fd1, nprocs);
733 reset_fds(fd1, nprocs);
734 reset_fds(fd2, nprocs);
735 enable_fds(fd1, nprocs);
736 enable_fds(fd2, nprocs);
738 disable_fds(fd1, nprocs);
739 disable_fds(fd2, nprocs);
741 breaks1 = read_fds(fd1, nprocs);
742 breaks2 = read_fds(fd2, nprocs);
744 close_fds(fd1, nprocs);
745 close_fds(fd2, nprocs);
870 nprocs = get_nprocs();