Subject: Re: utmpx.h
To: David Brownlee <abs@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-userlevel
Date: 09/23/2001 20:10:29
On Sep 23, 11:36pm, abs@netbsd.org (David Brownlee) wrote:
-- Subject: Re: utmpx.h

| 	Apologies if this has already been covered and I've missed it...
| 
| 	Given all the strings are malloc()ed would it make sense to
| 	have an explicit utmpx_free() so fields could be added at a
| 	later point without inducing memory leaks in older dynamically
| 	linked programs?

You just need to allocate a big chunk and thread pointers into it. It
is a lot faster than doing many malloc and free's.

christos