LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Miklos Szeredi <miklos@szeredi.hu>
To: pavel@ucw.cz
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org
Subject: Re: [patch] add file position info to proc
Date: Wed, 28 Mar 2007 01:05:34 +0200	[thread overview]
Message-ID: <E1HWKjO-0005FW-00@dorka.pomaz.szeredi.hu> (raw)
In-Reply-To: <20070327223324.GB6752@elf.ucw.cz> (message from Pavel Machek on Wed, 28 Mar 2007 00:33:24 +0200)

> > > > > For each fd the information is provided in the following format:
> > > > > 
> > > > > pos:	1234
> > > > > flags:	0100002
> > > > 
> > > > Octal? Maybe we should use more traditional hex here?
> > 
> > It's octal in <fcntl.h>, so it's easier for a human to read.
> > 
> > > 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?
> > 
> > I wouldn't mind.  But leaving it to an application or for a human to
> > sort out is OK I guess.  There are lots of non-portable numbers in
> > proc.
> 
> Hmm, I do not think we want non-portable numbers in proc. What are
> other examples?

Signal masks in PID/status for example.  I'm sure there are others.

Miklos

      reply	other threads:[~2007-03-27 23:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-24 22:04 Miklos Szeredi
2007-03-25 23:45 ` Andrew Morton
2007-03-26  0:05   ` Neil Brown
2007-03-26  9:41   ` Folkert van Heusden
2007-03-27 21:55   ` Dave Hansen
2007-03-27  0:45 ` Andrew Morton
2007-03-27  7:08   ` Miklos Szeredi
2007-03-27  7:35     ` Andrew Morton
2007-03-27 21:24 ` Pavel Machek
2007-03-27 21:33   ` Jörn Engel
2007-03-27 21:36   ` Andrew Morton
2007-03-27 21:43     ` Miklos Szeredi
2007-03-27 22:33       ` Pavel Machek
2007-03-27 23:05         ` Miklos Szeredi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1HWKjO-0005FW-00@dorka.pomaz.szeredi.hu \
    --to=miklos@szeredi.hu \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --subject='Re: [patch] add file position info to proc' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).