diff options
author | green <green@FreeBSD.org> | 2005-03-04 20:23:32 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2005-03-04 20:23:32 +0000 |
commit | ba2e403b7b8ebc506faaeacf1e3fc537d2ebfed5 (patch) | |
tree | 40fbf9b0e753a8a9d1341a855f049aead5d590e9 /lib/libc/stdlib/grantpt.c | |
parent | 0da1664645ebc5ac4955203e8efe6c22dbc0365b (diff) | |
download | FreeBSD-src-ba2e403b7b8ebc506faaeacf1e3fc537d2ebfed5.zip FreeBSD-src-ba2e403b7b8ebc506faaeacf1e3fc537d2ebfed5.tar.gz |
Do not require the pty(4) majors to be anything in particular.
Diffstat (limited to 'lib/libc/stdlib/grantpt.c')
-rw-r--r-- | lib/libc/stdlib/grantpt.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/libc/stdlib/grantpt.c b/lib/libc/stdlib/grantpt.c index 3b7a0e9..d0cb4eb 100644 --- a/lib/libc/stdlib/grantpt.c +++ b/lib/libc/stdlib/grantpt.c @@ -54,8 +54,6 @@ __FBSDID("$FreeBSD$"); #include <unistd.h> #include "un-namespace.h" -#define PTM_MAJOR 6 /* pseudo tty master major */ -#define PTS_MAJOR 5 /* pseudo tty slave major */ #define PTM_PREFIX "pty" /* pseudo tty master naming convention */ #define PTS_PREFIX "tty" /* pseudo tty slave naming convention */ @@ -77,7 +75,6 @@ __FBSDID("$FreeBSD$"); * The bounds checking may be unnecessary but it does eliminate doubt. */ #define ISPTM(x) (S_ISCHR((x).st_mode) && \ - major((x).st_rdev) == PTM_MAJOR && \ minor((x).st_rdev) >= 0 && \ minor((x).st_rdev) < PT_MAX) |