From: David Presotto <presotto@closedmind.org>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] seeking for the truth
Date: Thu, 12 Feb 2004 13:10:15 -0500 [thread overview]
Message-ID: <edfa0746b7e619f12cc12e3844f726da@plan9.bell-labs.com> (raw)
In-Reply-To: <3b828656ea8bbad209d8a8a91f883860@vitanuova.com>
[-- Attachment #1: Type: text/plain, Size: 119 bytes --]
It's true of qio files in general, including pipes.
I've used it often to know how much I can read without blocking.
[-- Attachment #2: Type: message/rfc822, Size: 1977 bytes --]
From: rog@vitanuova.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] seeking for the truth
Date: Thu, 12 Feb 2004 18:10:18 0000
Message-ID: <3b828656ea8bbad209d8a8a91f883860@vitanuova.com>
> > simpler might be: seekable = seek(fd, 0, 2) > 0;
>
> now you're talking.
pity it doesn't work on /net/tcp/0/data.
but i always thought that using the file size for "amount of unbuffered data"
was a nasty thing to do... does anything actually use that property?
next prev parent reply other threads:[~2004-02-12 18:10 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-12 13:48 [9fans] Strange boot behaviour Lucio De Re
2004-02-12 14:35 ` David Presotto
2004-02-12 16:16 ` [9fans] seeking for the truth rog
2004-02-12 16:32 ` David Presotto
2004-02-12 17:10 ` rog
2004-02-12 16:50 ` Dave Lukes
2004-02-12 16:59 ` Rob Pike
2004-02-12 17:03 ` Fco.J.Ballesteros
2004-02-12 17:17 ` Charles Forsyth
2004-02-12 17:22 ` Charles Forsyth
2004-02-12 18:00 ` rob pike, esq.
2004-02-12 18:05 ` Charles Forsyth
2004-02-12 18:10 ` rog
2004-02-12 18:10 ` David Presotto [this message]
2004-02-12 17:26 ` Fco.J.Ballesteros
2004-02-12 17:35 ` Dave Lukes
2004-02-12 20:19 ` boyd, rounin
2004-02-13 6:15 ` [9fans] Strange boot behaviour Lucio De Re
2004-02-13 12:58 ` Lucio De Re
2004-02-14 21:49 ` David Presotto
2004-02-16 5:52 ` Lucio De Re
2004-02-16 6:39 ` Lucio De Re
2004-02-16 9:22 ` Lucio De Re
2004-02-17 15:20 ` Lucio De Re
2004-02-12 18:19 [9fans] seeking for the truth David Presotto
2004-02-12 18:30 ` rog
2004-02-12 18:27 ` David Presotto
2004-02-12 20:30 ` boyd, rounin
2004-02-14 22:47 ` Scott Schwartz
2004-02-16 20:10 ` rog
2004-02-17 4:47 ` boyd, rounin
2004-02-12 19:00 David Presotto
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=edfa0746b7e619f12cc12e3844f726da@plan9.bell-labs.com \
--to=presotto@closedmind.org \
--cc=9fans@cse.psu.edu \
/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).