From owner-cvs-all Fri Sep 25 18:42:49 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA00685 for cvs-all-outgoing; Fri, 25 Sep 1998 18:42:49 -0700 (PDT) (envelope-from owner-cvs-all) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA00676; Fri, 25 Sep 1998 18:42:44 -0700 (PDT) (envelope-from msmith@FreeBSD.org) From: Michael Smith Received: (from msmith@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id SAA24980; Fri, 25 Sep 1998 18:42:40 -0700 (PDT) Date: Fri, 25 Sep 1998 18:42:40 -0700 (PDT) Message-Id: <199809260142.SAA24980@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/lib/libstand sbrk.c zalloc.c zalloc_defs.h zalloc_malloc.c zalloc_mem.h zalloc_protos.h Makefile environment.c stand.h ufs.c zipfs.c alloc.c Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk msmith 1998/09/25 18:42:40 PDT Modified files: lib/libstand Makefile environment.c stand.h ufs.c zipfs.c Added files: lib/libstand sbrk.c zalloc.c zalloc_defs.h zalloc_malloc.c zalloc_mem.h zalloc_protos.h Removed files: lib/libstand alloc.c Log: Replace the old and extremely icky Mach/NetBSD allocator with a similarly compact and much better one donated by Matt Dillon. Implement a simple sbrk() which uses the existing setheap() api. Remove the custom allocator from the UFS code. It wasn't working quite right, and it shouldn't be needed with the new allocator. Fix a serious problem with changing the value of already-existent environment variables. Don't attempt to modify the supposedly-const argument to putenv() Fix an off-by-one sizing error in the zipfs code detected by the new allocator. Submitted by: zmalloc from Matt Dillon Revision Changes Path 1.4 +6 -5 src/lib/libstand/Makefile 1.2 +41 -34 src/lib/libstand/environment.c 1.5 +16 -5 src/lib/libstand/stand.h 1.4 +14 -46 src/lib/libstand/ufs.c 1.3 +4 -2 src/lib/libstand/zipfs.c