other-licenses/android/memcluster.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/other-licenses/android/memcluster.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,61 @@
     1.4 +/*	$NetBSD: memcluster.h,v 1.1.1.1 2004/05/20 19:49:41 christos Exp $	*/
     1.5 +
     1.6 +/*
     1.7 + * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
     1.8 + * Copyright (c) 1997,1999 by Internet Software Consortium.
     1.9 + *
    1.10 + * Permission to use, copy, modify, and distribute this software for any
    1.11 + * purpose with or without fee is hereby granted, provided that the above
    1.12 + * copyright notice and this permission notice appear in all copies.
    1.13 + *
    1.14 + * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
    1.15 + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
    1.16 + * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR
    1.17 + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
    1.18 + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
    1.19 + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
    1.20 + * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    1.21 + */
    1.22 +
    1.23 +/*
    1.24 + * This version of this file is derived from Android 2.3 "Gingerbread",
    1.25 + * which contains uncredited changes by Android/Google developers.  It has
    1.26 + * been modified in 2011 for use in the Android build of Mozilla Firefox by
    1.27 + * Mozilla contributors (including Michael Edwards <m.k.edwards@gmail.com>,
    1.28 + * and Steve Workman <sjhworkman@gmail.com>).
    1.29 + * These changes are offered under the same license as the original NetBSD
    1.30 + * file, whose copyright and license are unchanged above.
    1.31 + */
    1.32 +
    1.33 +#ifndef MEMCLUSTER_H
    1.34 +#define MEMCLUSTER_H
    1.35 +
    1.36 +#include <stdio.h>
    1.37 +
    1.38 +#define meminit		__meminit
    1.39 +#ifdef MEMCLUSTER_DEBUG
    1.40 +#define memget(s)	__memget_debug(s, __FILE__, __LINE__)
    1.41 +#define memput(p, s)	__memput_debug(p, s, __FILE__, __LINE__)
    1.42 +#else /*MEMCLUSTER_DEBUG*/
    1.43 +#ifdef MEMCLUSTER_RECORD
    1.44 +#define memget(s)	__memget_record(s, __FILE__, __LINE__)
    1.45 +#define memput(p, s)	__memput_record(p, s, __FILE__, __LINE__)
    1.46 +#else /*MEMCLUSTER_RECORD*/
    1.47 +#define memget		__memget
    1.48 +#define memput		__memput
    1.49 +#endif /*MEMCLUSTER_RECORD*/
    1.50 +#endif /*MEMCLUSTER_DEBUG*/
    1.51 +#define memstats	__memstats
    1.52 +#define memactive	__memactive
    1.53 +
    1.54 +int	meminit(size_t, size_t);
    1.55 +void *	__memget(size_t);
    1.56 +void 	__memput(void *, size_t);
    1.57 +void *	__memget_debug(size_t, const char *, int);
    1.58 +void 	__memput_debug(void *, size_t, const char *, int);
    1.59 +void *	__memget_record(size_t, const char *, int);
    1.60 +void 	__memput_record(void *, size_t, const char *, int);
    1.61 +void 	memstats(FILE *);
    1.62 +int	memactive(void);
    1.63 +
    1.64 +#endif /* MEMCLUSTER_H */

mercurial