9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "James A. Robinson" <jimr@highwire.stanford.edu>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] reading addr always returns #0,#0?
Date: Mon,  2 Sep 2013 08:25:30 -0700	[thread overview]
Message-ID: <CAPd04b4XFa+PRtZot8g8dwN2Ad=Nc0ncD-11WKSefJmVS=-AsQ@mail.gmail.com> (raw)
In-Reply-To: <1909624.IyeLYgNJ9F@coil>

[-- Attachment #1: Type: text/plain, Size: 868 bytes --]

Thank you both for the explanation!


On Mon, Sep 2, 2013 at 3:38 AM, dexen deVries <dexen.devries@gmail.com>wrote:

> On Monday 02 of September 2013 14:13:56 Alexander Sychev wrote:
> > The problem is the "addr" file is closed between your calls. When you
> open
> > the "addr" file next time, an internal address is set to 0,0.
> > But after the writing the address is actual and if you read "data" file
> you
> > will see the text according to your address.
> >
> > I you write the code on C or Go without a closing a descriptor of "addr"
> > file, everything will be ok :-)
>
>
> or use 9p rdwr:
>
>
> echo -n , | 9p write acme/2/addr
> echo 'dot=addr' | 9p rdwr acme/2/ctl
>
> --
> dexen deVries
>
> [[[↓][→]]]
>
> Take care of the luxuries and the necessities will take care of themselves.
>                 -- L. Long
>
>
>

[-- Attachment #2: Type: text/html, Size: 1401 bytes --]

      reply	other threads:[~2013-09-02 15:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-31 17:23 James A. Robinson
2013-08-31 17:29 ` James A. Robinson
2013-09-02 10:13   ` Alexander Sychev
2013-09-02 10:38     ` dexen deVries
2013-09-02 15:25       ` James A. Robinson [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='CAPd04b4XFa+PRtZot8g8dwN2Ad=Nc0ncD-11WKSefJmVS=-AsQ@mail.gmail.com' \
    --to=jimr@highwire.stanford.edu \
    --cc=9fans@9fans.net \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).