new upstream

git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@10080 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
2004-02-14 21:35:37 +00:00
parent 26fb70d304
commit a02c126403
224 changed files with 5624 additions and 2217 deletions

View File

@@ -1,4 +1,4 @@
/* $NetBSD: malloc.c,v 1.2 2003/08/07 09:37:28 agc Exp $ */
/* $NetBSD: malloc.c,v 1.3 2004/01/27 20:30:30 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)malloc.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: malloc.c,v 1.2 2003/08/07 09:37:28 agc Exp $");
__RCSID("$NetBSD: malloc.c,v 1.3 2004/01/27 20:30:30 jsm Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -120,16 +120,16 @@ static u_int nmalloc[NBUCKETS];
static mutex_t malloc_mutex = MUTEX_INITIALIZER;
static void morecore __P((int));
static int findbucket __P((union overhead *, int));
static void morecore(int);
static int findbucket(union overhead *, int);
#ifdef MSTATS
void mstats __P((const char *));
void mstats(const char *);
#endif
#if defined(DEBUG) || defined(RCHECK)
#define ASSERT(p) if (!(p)) botch(__STRING(p))
static void botch __P((const char *));
static void botch(const char *);
/*
* NOTE: since this may be called while malloc_mutex is locked, stdio must not