/usr/include/lrcalc/alloc.h is in liblrcalc-dev 1.2-2.
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 34 | #ifndef _ALLOC_H
#define _ALLOC_H
#include <stdlib.h>
#include <setjmp.h>
/* Programs using the lrcalc library should set lrcalc_panic_frame
* with setjmp(lrcalc_panic_frame). The lrcalc library will call
* longjmp(lrcalc_panic_frame, 1) if an "out of memory" event occurs.
*/
extern jmp_buf lrcalc_panic_frame;
void *amalloc(size_t size);
void *acalloc(size_t num, size_t size);
void *arealloc(void *p, size_t size);
#ifdef DEBUG
#define DEBUG_MEMORY
#endif
#if defined(DEBUG_MEMORY) || defined(SAGE)
void afree(void *);
#else
#define afree(p) (free(p))
#endif
#ifdef DEBUG_MEMORY
void mem_report();
#define memory_report mem_report()
#else
#define memory_report
#endif
#endif
|