|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21585/root/usr/lib/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