Lines Matching refs:pgid
3991 "getpgid(pid) -> pgid\n\n\
3997 pid_t pid, pgid;
4000 pgid = getpgid(pid);
4001 if (pgid < 0)
4003 return PyLong_FromPid(pgid);
4136 "killpg(pgid, sig)\n\n\
4143 pid_t pgid;
4144 /* XXX some man pages make the `pgid` parameter an int, others
4148 if (!PyArg_ParseTuple(args, PARSE_PID "i:killpg", &pgid, &sig))
4150 if (killpg(pgid, sig) == -1)
6348 "tcgetpgrp(fd) -> pgid\n\n\
6355 pid_t pgid;
6358 pgid = tcgetpgrp(fd);
6359 if (pgid < 0)
6361 return PyLong_FromPid(pgid);
6368 "tcsetpgrp(fd, pgid)\n\n\
6375 pid_t pgid;
6376 if (!PyArg_ParseTuple(args, "i" PARSE_PID ":tcsetpgrp", &fd, &pgid))
6378 if (tcsetpgrp(fd, pgid) < 0)