Re: sed not working on /proc files

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 4 May 1999 16:45:53 +0100 (BST)


> > Well, this breaks every program that uses libc file accesses.
> So fix the buggy libc. Relying on mmap() being available is broken

To save a thousand follow ups - the glibc code does do the right thing but
the kernel thinks any 0 length mmap succeeds and doesnt error it. So its
a kernel funny

Alan

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