From: erik quanstrom <quanstro@labs.coraid.com>
To: comp.os.plan9@googlegroups.com, 9fans@9fans.net
Subject: Re: [9fans] C library function that reads up to a newline
Date: Mon, 9 Jan 2012 09:18:42 -0500 [thread overview]
Message-ID: <0695a9ec118ac6f2b701ffdb42f92c77@coraid.com> (raw)
In-Reply-To: <19066037.1659.1326018719041.JavaMail.geo-discussion-forums@vbdz6>
On Mon Jan 9 04:57:17 EST 2012, faifgnu@gmail.com wrote:
> read(2) reads up to N bytes but doesn't stop on newlines. Brdline(2)
> looks like a good candidate for that. Are there any functions
> outside Bio that behave similarly?
if you're application is one where the producer is producing
a line at a time, then read(2) will read a line at a time; plan 9
doesn't coalesce writes. (raw tcp connections notwithstanding.)
- erik
prev parent reply other threads:[~2012-01-09 14:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-09 9:47 faif
2012-01-09 11:11 ` Jani Lahtinen
2012-01-09 14:18 ` erik quanstrom [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=0695a9ec118ac6f2b701ffdb42f92c77@coraid.com \
--to=quanstro@labs.coraid.com \
--cc=9fans@9fans.net \
--cc=comp.os.plan9@googlegroups.com \
/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).