summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2008-01-23 17:59:27 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2008-01-23 17:59:27 +0000
commitbf7fee82b033ebb1e64d91463e19078f4b5eca35 (patch)
tree95fbc3e2b5fa25c4410e10e0939775fe52334437 /lib/libc
parent5394cc771da8b4bfa5e0db0b640d51ba4b697743 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdlib/grantpt.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/libc/stdlib/grantpt.c b/lib/libc/stdlib/grantpt.c
index 1d67607ec3d1..6e79935b3ade 100644
--- a/lib/libc/stdlib/grantpt.c
+++ b/lib/libc/stdlib/grantpt.c
@@ -58,15 +58,13 @@ __FBSDID("$FreeBSD$");
#define PTYM_PREFIX "pty" /* pty(4) master naming convention */
#define PTYS_PREFIX "tty" /* pty(4) slave naming convention */
-#define PTMXM_PREFIX "ptc/" /* pts(4) master naming convention */
#define PTMXS_PREFIX "pts/" /* pts(4) slave naming convention */
#define PTMX "ptmx"
/*
* The following are range values for pseudo TTY devices. Pseudo TTYs have a
- * name of /dev/[pt]ty[l-sL-S][0-9a-v], yielding 256 combinations per major.
+ * name of /dev/[pt]ty[l-sL-S][0-9a-v].
*/
-#define PTY_MAX 256
#define PTY_DEV1 "pqrsPQRSlmnoLMNO"
#define PTY_DEV2 "0123456789abcdefghijklmnopqrstuv"
@@ -75,15 +73,6 @@ __FBSDID("$FreeBSD$");
*/
#define _PATH_PTCHOWN "/usr/libexec/pt_chown"
-/*
- * ISPTM(x) returns 0 for struct stat x if x is not a pty master.
- * The bounds checking may be unnecessary but it does eliminate doubt.
- */
-#define ISPTM(x) (S_ISCHR((x).st_mode) && \
- minor((x).st_rdev) >= 0 && \
- minor((x).st_rdev) < PTY_MAX)
-
-
#if 0
int
__use_pts(void)