> Date: Thu, 18 Dec 2008 15:24:30 -0800
> From: Dan Price <dp at eng.sun.com>
> Subject: Re: PSARC/2008/778 - asprintf, vasprintf
> To: "Roger A. Faulkner" <Roger.Faulkner at sun.com>
> Cc: psarc-ext at sac.sfbay.sun.com, tim.marsland at sun.com, john.levon at 
> sun.com, 
peter.memishian at sun.com, daniel.price at sun.com
> 
> On Thu 18 Dec 2008 at 03:05PM, Roger A. Faulkner wrote:
> > 
> >      ENOMEM    Insufficient storage space is available.
> 
> Roger-- does this errno of ENOMEM collapse the two malloc errnos
> (ENOMEM and EAGAIN) together?  Or is EAGAIN still a possible
> errno return?

I can arrange for [v]asprintf() to just return (-1) in the event
that malloc() fails (letting the malloc() underpinnings set errno).
And I could add EAGAIN to the possible errno values for failure.

How does that sound?

> Overall, looks great to me.  This will be much appreciated by
> many many many people.  Thanks for doing it.
> 
>         -dp

tpm made me do it.  Give credit/blame to him.  ;-)

Roger


Reply via email to