|
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64 User : jackjohn ( 502) PHP Version : 5.3.17 Disable Function : NONE Directory : /usr/lib64/bcc/include/ |
Upload File : |
#ifndef __MALLOC_H #define __MALLOC_H #include <features.h> #include <sys/types.h> /* * Mini malloc allows you to use a less efficient but smaller malloc the * cost is about 100 bytes of code in free but malloc (700bytes) doesn't * have to be linked. Unfortunatly memory can only be reused if everything * above it has been freed * */ extern void free __P((void *)); extern void *malloc __P((size_t)); extern void *realloc __P((void *, size_t)); extern void *alloca __P((size_t)); extern void *(*__alloca_alloc) __P((size_t)); #ifdef __LIBC__ #define __MINI_MALLOC__ #endif #ifdef __MINI_MALLOC__ #define malloc(x) ((*__alloca_alloc)(x)) #endif #endif