Geoffrey Broadwell wrote:
Jonathan Lang wrote:
> Also: why distinguish between "open" and "opendir"?  If the string is
> the name of a file, 'open' means "open the file"; if it is the name of
> a directory, 'open' means "open the directory".  If it's the name of a
> pipe, it opens the pipe.  And so on.

As long as you still have some way to reach the low-level opens --
though it's an odd thing to do (except perhaps in a disk integrity
checker), there's no fundamental reason why you shouldn't be able to
actually look at the bytes that happen to represent a directory
structure on disk.

It wouldn't be hard to allow .openfile, .opendir, and .openpipe as
well as .open.

--
Jonathan "Dataweaver" Lang

Reply via email to