From owner-freebsd-questions Thu Dec 21 23:21:52 2000 From owner-freebsd-questions@FreeBSD.ORG Thu Dec 21 23:21:48 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id E45EF37B400 for ; Thu, 21 Dec 2000 23:21:47 -0800 (PST) Received: from [195.11.243.26] (helo=Debug) by post.mail.nl.demon.net with smtp (Exim 3.14 #4) id 149MWQ-000EAN-00; Fri, 22 Dec 2000 07:21:46 +0000 To: Andy Farkas , Jimmy Thomson , freebsd-questions@FreeBSD.ORG From: Cliff S. Subject: Re: pty's? Date: Fri, 22 Dec 2000 07:21:46 GMT X-Mailer: www.webmail.nl.demon.net X-Sender: postmaster@btvs.demon.nl X-Originating-IP: 192.250.24.58 Message-Id: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > On Thu, 21 Dec 2000, Jimmy Thomson wrote: > > > On Fri, 22 Dec 2000, Andy Farkas wrote: > > > It looks to me like /dev/MAKEDEV can make a maximum of 256 pty's by saying > > > > > > # cd /dev > > > # /bin/sh MAKEDEV pty7 > > > > > > (yes, the '7' seems a bit confusing to me too...) > > > > > > > MAKEDEV pty7??? > > > > Anyone have any clue what the heck that does? > > As I said, it makes 256 ptys. Sheesh. Well, I for one could think of a slightly better engineered interface. It could hardly be called intuitive that a parameter of pty7 makes 256 ptys. Maybe pty256 would be cuter :). Then again... My Xmas 2 cents (dutch) worth.. Cliff > > /dev/MAKEDEV has this in it: > > pty*) > class=`expr $i : 'pty\(.*\)'` > case $class in > 0) offset=0 name=p;; > 1) offset=32 name=q;; > 2) offset=64 name=r;; > 3) offset=96 name=s;; > # Note that xterm (at least) only look at p-s. > 4) offset=128 name=P;; > 5) offset=160 name=Q;; > 6) offset=192 name=R;; > 7) offset=224 name=S;; > > Which means that: > > # /bin/sh MAKEDEV pty0 - will make 32 ptys > # /bin/sh MAKEDEV pty1 - will make 64 ptys > # /bin/sh MAKEDEV pty2 - will make 96 ptys > # /bin/sh MAKEDEV pty3 - will make 128 ptys > # /bin/sh MAKEDEV pty4 - will make 160 ptys > # /bin/sh MAKEDEV pty5 - will make 192 ptys > # /bin/sh MAKEDEV pty6 - will make 224 ptys > # /bin/sh MAKEDEV pty7 - will make 256 ptys > > Hope this helps. > > -- > > :{ andyf@speednet.com.au > > Andy Farkas > System Administrator > Speednet Communications > http://www.speednet.com.au/ > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message