diff options
Diffstat (limited to 'sys/kern/tty_pty.c')
-rw-r--r-- | sys/kern/tty_pty.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index 9e4d0135cd7..cbc7f32fed8 100644 --- a/sys/kern/tty_pty.c +++ b/sys/kern/tty_pty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty_pty.c,v 1.47 2010/07/02 17:27:01 nicm Exp $ */ +/* $OpenBSD: tty_pty.c,v 1.48 2010/07/02 19:57:15 tedu Exp $ */ /* $NetBSD: tty_pty.c,v 1.33.4.1 1996/06/02 09:08:11 mrg Exp $ */ /* @@ -801,21 +801,6 @@ ptyioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) switch (cmd) { case TIOCGPGRP: -#ifdef COMPAT_SUNOS - { - /* - * I'm not sure about SunOS TIOCGPGRP semantics - * on PTYs, but it's something like this: - */ - extern struct emul emul_sunos; - if (p->p_emul == &emul_sunos) { - if (tp->t_pgrp == 0) - return (EIO); - *(int *)data = tp->t_pgrp->pg_id; - return (0); - } - } -#endif /* * We avoid calling ttioctl on the controller since, * in that case, tp must be the controlling terminal. |