From owner-freebsd-stable@FreeBSD.ORG Thu Jul 24 13:40:57 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 059D137B401 for ; Thu, 24 Jul 2003 13:40:57 -0700 (PDT) Received: from laptop.tenebras.com (laptop.tenebras.com [66.92.188.18]) by mx1.FreeBSD.org (Postfix) with SMTP id 633EC43FA3 for ; Thu, 24 Jul 2003 13:40:56 -0700 (PDT) (envelope-from kudzu@tenebras.com) Received: (qmail 28504 invoked from network); 24 Jul 2003 20:40:55 -0000 Received: from sapphire.tenebras.com (HELO tenebras.com) (192.168.188.241) by 0 with SMTP; 24 Jul 2003 20:40:55 -0000 Message-ID: <3F204456.1000000@tenebras.com> Date: Thu, 24 Jul 2003 13:40:54 -0700 From: Michael Sierchio User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, zh-tw, zh-cn, fr, en, de-de MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <20030724201934.59075.qmail@web14806.mail.yahoo.com> In-Reply-To: <20030724201934.59075.qmail@web14806.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: malloc does not return null when out of memory X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2003 20:40:57 -0000 Rostislav Krasny wrote: > The Single UNIX Specification extends malloc() function, a little. > Following URL is of the manual page of this function: > http://www.opengroup.org/onlinepubs/007904975/functions/malloc.html > Read "ERRORS" and "Issue 6" sections. Should FreeBSD be conformed to > this standard? FreeBSD malloc is POSIX/SUSv3 compliant. It returns NULL and sets errno to ENOMEM if insufficient storage space is available.