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

Functions

const char * xbt_procname (void)
 
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...
 

Function Documentation

◆ xbt_procname()

const char* xbt_procname ( void  )

◆ sg_version_check()

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

◆ xbt_pagesize

int xbt_pagesize

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

◆ xbt_pagebits

int xbt_pagebits

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

◆ sg_cmdline

xbt_dynar_t sg_cmdline

Contains all the parameters we got from the command line.