On Mon, 12 Jan 2026 at 06:26, <[email protected]> wrote:
> On Sun, Jan 11, 2026, at 6:24 PM, Paul Eggert wrote:
> > "ed" doesn't do that. It treats directories just like regular file
> Weren't directories readable in the old (e.g. version 6 or 7 Bell Labs Unix) 
> days ... one could see the directory entries with their binary encoded inode 
> numbers and directory entry names using plain open(2) and read(2) system 
> calls, right?

Yes. A quick look on the GCC Compile Farm shows this is still true on
NetBSD with the FFS and MSDOS filesystems (but pseudo filesystems
tmpfs, kernfs, ptyfs and procfs fail "Is a directory") and on AIX with
all the FS I could find (JFS2, procfs and ahafs, another pseudo).

   M

Reply via email to