lkml.org 
[lkml]   [2001]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [CFT][PATCH] large /proc/mounts and friends
    On Mon, Oct 15, 2001 at 09:01:17PM -0700, Linus Torvalds wrote:

    But you're probably right that it doesn't really matter, and as we
    really have "pipe" semantics we might as well dis-allow any lseek
    except to the beginning (I know that there have been apps out
    there that avoid re-opening /proc files by lseek'ing to zero and
    re-reading - they may not be common enough to matter, though).

    I always wondered why for a number of /proc entries that aren't really
    files why we don't simply expose them as pipes as opposed to
    zero-length files? Surely that will confuse fewer user-land programs
    as well and feeling more technically correct?



    --cw
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:08    [W:0.022 / U:47.352 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site