lkml.org 
[lkml]   [2000]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: getting more that 4K out of a proc file?
Hi,

On Thu, 17 Feb 2000 13:07:08 +0100 (MET), Werner Almesberger
<almesber@lrc.di.epfl.ch> said:

> IMHO, seeking to non-zero positions in /proc is a little bogus anyway,
> because many files have sufficiently variable content that you can't
> really tell where you might end up.

> Would be nice if once could flag /proc as non-seekable and make them
> appear as pipes, though.

Seeking to zero should always be allowed. Seeking elsewhere is of value
in certain cases, but seeking to the start allows rereading of a file
for fresh stats without having to do an open/close cycle.

--Stephen

-
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/

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