home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
std_unix
/
v21
/
138
< prev
next >
Wrap
Internet Message Format
|
1990-12-05
|
2KB
From std-unix-request@uunet.uu.net Fri Sep 28 00:31:11 1990
Received: from cs.utexas.edu by uunet.uu.net (5.61/1.14) with SMTP
id AA27875; Fri, 28 Sep 90 00:31:11 -0400
Posted-Date: 27 Sep 90 17:08:13 GMT
Received: by cs.utexas.edu (5.64/1.76)
From: tct!chip@cs.utexas.edu (Chip Salzenberg)
Newsgroups: comp.std.unix
Subject: Re: Standards Update, IEEE 1003.4: Real-time Extensions
Message-Id: <550@usenix.ORG>
References: <523@usenix.ORG> <539@usenix.ORG> <541@usenix.ORG>
Sender: jsq@usenix.ORG
Organization: Teltronics/TCT, Sarasota, FL
X-Submissions: std-unix@uunet.uu.net
Date: 27 Sep 90 17:08:13 GMT
Reply-To: std-unix@uunet.uu.net
To: std-unix@uunet.uu.net
Submitted-by: chip@tct.uucp (Chip Salzenberg)
According to brnstnd@kramden.acf.nyu.edu (Dan Bernstein):
>The underlying principle is that everything is a file *descriptor*.
No one disputes the significance of file descriptors.
Nevertheless, it is important not to underestimate the simplification
gained by using one namespace for all objects -- files, devices,
processes, hosts, IPC entities, etc. A filesystem is good for files,
but a namespace is good for everything. And if an object has a name,
and you want a file descriptor referring to that object, why invent a
new system call? I'd rather continue using open().
>In reality, you initiate a network stream connection in two stages.
>First you send off a request, which wends its way through the network.
>*Some time later*, the response arrives.
This situation is easily modeled with open() and O_NDELAY. Compare
the way Unix opens a modem control tty. Normally, the open() call
will block until the carrier detect line is asserted. However, the
O_NDELAY parameter to open() avoid the blockage.
Likewise, an open() on a TCP connection would block until the
connection succeeds or fails. However, the O_NDELAY parameter would
allow the program to continue immediately, with provisional status of
"success". The program could come back and check on the open() status
later, perhaps with an fcntl() call.
Devices are well-entrenched residents of the filesystem namespace. So
far, all proposed reasons for keeping network connections out of the
filesystem would apply equally to devices. Do we really want to leave
the filesytem free of everything except files? That way lay CP/M.
--
Chip Salzenberg at Teltronics/TCT <chip@tct.uucp>, <uunet!pdn!tct!chip>
Volume-Number: Volume 21, Number 138