misc.h File Reference

#include "config.h"
#include <sys/types.h>
#include <sys/time.h>
#include "sol_compat.h"
#include <stdarg.h>

Go to the source code of this file.

Defines

#define offsetof(s, m)   ((size_t)(&(((s *)0)->m)))
#define ASSERT(assertion)

Functions

void debug_printf (const char *format,...)
void log_message (const char *format,...)
int highbit (ulong_t) __attribute__((pure))
int lowbit (ulong_t) __attribute__((pure))
void hrt2ts (hrtime_t hrt, timestruc_t *tsp)
int print_sym (void *pointer)
void umem_printf (const char *format,...)
void umem_vprintf (const char *format, va_list)
void umem_printf_warn (void *ignored, const char *format,...)
void umem_error_enter (const char *)
void umem_panic (const char *format,...) __attribute__((noreturn))
void umem_err_recoverable (const char *format,...)
int __umem_assert_failed (const char *assertion, const char *file, int line) __attribute__((noreturn))
void * getfp (void)
int getpcstack (uintptr_t *pcstack, int pcstack_limit, int check_sighandler)

Variables

uint_t umem_abort
uint_t umem_output
caddr_t umem_min_stack
caddr_t umem_max_stack


Define Documentation

#define ASSERT ( assertion   ) 

Value:

(void)((assertion) || \
    __umem_assert_failed(#assertion, __FILE__, __LINE__))

#define offsetof ( s,
 )     ((size_t)(&(((s *)0)->m)))


Function Documentation

int __umem_assert_failed ( const char *  assertion,
const char *  file,
int  line 
)

void debug_printf ( const char *  format,
  ... 
)

void* getfp ( void   ) 

int getpcstack ( uintptr_t *  pcstack,
int  pcstack_limit,
int  check_sighandler 
)

int highbit ( ulong_t   ) 

void hrt2ts ( hrtime_t  hrt,
timestruc_t tsp 
)

void log_message ( const char *  format,
  ... 
)

int lowbit ( ulong_t   ) 

int print_sym ( void *  pointer  ) 

void umem_err_recoverable ( const char *  format,
  ... 
)

void umem_error_enter ( const char *   ) 

void umem_panic ( const char *  format,
  ... 
)

void umem_printf ( const char *  format,
  ... 
)

void umem_printf_warn ( void *  ignored,
const char *  format,
  ... 
)

void umem_vprintf ( const char *  format,
va_list   
)


Variable Documentation

uint_t umem_abort

caddr_t umem_max_stack

caddr_t umem_min_stack

uint_t umem_output


Generated on Thu Feb 7 05:40:23 2008 for umem by  doxygen 1.5.4