From ba2e403b7b8ebc506faaeacf1e3fc537d2ebfed5 Mon Sep 17 00:00:00 2001 From: green Date: Fri, 4 Mar 2005 20:23:32 +0000 Subject: Do not require the pty(4) majors to be anything in particular. --- lib/libc/stdlib/grantpt.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/libc/stdlib/grantpt.c') 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 #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) -- cgit v1.1