*BSD News Article 88789


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!lucy.swin.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!news.kei.com!news.mathworks.com!fu-berlin.de!news.gtn.com!klemm.gtn.com!usenet
From: andreas@klemm.gtn.com (Andreas Klemm)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Adding pseudo-ttys
Date: 9 Feb 1997 20:20:49 GMT
Organization: FreeBSD makes fun
Lines: 45
Message-ID: <5dlbj1$h10@klemm.gtn.com>
References: <32FE0E96.41C67EA6@interlog.com>
NNTP-Posting-Host: klemm.gtn.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
To: Allen Stowe <astowe@interlog.com>
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:35252

[Posted and mailed]

In article <32FE0E96.41C67EA6@interlog.com>,
	Allen Stowe <astowe@interlog.com> writes:
> Hi all,
> 
> I am trying to add some pseudo-ttys to the system(2.1.6) and keep
> getting the following error when issuing makedev:
> 
> cd /dev			<<< Change to /dev
> ./MAKEDEV pty128	<<< create 128 pty/tyy's
> bad unit for pty in: pty128	<<< following error results

Look into the MAKEDEV script.

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;;  
        # This still leaves [tuTU].
        *) echo bad unit for pty in: $i;;
        esac
        case $class in
        0|1|2|3|4|5|6|7)
                umask 0

You can do a 
	sh MAKEDEV pty0 pty1 pty2 ... and such

watch the results afterwards !


-- 
andreas@klemm.gtn.com         /\/\___      Wiechers & Partner Datentechnik GmbH
   Andreas Klemm          ___/\/\/         Support Unix -- andreas.klemm@wup.de
pgp p-key  http://www-swiss.ai.mit.edu/~bal/pks-toplev.html  >>> powered by <<<
ftp://sunsite.unc.edu/pub/Linux/system/Printing/aps-491.tgz  >>>    FreeBSD <<<