when i do the following:
linux:> cat /proc
cat: /proc: Invalid argument
linux:> cat /usr
cat: /usr: Is a directory
The problem seems to be with "cat", it cant handle 0 st_size directories:
for /proc --> fstat(3, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
for /usr --> fstat(3, {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
is it legal for /proc to be st_size=0 ? [isn't fstat() some Posix thing?]
-- mingo