chiark / gitweb /
bres: Use mdup to duplicate file descriptors for the child.
[mLib] / arena.c
diff --git a/arena.c b/arena.c
index 30df2ee2d625dc7a641f49e38f0606378b94bf6c..7604823c8f27186713c98e003d0dfe4efaabcf04 100644 (file)
--- a/arena.c
+++ b/arena.c
@@ -1,13 +1,13 @@
 /* -*-c-*-
  *
- * $Id: arena.c,v 1.4 2001/06/22 19:32:59 mdw Exp $
+ * $Id: arena.c,v 1.5 2004/04/08 01:36:11 mdw Exp $
  *
  * Abstraction for memory allocation arenas
  *
  * (c) 2000 Straylight/Edgeware
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of the mLib utilities library.
  *
  * it under the terms of the GNU Library General Public License as
  * published by the Free Software Foundation; either version 2 of the
  * License, or (at your option) any later version.
- * 
+ *
  * mLib is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU Library General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU Library General Public
  * License along with mLib; if not, write to the Free
  * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  * MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: arena.c,v $
- * Revision 1.4  2001/06/22 19:32:59  mdw
- * Remove a space.
- *
- * Revision 1.3  2000/08/06 11:00:18  mdw
- * Daft bug fix.  Include <string.h>.
- *
- * Revision 1.2  2000/07/16 12:29:16  mdw
- * Change to arena `realloc' interface, to fix a design bug.
- *
- * Revision 1.1  2000/06/17 10:37:53  mdw
- * Basic arena management.
- *
- */
-
 /*----- Header files ------------------------------------------------------*/
 
 #include <stdlib.h>
@@ -54,7 +37,7 @@
 /*----- The standard arena ------------------------------------------------*/
 
 static void *_alloc(arena *a, size_t sz) { return malloc(sz); }
-static void *_realloc(arena *a, void *p, size_t sz, size_t osz) 
+static void *_realloc(arena *a, void *p, size_t sz, size_t osz)
   { return realloc(p, sz); }
 static void _free(arena *a, void *p) { free(p); }