Lines Matching refs:pgid
2449 "getpgid(pid) -> pgid\n\n\
2455 pid_t pid, pgid;
2458 pgid = getpgid(pid);
2459 if (pgid < 0)
2461 return PyLong_FromPid(pgid);
2593 "killpg(pgid, sig)\n\n\
2600 pid_t pgid;
2601 /* XXX some man pages make the `pgid` parameter an int, others
2605 if (!PyArg_ParseTuple(args, PARSE_PID "i:killpg", &pgid, &sig))
2607 if (killpg(pgid, sig) == -1)
4728 "tcgetpgrp(fd) -> pgid\n\n\
4735 pid_t pgid;
4738 pgid = tcgetpgrp(fd);
4739 if (pgid < 0)
4741 return PyLong_FromPid(pgid);
4748 "tcsetpgrp(fd, pgid)\n\n\
4755 pid_t pgid;
4756 if (!PyArg_ParseTuple(args, "i" PARSE_PID ":tcsetpgrp", &fd, &pgid))
4758 if (tcsetpgrp(fd, pgid) < 0)