diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2007-12-06 10:15:29 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2007-12-06 10:15:29 +0000 |
commit | 6d80dfcee4baac5686f1c27223fa916530c3fa9d (patch) | |
tree | b1cd03a4db2c6cfce3bcb4e867f2be32f2537ed4 /lib/libc/stdlib | |
parent | 2fe10c0994a45f564c0d526cac1e881ea73ed6d9 (diff) |
Notes
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r-- | lib/libc/stdlib/grantpt.c | 4 |
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; |