diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2010-07-02 19:57:16 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2010-07-02 19:57:16 +0000 |
commit | ae925fd12cfb7f45b45cdc7d9949a532f7036b20 (patch) | |
tree | 806a9b8a6a49f2e117aa7a7926f3df486a4b6d79 /sys/kern/tty_pty.c | |
parent | 60e9a7fdfa994a34001f5c17cd3a32546ee4e9a0 (diff) |
remove support for compat_sunos (and m68k4k). ok deraadt guenther
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. |