On Sat, 12 Sep 2015, Larry McVoy wrote:
That's a really good point. Anyone like
these?
void *alloc(size_t bytes);
void *realloc(void *old, size_t want);
void *zalloc(size_t bytes);
void *zealloc(void *old, size_t want);
So alloc is new, we can have that. Realloc() is OK? Or not? Does the
current one have weird semantics?
zalloc/zealloc are new, we can have those.
If you guys like these I can push on Linus and the glibc people.
I'll vote for those, although my dev days are pretty much over. I've
never liked malloc() etc not clearing memory, although it has been, ahem,
useful, in the past...
Greg
--
Sent from my desktop computer.
Finger grog(a)FreeBSD.org for PGP public key.
See complete headers for address and phone numbers.
This message is digitally signed. If your Microsoft MUA reports
problems, please read