diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2016-05-24 16:09:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2016-05-24 16:09:08 +0000 |
commit | b144d536e745f2ec6197d3215e9fb20cbb952cdb (patch) | |
tree | d4897ea7b63411b5f8965d30ed659152b3826f0f /sys/kern/tty_pty.c | |
parent | e36e3227e2c9ffbb3f1d5cb7578987abe0c5fef0 (diff) |
Remove two sysctls which were introduced only for development of the
ptm/pty subsystem, and got left behind.
ok beck
Diffstat (limited to 'sys/kern/tty_pty.c')
-rw-r--r-- | sys/kern/tty_pty.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index c151fc711b1..1f1f43880ee 100644 --- a/sys/kern/tty_pty.c +++ b/sys/kern/tty_pty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty_pty.c,v 1.77 2016/03/19 12:04:15 natano Exp $ */ +/* $OpenBSD: tty_pty.c,v 1.78 2016/05/24 16:09:07 deraadt Exp $ */ /* $NetBSD: tty_pty.c,v 1.33.4.1 1996/06/02 09:08:11 mrg Exp $ */ /* @@ -911,34 +911,10 @@ int sysctl_pty(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp, size_t newlen) { - int error, oldmax; - if (namelen != 1) return (ENOTDIR); switch (name[0]) { - case KERN_TTY_MAXPTYS: - if (!newp) - return (sysctl_rdint(oldp, oldlenp, newp, maxptys)); - rw_enter_write(&pt_softc_lock); - oldmax = maxptys; - error = sysctl_int(oldp, oldlenp, newp, newlen, &maxptys); - /* - * We can't set the max lower than the current active - * value or to a value bigger than NPTY_MAX. - */ - if (error == 0 && (maxptys > NPTY_MAX || maxptys < npty)) { - maxptys = oldmax; - error = ERANGE; - } - rw_exit_write(&pt_softc_lock); - return (error); - case KERN_TTY_NPTYS: - return (sysctl_rdint(oldp, oldlenp, newp, npty)); -#ifdef notyet - case KERN_TTY_GID: - return (sysctl_int(oldp, oldlenp, newp, newlen, &tty_gid)); -#endif default: return (EOPNOTSUPP); } |