#include "config.h"#include <unistd.h>#include <dlfcn.h>#include <signal.h>#include <stdarg.h>#include <stdio.h>#include <string.h>#include <umem_impl.h>#include "misc.h"Defines | |
| #define | _BUILDING_UMEM_MISC_C |
| #define | UMEM_ERRFD 2 |
| #define | UMEM_MAX_ERROR_SIZE 4096 |
| #define | ERR_SIZE 8192 |
| #define | WRITE_AND_INC(var, value) |
Functions | |
| void | umem_error_enter (const char *error_str) |
| int | highbit (ulong_t i) |
| int | lowbit (ulong_t i) |
| void | hrt2ts (hrtime_t hrt, timestruc_t *tsp) |
| void | log_message (const char *format,...) |
| void | debug_printf (const char *format,...) |
| void | umem_vprintf (const char *format, va_list va) |
| void | umem_printf (const char *format,...) |
| void | umem_printf_warn (void *ignored, const char *format,...) |
| int | print_sym (void *pointer) |
| #define _BUILDING_UMEM_MISC_C |
| #define ERR_SIZE 8192 |
| #define UMEM_ERRFD 2 |
Referenced by debug_printf(), log_message(), and umem_error_enter().
| #define UMEM_MAX_ERROR_SIZE 4096 |
Referenced by debug_printf(), log_message(), and umem_vprintf().
| #define WRITE_AND_INC | ( | var, | |||
| value | ) |
| void debug_printf | ( | const char * | format, | |
| ... | ||||
| ) |
References UMEM_ERRFD, and UMEM_MAX_ERROR_SIZE.
| int highbit | ( | ulong_t | i | ) |
Referenced by umem_cache_create(), vmem_alloc(), vmem_create(), and vmem_xalloc().
| void hrt2ts | ( | hrtime_t | hrt, | |
| timestruc_t * | tsp | |||
| ) |
References NANOSEC.
| void log_message | ( | const char * | format, | |
| ... | ||||
| ) |
References UMEM_ERRFD, UMEM_MAX_ERROR_SIZE, and umem_output.
Referenced by umem_cache_destroy(), umem_init(), umem_process_value(), umem_setup_envvars(), vmem_heap_init(), and vmem_sbrk_arena().
| int lowbit | ( | ulong_t | i | ) |
Referenced by vmem_alloc(), and vmem_xalloc().
| int print_sym | ( | void * | pointer | ) |
References umem_printf().
| void umem_error_enter | ( | const char * | error_str | ) |
References issetugid, UMEM_ERRFD, and umem_output.
Referenced by umem_err_recoverable(), umem_panic(), and umem_vprintf().
| void umem_printf | ( | const char * | format, | |
| ... | ||||
| ) |
| void umem_printf_warn | ( | void * | ignored, | |
| const char * | format, | |||
| ... | ||||
| ) |
References umem_vprintf().
| void umem_vprintf | ( | const char * | format, | |
| va_list | va | |||
| ) |
References umem_error_enter(), and UMEM_MAX_ERROR_SIZE.
Referenced by umem_err_recoverable(), umem_panic(), umem_printf(), and umem_printf_warn().
1.5.9