mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 19:43:32 +00:00
fa20edc44d
- Remove most __ASSEMBLER__ __LINKER__ ifdefs - Rename libc/intrin/bits.h to libc/serialize.h - Block pthread cancelation in fchmodat() polyfill - Remove `clang-format off` statements in third_party
16 lines
568 B
C
16 lines
568 B
C
#ifndef COSMOPOLITAN_LIBC_MEM_HOOK_H_
|
|
#define COSMOPOLITAN_LIBC_MEM_HOOK_H_
|
|
COSMOPOLITAN_C_START_
|
|
|
|
extern void (*hook_free)(void *);
|
|
extern void *(*hook_malloc)(size_t);
|
|
extern void *(*hook_calloc)(size_t, size_t);
|
|
extern void *(*hook_memalign)(size_t, size_t);
|
|
extern void *(*hook_realloc)(void *, size_t);
|
|
extern void *(*hook_realloc_in_place)(void *, size_t);
|
|
extern int (*hook_malloc_trim)(size_t);
|
|
extern size_t (*hook_malloc_usable_size)(void *);
|
|
extern size_t (*hook_bulk_free)(void *[], size_t);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* COSMOPOLITAN_LIBC_MEM_HOOK_H_ */
|