lkml.org 
[lkml]   [1998]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: size of files in /proc
    Thus, C. Scott Ananian spake...
    > contents, which is hardly efficient). Thus, a reported size of 0 is
    > preferable. That way, if you rely on reading the file size, you will
    > *always* get wrong results. This makes buggy programs obvious and
    > repeatable, which is much preferable to covering up the problem.

    I know FIFOs do not pass stuff over nfs, but is something possible on
    the lines of reporting *all* files in /proc as FIFOs, so you anyway
    don't know in advance how much data you're going to read, and are forced
    to read till EOF. Or maybe all files can pose as character device
    drivers, with an entire set of device numbers. Anything to keep the size
    a mystery.. ?

    -- Sitaram Iyer <sitaram.iyer@usa.net>

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu

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