/* [<][>][^][v][top][bottom][index][help] */
1 /****************************************************************************
2 * Copyright (C) 2006-2008 by Jason Ansel, Kapil Arya, and Gene Cooperman *
3 * jansel@csail.mit.edu, kapil@ccs.neu.edu, gene@ccs.neu.edu *
4 * *
5 * This file is part of the dmtcp/src module of DMTCP (DMTCP:dmtcp/src). *
6 * *
7 * DMTCP:dmtcp/src is free software: you can redistribute it and/or *
8 * modify it under the terms of the GNU Lesser General Public License as *
9 * published by the Free Software Foundation, either version 3 of the *
10 * License, or (at your option) any later version. *
11 * *
12 * DMTCP:dmtcp/src is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU Lesser General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU Lesser General Public *
18 * License along with DMTCP:dmtcp/src. If not, see *
19 * <http://www.gnu.org/licenses/>. *
20 ****************************************************************************/
21
22 #ifndef ALLOC_H
23 #define ALLOC_H
24
25 #include <stdlib.h>
26 #include <sys/mman.h>
27 #include "dmtcp.h"
28
29 extern "C" void *__libc_memalign(size_t boundary, size_t size);
30
31 #define _real_malloc NEXT_FNC(malloc)
32 #define _real_calloc NEXT_FNC(calloc)
33 #define _real_valloc NEXT_FNC(valloc)
34 #define _real_realloc NEXT_FNC(realloc)
35 #define _real_free NEXT_FNC(free)
36 #define _real_memalign NEXT_FNC(memalign)
37 #define _real_posix_memalign NEXT_FNC(posix_memalign)
38 #define _real_libc_memalign NEXT_FNC(__libc_memalign)
39
40 #define _real_mmap NEXT_FNC(mmap)
41 #define _real_mmap64 NEXT_FNC(mmap64)
42 #define _real_munmap NEXT_FNC(munmap)
43 #define _real_mremap NEXT_FNC(mremap)
44 #endif //ALLOC_H