/usr/include/aal/malloc.h is in libaal-dev 1.0.5-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | /* Copyright (C) 2001, 2002, 2003 by Hans Reiser, licensing governed by
libaal/COPYING.
malloc.h -- memory allocation functions. ctualy they are memory allocation
handlers which may be set by caller. In the allone mode they will point to
corresponding memory allocation functions, which are used in certain minimal
application (bootloaders, etc). In the standard mode they are pointed to libc
memory allocation functions (malloc, free, etc). */
#ifndef AAL_MALLOC_H
#define AAL_MALLOC_H
#include <aal/types.h>
extern void aal_mem_fini(void);
extern unsigned int aal_mem_free(void);
extern void aal_mem_init(void *start, uint32_t len);
typedef void (*aal_free_handler_t) (void *);
typedef void *(*aal_malloc_handler_t) (uint32_t);
#ifndef ENABLE_MINIMAL
extern void aal_malloc_set_handler(aal_malloc_handler_t handler);
extern aal_malloc_handler_t aal_malloc_get_handler(void);
extern aal_free_handler_t aal_free_get_handler(void);
extern void aal_free_set_handler(aal_free_handler_t handler);
#endif
extern void aal_free(void *ptr);
extern void *aal_malloc(uint32_t size);
extern void *aal_calloc(uint32_t size, char c);
#endif
|