lkml.org 
[lkml]   [1996]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject/proc st_size

[ i admittedly have a quite old version of "cat", so this mail might just
be plain noise ]

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



\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.621 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site