* [9fans] C library function that reads up to a newline
@ 2012-01-09 9:47 faif
2012-01-09 11:11 ` Jani Lahtinen
2012-01-09 14:18 ` erik quanstrom
0 siblings, 2 replies; 3+ messages in thread
From: faif @ 2012-01-09 9:47 UTC (permalink / raw)
To: 9fans
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?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] C library function that reads up to a newline
2012-01-09 9:47 [9fans] C library function that reads up to a newline faif
@ 2012-01-09 11:11 ` Jani Lahtinen
2012-01-09 14:18 ` erik quanstrom
1 sibling, 0 replies; 3+ messages in thread
From: Jani Lahtinen @ 2012-01-09 11:11 UTC (permalink / raw)
To: comp.os.plan9, Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 307 bytes --]
Dont' think so, as you need a buffer to keep the line.
On Mon, Jan 9, 2012 at 11:47 AM, faif <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?
>
>
[-- Attachment #2: Type: text/html, Size: 547 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] C library function that reads up to a newline
2012-01-09 9:47 [9fans] C library function that reads up to a newline faif
2012-01-09 11:11 ` Jani Lahtinen
@ 2012-01-09 14:18 ` erik quanstrom
1 sibling, 0 replies; 3+ messages in thread
From: erik quanstrom @ 2012-01-09 14:18 UTC (permalink / raw)
To: comp.os.plan9, 9fans
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-09 14:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-09 9:47 [9fans] C library function that reads up to a newline faif
2012-01-09 11:11 ` Jani Lahtinen
2012-01-09 14:18 ` erik quanstrom
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).