From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Mon, 9 Jan 2012 09:18:42 -0500 To: comp.os.plan9@googlegroups.com, 9fans@9fans.net Message-ID: <0695a9ec118ac6f2b701ffdb42f92c77@coraid.com> In-Reply-To: <19066037.1659.1326018719041.JavaMail.geo-discussion-forums@vbdz6> References: <19066037.1659.1326018719041.JavaMail.geo-discussion-forums@vbdz6> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] C library function that reads up to a newline Topicbox-Message-UUID: 56854f36-ead7-11e9-9d60-3106f5b1d025 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