9front - general discussion about 9front
 help / color / mirror / Atom feed
From: nicolagi@sdf.org
To: 9front@9front.org
Subject: Re: [9front] /proc/n/fd format clarification
Date: Sat, 5 Jun 2021 21:58:08 +0000
Message-ID: <YLvzcCZH3K/bbpoG@SDF.ORG> (raw)
In-Reply-To: <CAHtSCHJi2LtJBcos6JjeEpSSypspnPABazS10wHH_nQgDirFVw@mail.gmail.com>

On Sat, Jun 05, 2021 at 09:26:16AM -0400, binary cat wrote:
[snip]
> So this mentions 3 things, a path, a version, and a type. This
> checks out, until you look at the supposed lengths. The path is
> supposed to be 8 bytes, which would be 16 hex digits, that's ok,
> but it says 4 bytes for the version, which would be 8 hex digits,
> and we don't see anything like that here. What's going on here?

It's just that the version isn't written in full, leading zeros are removed.
I'm not looking at 9front right now, but devproc.c in sys/src/9/port in 4e.
Grep for procqidwidth.
(I was a bit curious so I looked this up!)
I suspect version numbers never go up much in practice.
Paths are sometimes hashes of pathnames in implementations I've seen,
they're not counters, so I guess that's why they're not trimmed.
I'll let the experts set me straight now. :-)

HTH,
Nic

  parent reply	other threads:[~2021-06-05 22:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-05 13:26 binary cat
2021-06-05 21:04 ` [9front] " Anthony Martin
2021-06-05 21:58 ` nicolagi [this message]
2021-06-07 17:16   ` [9front] " binary cat
2021-06-07 23:37     ` ori
2021-06-07 23:46     ` Anthony Martin
2021-06-09 21:24       ` binary cat

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=YLvzcCZH3K/bbpoG@SDF.ORG \
    --to=nicolagi@sdf.org \
    --cc=9front@9front.org \
    /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

9front - general discussion about 9front

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/9front

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 9front 9front/ http://inbox.vuxu.org/9front \
		9front@9front.org
	public-inbox-index 9front

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.9front


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git