From owner-freebsd-current Tue Mar 12 13:53:17 2002 Delivered-To: freebsd-current@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id D4F1137B434 for ; Tue, 12 Mar 2002 13:53:05 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id B3A93AE23A; Tue, 12 Mar 2002 13:53:05 -0800 (PST) Date: Tue, 12 Mar 2002 13:53:05 -0800 From: Alfred Perlstein To: Archie Cobbs Cc: freebsd-current@freebsd.org Subject: Re: Adding realloc() Message-ID: <20020312215305.GL92565@elvis.mu.org> References: <200203120559.g2C5xI364432@arch20m.dellroad.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200203120559.g2C5xI364432@arch20m.dellroad.org> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Archie Cobbs [020311 22:00] wrote: > Hi, > > I've had the need for a realloc() in the kernel several times > before and am having it once again. Finally figured it's time to > do something about it. > > Does anyone have problems with the attached patch? This patch adds > realloc() and also fixes the semantics of free() to be consistent > with userland, in that free(NULL) is legal and does nothing. This > will make it possible to simplify some netgraph code and probably > other stuff too. Reviews appreciated as well. Where is the update to malloc(9)? What about reallocf? -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message