From: "Russ Cox" <rsc@swtch.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: Re: [9fans] Binit and Bterm
Date: Thu, 5 Oct 2006 16:43:13 -0400 [thread overview]
Message-ID: <ee9e417a0610051343x6d2197a4tcc5c518c2fc99da2@mail.gmail.com> (raw)
In-Reply-To: <8eeb3016afcfba5a3719301de1824a5f@plan9.jp>
The only buffer is on the stack inside the Biobuf.
There is no dynamic allocation in this case.
Russ
On 10/5/06, Joel "chesky" Salomon <JoelCSalomon@gmail.com> wrote:
> > 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
>
>
next prev parent reply other threads:[~2006-10-05 20:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-05 19:32 Joel “chesky” Salomon
2006-10-05 20:26 ` Tim Wiess
2006-10-05 20:33 ` Joel “chesky” Salomon
2006-10-05 20:43 ` Russ Cox [this message]
2006-10-05 20:47 ` Charles Forsyth
2006-10-05 21:00 ` Joel “chesky” Salomon
2006-10-05 21:08 ` Charles Forsyth
2006-10-05 21:09 ` Joel “chesky” Salomon
2006-10-05 21:38 ` Martin Neubauer
2006-10-05 21:42 ` Charles Forsyth
2006-10-05 21:42 ` Tim Wiess
[not found] <000001c6e8b6$cbc14250$14aaa8c0@utelsystems.local>
2006-10-06 6:03 ` "Nils O. Selåsdal"
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=ee9e417a0610051343x6d2197a4tcc5c518c2fc99da2@mail.gmail.com \
--to=rsc@swtch.com \
--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).