Date: Thu, 6 Apr 2000 06:50:04 -0700 (PDT) From: Sheldon Hearn <sheldonh@uunet.co.za> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/16924: tmpfile(3) ignores TMPDIR and always uses /tmp Message-ID: <200004061350.GAA38889@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/16924; it has been noted by GNATS. From: Sheldon Hearn <sheldonh@uunet.co.za> To: Mike Heffner <spock@techfour.net> Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: bin/16924: tmpfile(3) ignores TMPDIR and always uses /tmp Date: Thu, 06 Apr 2000 15:41:20 +0200 On Thu, 06 Apr 2000 09:28:55 -0400, Mike Heffner wrote: > I assume you mean the part of malloc setting ENOMEM. Is there a case > where it wouldn't set ENOMEM? According to the manpage, this is how > malloc(3) should behave. Bleh, please ignore that. I don't know what I've been smoking, but I'm actually the guy who modified the malloc(3) manual page to specifically state that it _does_ set errno! :-) The problem is that the C standard doesn't specify that malloc() sets errno. We should probably mention in malloc(3)'s STANDARDS section that setting errno from malloc() is mandated by the standard and that other implementations can not be relied on to do so. Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004061350.GAA38889>