Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!husc6!rutgers!labrea!aurora!ames!sdcsvax!ucbvax!unisoft!greywolf From: greywolf@unisoft.UUCP (R-O-A-N, diacritical (two dots) over the O.) Newsgroups: comp.unix.wizards Subject: Re: Large machines and tty naming conventions. Message-ID: <543@unisoft.UUCP> Date: Tue, 8-Sep-87 18:34:45 EDT Article-I.D.: unisoft.543 Posted: Tue Sep 8 18:34:45 1987 Date-Received: Thu, 10-Sep-87 02:17:13 EDT References: <8550@brl-adm.ARPA> <6200@brl-smoke.ARPA> <382@altos86.UUCP> <868@mcgill-vision.UUCP> <8106@think.UUCP> Reply-To: greywolf@unisoft.UUCP (R-O-A-N, diacritical (two dots) over the O.) Organization: UniSoft Corp., Emeryville, CA Lines: 37 >>That is, looking up /dev/tty/p3 is no faster than looking up >>/dev/ttyp3, since both of them have to search through /dev. I don't believe that is the case. Looking up /dev/ttyp3 has to look through /dev (i.e. opendir("/dev"); look(); puke(); etc...) which contains things like tty??, [r]hp??, [r]ud??, pty??, null, and other such devices, whereas putting all the ttys in /dev/tty (and the like), it only has to look at a fraction of what it would look at if everything is in /dev directly with no subdirectories. To the best of my knowledge it doesn't involve nearly as much time to opendir("/foo/bar") and search for component blurfl as it would doing opendir("/foo/barblurfl") with everything on one single level. It isn't as though you have to call a seekdir on /dev to find directory (/dev)/tty. I could be wrong... Of course, what happens to /dev/tty (the device) if it were to be made into a directory? Would we use /dev/tty/tty or what? ------------------------------------------------------------------------------- /harley/davidson: Mount device busy. ------------------------------------------------------------------------------- NOTA BENE: The views expressed in this posting are NOT those of Unisoft, They are those of the poster, who may not be aware of everything the company is doing. Roan Anderson UniSoft Corporation ...{ucbvax,amdahl,sun}!unisoft!greywolf (415) 420-6400