Re: sed not working on /proc files

Jeremy Fitzhardinge (jeremy@goop.org)
Mon, 26 Apr 1999 15:12:41 -0700 (PDT)


On 26-Apr-99 Stefan Monnier wrote:
> open("/proc/meminfo", O_RDONLY) = 3
> fstat(3, {st_mode=0, st_size=0, ...}) = 0
> mmap(0, 0, PROT_READ, MAP_PRIVATE, 3, 0) = 0

This is the problem. It stats the file, mmaps 0 bytes from it and finishes
with no action. Presumeably if the mmap failed or stat said the file isn't a
regular file it would use normal read.

J

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