lkml.org 
[lkml]   [1999]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: sed not working on /proc files
On Mon, 26 Apr 1999, David B. Rees wrote:

> On 27-Apr-99 Richard B. Johnson wrote:
> > If everything seems to work okay, then ask Linus. It's his code. There
> > is zero overhead to making such a phony size, but, as I said, it's
> > Linus' code. He may have a good reason for zero-length files.
>
> So what happens if the length of a /proc file is bigger than 1000 bytes?
>
> Programs which expect it to be only 1000 bytes will not read all the data.
> Seems like a hack, to me.
>

Well it is a 'hack' as you say. However, there (presently) doesn't seem
to be anything that has more than about 900 bytes of text in them. Also,
most tools will read until EOF (no more data), ignoring the file size so
the file-size doesn't limit it.


Cheers,
Dick Johnson
***** FILE SYSTEM WAS MODIFIED *****
Penguin : Linux version 2.2.6 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.


-
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:51    [W:0.090 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site