qfits_memory.c File Reference


Functions

void qfits_memory_status_ (const char *, int)
void * qfits_memory_malloc (size_t size, const char *filename, int lineno)
 Allocate memory.
void * qfits_memory_calloc (size_t nmemb, size_t size, const char *filename, int lineno)
 Allocate memory.
char * qfits_memory_falloc (char *name, size_t offs, size_t *size, const char *srcname, int srclin)
 Map a file's contents to memory as a char pointer.
void qfits_memory_fdealloc (void *ptr, size_t offs, size_t size, const char *filename, int lineno)
 Free memory that has been allocated with falloc.
void qfits_memory_free (void *ptr, const char *filename, int lineno)
 Free memory.
void * qfits_memory_realloc (void *ptr, size_t size, const char *filename, int lineno)
 Re-Allocate memory.
char * qfits_memory_strdup (const char *s, const char *filename, int lineno)
 Duplicate a string using calloc.
void qfits_memory_status (void)
 Display memory status information.
int qfits_memory_is_empty (void)
 Tell if there is still some memory allocated.

Function Documentation

void qfits_memory_status_ ( const char *  ,
int   
)


Variable Documentation

size_t alloc_max

size_t alloc_ram

size_t alloc_swap

size_t alloc_total

int file_reg

int max_cells

int n_mm_files

int n_mm_mappings

int ncells

int nswapfiles

int pagesize

int rlimit_data