The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] Device special files
@ 2018-02-06 15:56 ron minnich
  2018-02-06 17:56 ` Larry McVoy
  2018-02-06 19:48 ` Random832
  0 siblings, 2 replies; 32+ messages in thread
From: ron minnich @ 2018-02-06 15:56 UTC (permalink / raw)


these were in by the time I can along but I was wondering when they got it.

They've also always felt a bit like a thing that did not fit to me. I'm
pretty sure I was not alone, given that the Unix authors worked out a way
to get rid of them in later efforts. I know what came after, in Plan 9;
what came before, in Unix, that led to special files?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20180206/8c63f9d7/attachment.html>


^ permalink raw reply	[flat|nested] 32+ messages in thread
* [TUHS] Device special files
@ 2018-02-07  1:38 Noel Chiappa
  0 siblings, 0 replies; 32+ messages in thread
From: Noel Chiappa @ 2018-02-07  1:38 UTC (permalink / raw)


    > From: Greg Lehey

    >> V3 and earlier still *called* them special files, but it seems they
    >> were essentially just magic inode numbers (there was no physical file
    >> on disk, just any directory entry with the given inode would be the
    >> special file).

    > Isn't that still the case?

From reading the manual page (URL sent earlier), in V3 and before it really
was just an inode _number_ (less than 50, IIRC). The first inode, in the
first disk block after the super-block, was inode #51. This is of course
different from later Versions, where there is an _inode_ for devices, but
still no actual _file_.

	Noel



^ permalink raw reply	[flat|nested] 32+ messages in thread
* [TUHS] Device special files
@ 2018-02-09  0:09 Doug McIlroy
  0 siblings, 0 replies; 32+ messages in thread
From: Doug McIlroy @ 2018-02-09  0:09 UTC (permalink / raw)


> Why is it that umount(2) took the device special file name rather than the mount point directory name, anyway?

Symmetry. You unmount what you mount.

A competing model is that of links. Link makes an old file available
under a new name. But you unlink by the new name. Necessarily so,
because there may be many new names for one old file.

This is reminiscent of Don Norman's screed about the unnaturalness
of Unix. He didn't like strcpy because the arguments come in the
opposite order to those of cp. But stcpy is part of C, and in
C the destination of assignment comes before the source. But Norman
didn't rail at C. You pays your money and takes your choice.

Doug


^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2018-02-09  0:09 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-06 15:56 [TUHS] Device special files ron minnich
2018-02-06 17:56 ` Larry McVoy
2018-02-06 18:03   ` ron minnich
2018-02-06 19:48 ` Random832
2018-02-07  1:25   ` Greg 'groggy' Lehey
2018-02-07  1:36     ` Ron Natalie
2018-02-07  1:40       ` Clem Cole
2018-02-07  1:47         ` Henry Bent
2018-02-07  1:48     ` Dave Horsfall
2018-02-07  2:06       ` Dan Cross
2018-02-07 16:24         ` Arthur Krewat
2018-02-07 16:34           ` Dan Cross
2018-02-07 16:34           ` Nemo
2018-02-07 16:59             ` ron minnich
2018-02-08  0:39           ` Dave Horsfall
2018-02-08 16:18             ` Arthur Krewat
2018-02-08 22:47               ` Dave Horsfall
2018-02-07  2:13       ` Bakul Shah
2018-02-07  5:39         ` Dave Horsfall
2018-02-07 18:36           ` Steffen Nurpmeso
2018-02-07 19:07             ` Ian Zimmerman
2018-02-07 22:05               ` Clem Cole
2018-02-07 22:38                 ` ron minnich
2018-02-07 22:48                 ` Ron Natalie
2018-02-08 18:59                   ` Random832
2018-02-07 23:06                 ` Bakul Shah
2018-02-08 19:06               ` Steffen Nurpmeso
2018-02-07 22:04             ` Dave Horsfall
2018-02-08 13:03               ` Rafael R Obelheiro
2018-02-08 19:25               ` Steffen Nurpmeso
2018-02-07  1:38 Noel Chiappa
2018-02-09  0:09 Doug McIlroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).