/usr/include/root/mmalloc.h is in libroot-core-dev 5.34.00-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | /* @(#)root/clib:$Id: mmalloc.h 20882 2007-11-19 11:31:26Z rdm $ */
/* Author: */
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef MMALLOC_H
#define MMALLOC_H 1
/* FIXME: If <stddef.h> doesn't exist, you'll need to do something
to define size_t before including this file. Like upgrading
to a system with an ANSI C environment. */
#include "mmconfig.h"
#ifdef WIN32
# include <windows.h>
#endif
#ifdef R__HAVE_STDDEF_H
# include <stddef.h>
#endif
#define PTR void *
#define PARAMS(paramlist) paramlist
#ifdef WIN32
/* problem with VC++ 6.0 if extern "C". It does not like the return type */
extern struct mstats mmstats PARAMS ((PTR));
#endif
#ifdef __cplusplus
extern "C" {
#endif
/* Allocate SIZE bytes of memory. */
extern PTR mmalloc PARAMS ((PTR, size_t));
/* Re-allocate the previously allocated block in PTR, making the new block
SIZE bytes long. */
extern PTR mrealloc PARAMS ((PTR, PTR, size_t));
/* Allocate NMEMB elements of SIZE bytes each, all initialized to 0. */
extern PTR mcalloc PARAMS ((PTR, size_t, size_t));
/* Free a block allocated by `mmalloc', `mrealloc' or `mcalloc'. */
extern void mfree PARAMS ((PTR, PTR));
/* Allocate SIZE bytes allocated to ALIGNMENT bytes. */
extern PTR mmemalign PARAMS ((PTR, size_t, size_t));
/* Allocate SIZE bytes on a page boundary. */
extern PTR mvalloc PARAMS ((PTR, size_t));
/* Activate a standard collection of debugging hooks. */
extern int mmcheck PARAMS ((PTR, void (*) (void)));
/* Pick up the current statistics. (see FIXME elsewhere) */
#ifndef WIN32
extern struct mstats mmstats PARAMS ((PTR));
#endif
#ifndef WIN32
extern PTR mmalloc_attach PARAMS ((int, PTR, int));
#else
extern PTR mmalloc_attach PARAMS ((HANDLE, PTR, int));
#endif
extern PTR mmalloc_detach PARAMS ((PTR));
extern int mmalloc_update_mapping PARAMS ((PTR));
extern int mmalloc_setkey PARAMS ((PTR, int, PTR));
extern PTR mmalloc_getkey PARAMS ((PTR, int));
extern int mmtrace PARAMS ((void));
#ifdef __cplusplus
}
#endif
#endif /* MMALLOC_H */
|