diff options
-rw-r--r-- | lib/libc/stdlib/grantpt.c | 4 | ||||
-rw-r--r-- | lib/libutil/pty.c | 4 | ||||
-rw-r--r-- | sys/conf/files | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/lib/libc/stdlib/grantpt.c b/lib/libc/stdlib/grantpt.c index f6f31b261301..eaa96e818fc2 100644 --- a/lib/libc/stdlib/grantpt.c +++ b/lib/libc/stdlib/grantpt.c @@ -91,6 +91,7 @@ is_pts(int fd) return (_ioctl(fd, TIOCGPTN, &nb) == 0); } +#if 0 int __use_pts(void) { @@ -109,6 +110,7 @@ __use_pts(void) } return (use_pts); } +#endif /* * grantpt(): grant ownership of a slave pseudo-terminal device to the @@ -212,10 +214,12 @@ posix_openpt(int oflag) if (oflag & ~(O_RDWR | O_NOCTTY)) errno = EINVAL; else { +#if 0 if (__use_pts()) { fildes = _open(_PATH_DEV PTMX, oflag); return (fildes); } +#endif mc1 = master + strlen(_PATH_DEV PTM_PREFIX); mc2 = mc1 + 1; diff --git a/lib/libutil/pty.c b/lib/libutil/pty.c index c94ce9926c78..79bb88e61363 100644 --- a/lib/libutil/pty.c +++ b/lib/libutil/pty.c @@ -49,6 +49,7 @@ static char sccsid[] = "@(#)pty.c 8.3 (Berkeley) 5/16/94"; #include <termios.h> #include <unistd.h> +#if 0 int __use_pts(void); static int @@ -90,6 +91,7 @@ new_openpty(int *amaster, int *aslave, char *name, struct termios *termp, return (0); } +#endif int openpty(int *amaster, int *aslave, char *name, struct termios *termp, struct winsize *winp) @@ -99,8 +101,10 @@ openpty(int *amaster, int *aslave, char *name, struct termios *termp, struct win int master, slave, ttygid; struct group *gr; +#if 0 if (__use_pts()) return (new_openpty(amaster, aslave, name, termp, winp)); +#endif if ((gr = getgrnam("tty")) != NULL) ttygid = gr->gr_gid; diff --git a/sys/conf/files b/sys/conf/files index 1c33c5b2b9c9..b25f40edae95 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -1519,7 +1519,7 @@ kern/tty.c standard kern/tty_compat.c optional compat_43tty kern/tty_conf.c standard kern/tty_cons.c standard -kern/tty_pts.c optional pty +#kern/tty_pts.c optional pty kern/tty_pty.c optional pty kern/tty_subr.c standard kern/tty_tty.c standard |