From: dexen deVries <dexen.devries@gmail.com>
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 12:38:26 +0200 [thread overview]
Message-ID: <1909624.IyeLYgNJ9F@coil> (raw)
In-Reply-To: <CAPavXpDf5UkYt-otEhxuW1ahh3XOFLuwduKAvn5TV5bHzB2mdg@mail.gmail.com>
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
next prev parent reply other threads:[~2013-09-02 10:38 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 [this message]
2013-09-02 15:25 ` James A. Robinson
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=1909624.IyeLYgNJ9F@coil \
--to=dexen.devries@gmail.com \
--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).