*BSD News Article 28749


Return to BSD News archive

Xref: sserve comp.unix.wizards:32253 comp.unix.bsd:13654 comp.os.386bsd.development:1954
Path: sserve!newshost.anu.edu.au!munnari.oz.au!foxhound.dsto.gov.au!fang.dsto.gov.au!yoyo.aarnet.edu.au!news.adelaide.edu.au!news.cs.su.oz.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!news.cac.psu.edu!news.pop.psu.edu!news.pop.psu.edu!not-for-mail
From: tls@panix.com (Thor Lancelot Simon)
Newsgroups: comp.unix.wizards,comp.unix.bsd,comp.os.386bsd.development
Subject: More than 256 ptys for *BSD? For SunOS?
Followup-To: comp.unix.bsd
Date: 24 Mar 1994 09:36:13 -0500
Organization: PANIX Public Access Internet and Unix, NYC
Lines: 24
Sender: barr@pop.psu.edu
Approved: barr@pop.psu.edu
Message-ID: <2mrbqq$sbf@panix2.panix.com>
NNTP-Posting-Host: bosnia.pop.psu.edu

This would appear to be impossible under the current
single-major-device-number scheme for ptys.  Is there any reason that copying
the pty stuff to another cdevsw entry et al. in conf.c won't work?  I realize
that I'll have to think of another thing to name it in the config file, to
avoid severe hackery to the configuation mechanism, and pound on the files
file et al.

I recall the NetBSD/sparc people having some trouble with their kernel having
the ptys on a different major number than SunOS 4.  Why would this happen?
Are those numbers hardcoded somewhere instead of being referenced by name?

And what do I need to pound on to make get-the-next-free-pty code work right?
I've got to confess that I don't even recall clearly how it works at all; time
to go diving in the daemon books again.

Since I've got source, I guess I'll have a go at this for NetBSD first.
Anyone know if Sun distributes enough of their kernel to do it to SunOS?  Our
four-processor sparc 10 needs more ptys a lot more than the NetBSD box on my
desk...
-- 
Thor Lancelot Simon	                                           tls@panix.COM
   But as he knew no bad language, he had called him all the names of common
  objects that he could think of, and had screamed: "You lamp!  You towel!  You
  plate!" and so on.              --Sigmund Freud