From owner-cvs-all@FreeBSD.ORG Fri Jun 30 20:54:16 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23B3416A403; Fri, 30 Jun 2006 20:54:16 +0000 (UTC) (envelope-from jasone@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D713343D45; Fri, 30 Jun 2006 20:54:15 +0000 (GMT) (envelope-from jasone@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k5UKsFum085823; Fri, 30 Jun 2006 20:54:15 GMT (envelope-from jasone@repoman.freebsd.org) Received: (from jasone@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k5UKsFkC085822; Fri, 30 Jun 2006 20:54:15 GMT (envelope-from jasone) Message-Id: <200606302054.k5UKsFkC085822@repoman.freebsd.org> From: Jason Evans Date: Fri, 30 Jun 2006 20:54:15 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libc/stdlib malloc.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 20:54:16 -0000 jasone 2006-06-30 20:54:15 UTC FreeBSD src repository Modified files: lib/libc/stdlib malloc.c Log: Make the behavior of malloc(0) standards-compliant by getting rid of nil, and instead creating a small allocation for each malloc(0) call. The optional SysV compatibility behavior remains unchanged. Add a couple of assertions. Fix a couple of typos in error message strings. Revision Changes Path 1.128 +46 -48 src/lib/libc/stdlib/malloc.c