tcgetpgrp
if ((tpgrp = tcgetpgrp(f)) != -1) {
ctpgrp = tcgetpgrp(FSHTTY);
(ctpgrp = tcgetpgrp(FSHTTY)) != -1 &&
&& (j->saved_ttypgrp = tcgetpgrp(tty_fd)) >= 0)
if ((ttypgrp = tcgetpgrp(tty_fd)) < 0) {
int tcgetpgrp ARGS((int fd));
static pid_t tcgetpgrp(int fd);
if ((initialpgrp = tcgetpgrp(ttyfd)) < 0) {
if (mflag && gotpid != -1 && tcgetpgrp(ttyfd) != getpid()) {
pid_t tcgetpgrp(int);
__weak_alias(tcgetpgrp,_tcgetpgrp)
tcgetpgrp(int fd)
return (tcgetpgrp(fileno(ttyout)) == pgrp);