summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2006-01-26 01:30:34 +0000
committercognet <cognet@FreeBSD.org>2006-01-26 01:30:34 +0000
commitaff5d6bf80c7cee1d2a2e3b664554663ba72ae78 (patch)
tree781a0e3abe81e06061d092e0f9ce65e0421206c0 /sys/conf
parentc912f7e052a7a4f90c0e7de657678a40d3d13619 (diff)
downloadFreeBSD-src-aff5d6bf80c7cee1d2a2e3b664554663ba72ae78.zip
FreeBSD-src-aff5d6bf80c7cee1d2a2e3b664554663ba72ae78.tar.gz
Bring in a sysv-style pts implementation, as found in the rwatson_pts perforce branch. It works the same as its SysV/linux counterpart : You obtain a fd to the master pseudo terminal by opening /dev/ptmx, which craetes a node for the master as /dev/pty[num] and a node for the slave as /dev/pts/[num].
It should play nicely with the existing BSD ptys. By default, the system will use the BSD ptys, one can set the sysctl kern.pts.enable to 1 to make it use the new pts system. The max number of pty that can be allocated on a system can be changed with the sysctl kern.pts.max. It defaults to 1000, and can be increased, but it is not recommanded, as any pty with a number > 999 won't be handled by whatever uses utmp(5).
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/files1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/files b/sys/conf/files
index 773b690..80cc86f 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -1336,6 +1336,7 @@ kern/tty_compat.c optional compat_43tty
kern/tty_conf.c standard
kern/tty_cons.c standard
kern/tty_pty.c optional pty
+kern/tty_pts.c optional pty
kern/tty_subr.c standard
kern/tty_tty.c standard
kern/uipc_accf.c optional inet
OpenPOWER on IntegriCloud