summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_pts.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-08-23 20:26:09 +0000
committered <ed@FreeBSD.org>2009-08-23 20:26:09 +0000
commit3d8e6186e2a82569f4f5214f8c8af700e5e36c13 (patch)
tree22a9ea714bac9bb97ca35541c414ec1e74cc0164 /sys/kern/tty_pts.c
parent58a0303f6781cd1709bd20ac6cf407a779b27469 (diff)
downloadFreeBSD-src-3d8e6186e2a82569f4f5214f8c8af700e5e36c13.zip
FreeBSD-src-3d8e6186e2a82569f4f5214f8c8af700e5e36c13.tar.gz
Allow pty(4) to be loaded as a kld.
Unfortunately, the wrappers that are present in pts(4) don't have the mechanics to allow pty(4) to be unloaded safely, so I'm forcing this kld to return EBUSY. This also means we have to enable some extra code in pts(4) unconditionally. Proposed by: rwatson
Diffstat (limited to 'sys/kern/tty_pts.c')
-rw-r--r--sys/kern/tty_pts.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/tty_pts.c b/sys/kern/tty_pts.c
index c77cf2a..b38070a 100644
--- a/sys/kern/tty_pts.c
+++ b/sys/kern/tty_pts.c
@@ -30,14 +30,10 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_tty.h"
-
/* Add compatibility bits for FreeBSD. */
#define PTS_COMPAT
-#ifdef DEV_PTY
/* Add /dev/ptyXX compat bits. */
#define PTS_EXTERNAL
-#endif /* DEV_PTY */
/* Add bits to make Linux binaries work. */
#define PTS_LINUX
OpenPOWER on IntegriCloud