From owner-freebsd-hackers Sat Feb 24 13: 5: 9 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (flutter.freebsd.dk [212.242.40.147]) by hub.freebsd.org (Postfix) with ESMTP id EA52B37B503 for ; Sat, 24 Feb 2001 13:05:06 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.1/8.11.1) with ESMTP id f1OL5CM09633; Sat, 24 Feb 2001 22:05:12 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: seebs@plethora.net (Peter Seebach) Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Setting memory allocators for library functions. In-Reply-To: Your message of "Sat, 24 Feb 2001 14:56:54 CST." <200102242056.f1OKus618979@guild.plethora.net> Date: Sat, 24 Feb 2001 22:05:12 +0100 Message-ID: <9631.983048712@critter> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200102242056.f1OKus618979@guild.plethora.net>, Peter Seebach writes : >In message <9469.983047707@critter>, Poul-Henning Kamp writes: >>The guarantee is "If malloc returns NULL there is no memory you can use". > >No, it's "if the memory is not available, malloc returns NULL". No it is not and it never was. See RFC748 for why you cannot possibly be right. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message