Re: Reading empty file (was: Re: /dev/full)

Fuzzy Fox (fox@dallas.net)
Thu, 24 Dec 1998 02:12:38 -0600


Marcin 'Qrczak' Kowalczyk <qrczak@knm.org.pl> wrote:
>
> Huh?! Reading from /dev/full gives the same result as reading from
> /dev/null, that is, immediate EOF. At least on 2.0.36.

In 2.0, mem.c has this:

#define read_full read_null

In 2.1, it has been changed:

#define read_full read_zero

So, it looks like everybody is right. Depends on which kernel you run. :)

The lesson here, is to use /dev/zero when you mean it, and /dev/null
when you mean it, and don't use /dev/full for anything useful. :)

-- 
   fox@dallas.net (Fuzzy Fox)      || "Nothing takes the taste out of peanut
sometimes known as David DeSimone  ||  butter quite like unrequited love."
  http://www.dallas.net/~fox/      ||                       -- Charlie Brown

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