From owner-cvs-all@FreeBSD.ORG Thu Jan 26 01:30:34 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D872E16A420; Thu, 26 Jan 2006 01:30:34 +0000 (GMT) (envelope-from cognet@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5542643D55; Thu, 26 Jan 2006 01:30:34 +0000 (GMT) (envelope-from cognet@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k0Q1UY2j009667; Thu, 26 Jan 2006 01:30:34 GMT (envelope-from cognet@repoman.freebsd.org) Received: (from cognet@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k0Q1UY1j009666; Thu, 26 Jan 2006 01:30:34 GMT (envelope-from cognet) Message-Id: <200601260130.k0Q1UY1j009666@repoman.freebsd.org> From: Olivier Houchard Date: Thu, 26 Jan 2006 01:30:34 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/conf files src/sys/kern tty_pts.c tty_pty.c src/sys/sys ttycom.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2006 01:30:35 -0000 cognet 2006-01-26 01:30:34 UTC FreeBSD src repository Modified files: sys/conf files sys/kern tty_pty.c sys/sys ttycom.h Added files: sys/kern tty_pts.c Log: 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). Revision Changes Path 1.1086 +1 -0 src/sys/conf/files 1.1 +970 -0 src/sys/kern/tty_pts.c (new) 1.142 +54 -7 src/sys/kern/tty_pty.c 1.24 +1 -1 src/sys/sys/ttycom.h