phunix/minix/lib/libmagicrt/include/magic_real_mem.h
David van Moolenbroek b2ed49a5d8 libmagicrt: integrate into build system
The magic runtime library is now built as part of the regular build, if
the MKMAGIC=yes flag is passed to the build system.  The library has
been renamed from "magic" to "magicrt" to resolve a name clash with BSD
file(1)'s libmagic.  All its level-5 LLVM warnings have been resolved.
 The final library, "libmagicrt.bcc", is now stored in the destination
library directory rather than in the source tree.

Change-Id: Iebd4b93a2cafbb59f95d938ad1edb8b4f6e729f6
2016-01-13 20:32:32 +01:00

29 lines
792 B
C

#ifndef _MAGIC_REAL_MEM_H
#define _MAGIC_REAL_MEM_H
#include <magic_mem.h>
#define malloc magic_real_malloc
#define calloc magic_real_calloc
#define free magic_real_free
#define realloc magic_real_realloc
#define posix_memalign magic_real_posix_memalign
#define valloc magic_real_valloc
#define memalign magic_real_memalign
#define mmap magic_real_mmap
#define munmap magic_real_munmap
#define brk magic_real_brk
#define sbrk magic_real_sbrk
#define shmat magic_real_shmat
#define shmdt magic_real_shmdt
#define mmap64 magic_real_mmap64
#define vm_map_cacheblock magic_real_vm_map_cacheblock
#endif