/usr/include/singular/omalloc/omAllocSystem.h is in libsingular4-dev-common 1:4.0.3-p3+ds-5.
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 35 36 37 38 39 40 41 | /*******************************************************************
* File: omAllocSystem.h
* Purpose: declaration of routines for low-level alloc routines
* and page management
* Author: obachman (Olaf Bachmann)
* Created: 11/99
*******************************************************************/
#ifndef OM_ALLOC_SYSTEM_H
#define OM_ALLOC_SYSTEM_H
size_t omSizeOfAddr(const void* addr);
size_t omSizeWOfAddr(void* addr);
size_t omSizeOfLargeAddr(void* addr);
#define omSizeWOfLargeAddr(addr) (omSizeOfLargeAddr(addr) >> LOG_SIZEOF_LONG)
void* omAllocFromSystem(size_t size);
void* omReallocFromSystem(void* addr, size_t newsize);
void omFreeToSystem(void* addr);
void* omReallocSizeFromSystem(void* addr, size_t oldsize, size_t newsize);
void omFreeSizeToSystem(void* addr, size_t size);
#define omVallocFromSystem(size) _omVallocFromSystem(size, 0)
void* _omVallocFromSystem(size_t size, int fail);
void omVfreeToSystem(void* page, size_t size);
#ifdef OM_MALLOC_PROVIDES_SIZEOF_ADDR
#define omAllocLarge(size) omAllocFromSystem(OM_ALIGN_SIZE(size))
#define omReallocLarge(addr, new_size) omReallocSizeFromSystem(addr, omSizeOfLargeAddr(addr), OM_ALIGN_SIZE(new_size))
#define omFreeLarge(addr) omFreeSizeToSystem(addr, omSizeOfLargeAddr(addr))
#else
void* omAllocLarge(size_t size);
void* omReallocLarge(void* old_addr, size_t new_size);
void omFreeLarge(void* addr);
#endif
void* omRealloc0Large(void* old_addr, size_t new_size);
void* omAlloc0Large(size_t size);
#endif /* OM_ALLOC_SYSTEM_H */
|