Lines Matching refs:num_writers
98 static int num_writers = 1; /* number of writers */ variable
138 for (i = num_writers; i > 0; --i) { in main()
209 if (sscanf(optarg, "%d", &num_writers) != 1) { in parse_options()
214 } else if (num_writers <= 0) { in parse_options()
435 if (size > PIPE_BUF && num_writers > 1) { in setup()
443 INT_MAX / num_writers); in setup()
637 .sem_num = 1, .sem_op = num_writers, .sem_flg = 0}; in do_parent()
644 .sem_num = 0, .sem_op = -num_writers, .sem_flg = 0}; in do_parent()
646 while (nchildcompleted < num_writers in do_parent()
655 for (i = num_writers * num_writes; i > 0 || loop; --i) { in do_parent()
680 if (nchildcompleted >= num_writers && !loop) { in do_parent()