Messages in this thread | | | Subject | Re: Reading empty file (was: Re: /dev/full) | Date | Thu, 24 Dec 1998 13:19:39 -0400 | From | Horst von Brand <> |
| |
Fuzzy Fox <fox@dallas.net> said:
[...]
> 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. :)
Nope.
Write to /dev/null if you want to throw it away, read from /dev/null if you want an empty file.
mmap(2)/read /dev/zero for a unlimited supply of zero bytes
Write to /dev/full for an error like "disk full" -- Horst von Brand vonbrand@sleipnir.valparaiso.cl Casilla 9G, Viña del Mar, Chile +56 32 672616
- 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/
| |