lkml.org 
[lkml]   [2007]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch] add file position info to proc
    On Tue, 27 Mar 2007 21:24:20 +0000
    Pavel Machek <pavel@ucw.cz> wrote:

    > Hi!
    >
    > > From: Miklos Szeredi <mszeredi@suse.cz>
    > >
    > > This patch adds support for finding out the current file position,
    > > open flags and possibly other info in the future.
    > >
    > > These new entries are added:
    > >
    > > /proc/PID/fdinfo/FD
    > > /proc/PID/task/TID/fdinfo/FD
    > >
    > > For each fd the information is provided in the following format:
    > >
    > > pos: 1234
    > > flags: 0100002
    >
    > Octal? Maybe we should use more traditional hex here?

    Good point. The O_foo flags are per-arch, so this field has the potential
    to be subtly different on different architectures, which is unpleasing.

    > Or even list flags by name?

    urg. Simple enough to do (lookup table, please). But is it worth it?
    Perhaps just remove that field?
    -
    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: 2007-03-27 23:39    [W:0.023 / U:0.120 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site