Re: If we cannot change file system semantics, we must concede that Bill Gates is right that Linux c

Pavel Machek (pavel@bug.ucw.cz)
Thu, 1 Jul 1999 22:13:12 +0200


Hi!

> open("/etc/", O_RDONLY) then, I don't get your point.

But what do you think ls does when listing directory?

stat("/etc/", {st_mode=0, st_size=0, ...}) = 0
open("/etc/", O_RDONLY|O_NONBLOCK) = 3
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
brk(0x8055000) = 0x8055000

And ls would probably be very unhappy if it got some kind of
index.html file instead of listing.

Pavel

> > > With the user library translating that to open("/etc/..body", O_RDWR)

Why is it better than user doing open("/etc..body") directly? Or
open("/etc#body") for that case :-)

-- 
I'm really pavel@ucw.cz. Look at http://195.113.31.123/~pavel.  Pavel
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/