tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rpcgen(1), issues with System XVI



On Sun, Sep 20, 2015 at 10:22:27PM +0200, Joerg Sonnenberger wrote:
 > > > malloc sets errno, why use errx?
 > > 
 > > historically malloc didn't, and rpcgen is Olde...
 > 
 > I think the better reason is that the errno value set by malloc tends to
 > be not very useful -- ENOMEM.

That prints "Cannot allocate memory", which is as good as anything
else for this...

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index