summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/grantpt.c4
1 files changed, 4 insertions, 0 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;