lkml.org 
[lkml]   [1998]   [Dec]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: Reading empty file (was: Re: /dev/full)
    Date
    From
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:46    [W:3.050 / U:0.140 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site