🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.unix
Article #586

Re: Standards Update, IEEE 1003.4: Real-time Extensions

#586
From: Peter da Silva
Date: Sat, 29 Sep 1990 17:07
46 lines
2482 bytes
Submitted-by: peter@ficc.ferranti.com (Peter da Silva)

In article <548@usenix.ORG> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes:
> I disagree. I consider it an excellent example of how the designers of
> UNIX realize that all *reliable*, *static*, *local* (or virtually local)
> I/O objects potentially visible to more than one process belong in the
> filesystem namespace.

Like "/dev/tty"? I think you've got some semantic gap here between what's
appropriate for a file versus what's appropriate for a file descriptor. An
arbitrary failure on an open file descriptor causes problems... but that
doesn't keep socket() from returning an fd. An arbitrary failure or an
arbitrary delay on an open call is perfectly reasonable: programs expect
open to fail. They depend on write() working.

And serial lines are subject to all the "hazardous" behaviour of network
connections. An open can be indefinitely deferred. The connection, especially
over a modem, can vanish at any time. Why not take *them* out of the namespace
as well?

> You can read() or
> write() reasonable I/O objects through file descriptors. Very few
> programs---the shell is a counterexample---need to worry about what it
> takes to set up those file descriptors.

And that's the problem, because the shell is the program that is used to
create more file descriptors than just about anything else. If the shell
had a syntax for creating sockets and network connections we wouldn't be
having this discussion... but then if it did then you might as well make
it be via filenames...

And look where this discussion started... over shared memory and messages
and semaphores being in a separate namespace. But shared memory and message
ports are all:

	reliable,
	static,
	and local...

at least as much as processes.
-- 
Peter da Silva.   `-_-'
+1 713 274 5180.   'U`
peter@ferranti.com

Volume-Number: Volume 21, Number 150
Technical Details
Message-ID: <106697@uunet.UU.NET>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!jsq
References: <495@usenix.ORG> <523@usenix.ORG> <529@usenix.ORG> <548@usenix.ORG>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!jsq
From: peter@ficc.ferranti.com (Peter da Silva)
Newsgroups: comp.std.unix
Subject: Re: Standards Update, IEEE 1003.4: Real-time Extensions
Message-ID: <106697@uunet.UU.NET>
Date: 29 Sep 90 17:07:37 GMT
References: <495@usenix.ORG> <523@usenix.ORG> <529@usenix.ORG> <548@usenix.ORG>
Sender: jsq@uunet.UU.NET
Reply-To: peter@ficc.ferranti.com (Peter da Silva)
Organization: Xenix Support, FICC
Lines: 46
Approved: jsq@uunet.uu.net (Moderator, John S. Quarterman)
X-Submissions: std-unix@uunet.uu.net