From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] Binit and Bterm From: Charles Forsyth Date: Thu, 5 Oct 2006 21:47:38 +0100 In-Reply-To: <8eeb3016afcfba5a3719301de1824a5f@plan9.jp> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-ewsqtqtmqzgidwyqhctumtjwsz" Topicbox-Message-UUID: c5f3635e-ead1-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --upas-ewsqtqtmqzgidwyqhctumtjwsz Content-Disposition: ainline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit according to /sys/src/libbio/binit.c, Binit doesn't allocate buffers (that's done by Bopen), and Bterm for a Biobuf initialised to OREAD by Binit doesn't do much. i'd still call Bterm though, especially in these days of cut and paste --upas-ewsqtqtmqzgidwyqhctumtjwsz Content-Type: message/rfc822 Content-Disposition: ainline Received: from mail.cse.psu.edu ([130.203.4.6]) by lavoro; Thu Oct 5 21:40:10 BST 2006 Received: from psuvax1.cse.psu.edu (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id A7046C6DA2 for ; Thu, 5 Oct 2006 16:40:07 -0400 (EDT) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: from localhost (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id D85A2C6C04 for <9fans@cse.psu.edu>; Thu, 5 Oct 2006 16:38:01 -0400 (EDT) Received: from mail.cse.psu.edu ([127.0.0.1]) by localhost (psuvax1 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26565-01-40 for <9fans@cse.psu.edu>; Thu, 5 Oct 2006 16:37:58 -0400 (EDT) Received: from hymie.cooper.edu (hymie.cc.cooper.edu [199.98.17.238]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 46BFDC689C for <9fans@cse.psu.edu>; Thu, 5 Oct 2006 16:37:57 -0400 (EDT) Message-ID: <8eeb3016afcfba5a3719301de1824a5f@plan9.jp> To: 9fans@cse.psu.edu Subject: Re: [9fans] Binit and Bterm From: Joel “chesky” Salomon Date: Thu, 5 Oct 2006 16:33:32 -0400 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at cse.psu.edu X-Amavis-Alert: BAD HEADER Non-encoded 8-bit data (char E2 hex) in message header 'From' From: Joel \342\200\234chesky\342\200\235 Sal... ^ X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces+forsyth=terzarima.net@cse.psu.edu Errors-To: 9fans-bounces+forsyth=terzarima.net@cse.psu.edu > since you are just doing reads then no i don't believe > the Bterm is necessary. So will Binit properly reinitialize its argument, reusing the buffers rather than allocating new ones and leaking the old? --Joel --upas-ewsqtqtmqzgidwyqhctumtjwsz--