From owner-freebsd-hackers Fri Aug 21 07:27:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA11530 for freebsd-hackers-outgoing; Fri, 21 Aug 1998 07:27:53 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ns1.yes.no (ns1.yes.no [195.119.24.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA11523 for ; Fri, 21 Aug 1998 07:27:51 -0700 (PDT) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.8.7/8.8.7) with ESMTP id OAA11308; Fri, 21 Aug 1998 14:26:55 GMT Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id QAA11625; Fri, 21 Aug 1998 16:26:48 +0200 (MET DST) Message-ID: <19980821162647.47092@follo.net> Date: Fri, 21 Aug 1998 16:26:47 +0200 From: Eivind Eklund To: Warner Losh , Brian Somers Cc: Archie Cobbs , Nate Williams , hackers@FreeBSD.ORG Subject: Re: Realloc fix for review References: <199808210107.CAA13727@awfulhak.org> <199808210309.VAA26640@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: <199808210309.VAA26640@harmony.village.org>; from Warner Losh on Thu, Aug 20, 1998 at 09:08:59PM -0600 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Aug 20, 1998 at 09:08:59PM -0600, Warner Losh wrote: > In message <199808210107.CAA13727@awfulhak.org> Brian Somers writes: > : AFAIK not all free() implementations ignore a NULL pointer (although > : FreeBSD's does). But then, not all realloc() implementations allow a > : NULL either (FreeBSD's does) :-/ > > free(NULL); is required to be valid by tha ANSI standard. I don't > know about the realloc(NULL, s); case, however. Required. The same goes for realloc(pointer, 0) being the same as free(). Eivind. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message