Re: size of files in /proc

Eugene Mamchits (
Thu, 14 May 1998 14:46:37 +0400

On Wed, May 13, 1998 at 10:19:15PM +0400, Khimenko Victor wrote:
> 13-May-98 15:24 you wrote:
> > Hi,
> >
> > I just had a simple idea -- why don't we enhance the files in /proc to report non-zero size when the size
> > of output is known in advance, which is probably (almost?) always the case.
> >
> This is not right. Really counting size of such files could be relatively
> expensive operation. And why really this size must be not 0 ? If you want
> to know fo sure just read from there !

I think it may be better to set mode S_ISFIFO for these files in this case.

Eugene Mamchits

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to