2 * If this system has a BSD-style getpgrp() call which takes a pid
3 * as an argument, output a -DBSD_GETPGRP.
9 int pg1, pg2, pg3, pg4;
21 * If all of these values are the same, it's pretty sure that
22 * we're on a system that ignores getpgrp's first argument.
24 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
30 else if (child == 0) {
33 * If this is Sys V, this will not work; pgrp will be
34 * set to np because setpgrp just changes a pgrp to be
35 * the same as the pid.
38 ng = getpgrp(0); /* Same result for Sys V and BSD */
40 printf("-DBSD_GETPGRP\n");