SimGrid  3.13
Versatile Simulation of Distributed Systems
misc.h File Reference
#include "simgrid_config.h"
#include "base.h"
#include "dynar.h"
#include <stdarg.h>

Macros

#define XBT_BACKTRACE_SIZE   10 /* FIXME: better place? Do document */
 

Functions

const char * xbt_procname (void)
 
void sg_version (int *major, int *minor, int *patch)
 Retrieves the version numbers of the used dynamic library (so, DLL or dynlib) , while SIMGRID_VERSION_MAJOR and friends give the version numbers of the used header files. More...
 
void sg_version_check (int lib_version_major, int lib_version_minor, int lib_version_patch)
 Helps ensuring that header version (SIMGRID_VERSION_MAJOR and friends) and dynamic library version do match. More...
 
char * bvprintf (const char *fmt, va_list ap)
 print to allocated string More...
 
char * bprintf (const char *fmt,...) XBT_ATTRIB_PRINTF(1
 print to allocated string More...
 

Variables

int xbt_pagesize
 Cache the size of a memory page for the current system. More...
 
int xbt_pagebits
 Cache the number of bits of addresses inside a given page, log2(xbt_pagesize). More...
 
xbt_dynar_t sg_cmdline
 Contains all the parameters we got from the command line. More...
 

Macro Definition Documentation

#define XBT_BACKTRACE_SIZE   10 /* FIXME: better place? Do document */

Function Documentation

const char* xbt_procname ( void  )
void sg_version ( int *  major,
int *  minor,
int *  patch 
)

Retrieves the version numbers of the used dynamic library (so, DLL or dynlib) , while SIMGRID_VERSION_MAJOR and friends give the version numbers of the used header files.

void sg_version_check ( int  lib_version_major,
int  lib_version_minor,
int  lib_version_patch 
)

Helps ensuring that header version (SIMGRID_VERSION_MAJOR and friends) and dynamic library version do match.

Variable Documentation

int xbt_pagesize

Cache the size of a memory page for the current system.

int xbt_pagebits

Cache the number of bits of addresses inside a given page, log2(xbt_pagesize).

xbt_dynar_t sg_cmdline

Contains all the parameters we got from the command line.