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

H. Peter Anvin (hpa@transmeta.com)
26 Dec 1998 21:32:50 GMT


Followup to: <199812241557.MAA01181@sleipnir.valparaiso.cl>
By author: Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
In newsgroup: linux.dev.kernel
>
> "James H. Cloos Jr." <cloos@jhcloos.com> said:
>
> > Nope. Fuzzy Fox <fox@dallas.net> had it right; reading from /dev/full
> > is the same as reading from /dev/zero:
>
> Irrelevant for the original purpose. /dev/null is _guaranteed_ to be there,
> /dev/zero almost always is, /dev/full isn't normally found. And for the
> purpose of writing scripts/programs the only generally usefull one is
> /dev/null.
>
> Please don't forget portability, there are non-linux systems out there.
>

/dev/zero is generally useful.

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables

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