ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dce-stdlib.h File Reference
#include <stdlib.h>
+ Include dependency graph for dce-stdlib.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int dce_atexit (void(*function)(void))
void * dce_calloc (size_t nmemb, size_t size)
int dce_clearenv (void)
void dce_free (void *ptr)
char * dce_getenv (const char *name)
void * dce_malloc (size_t size)
int dce_mkstemp (char *temp)
int dce_putenv (char *string)
void * dce_realloc (void *ptr, size_t size)
int dce_rename (const char *oldpath, const char *newpath)
int dce_setenv (const char *name, const char *value, int overwrite)
double dce_strtod (const char *nptr, char **endptr)
long int dce_strtol (const char *nptr, char **endptr, int base)
long long int dce_strtoll (const char *nptr, char **endptr, int base)
long unsigned int dce_strtoul (const char *nptr, char **endptr, int base)
long long unsigned int dce_strtoull (const char *nptr, char **endptr, int base)
int dce_unsetenv (const char *name)

Function Documentation

int dce_atexit ( void(*)(void)  function)
void* dce_calloc ( size_t  nmemb,
size_t  size 
)

Definition at line 13 of file dce-alloc.cc.

References dce_malloc(), and GET_CURRENT.

Referenced by dce_sbrk().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int dce_clearenv ( void  )

Definition at line 139 of file dce-env.cc.

References ns3::Process::allocated, ns3::Current(), ns3::Process::penvp, ns3::Thread::process, and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

void dce_free ( void *  ptr)

Definition at line 30 of file dce-alloc.cc.

References GET_CURRENT.

Referenced by dce_execl(), dce_execle(), dce_execlp(), dce_freeaddrinfo(), and netlink_request().

+ Here is the caller graph for this function:

char* dce_getenv ( const char *  name)

Definition at line 12 of file dce-env.cc.

References ns3::Current(), ns3::Process::penvp, ns3::Thread::process, ns3::seek_env(), and ns3::UtilsGetNodeId().

Referenced by dce__secure_getenv(), and ns3::LinuxSocketFdFactory::Getenv().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void* dce_malloc ( size_t  size)

Definition at line 20 of file dce-alloc.cc.

References GET_CURRENT.

Referenced by dce_calloc(), dce_execl(), dce_execle(), dce_execlp(), dce_getaddrinfo(), dce_getcwd(), dce_realloc(), dce_scandir(), dce_strdup(), dce_strndup(), dce_vasprintf(), and netlink_request().

+ Here is the caller graph for this function:

int dce_mkstemp ( char *  temp)
int dce_putenv ( char *  string)

Definition at line 30 of file dce-env.cc.

References ns3::Process::allocated, ns3::Current(), dce_unsetenv(), ns3::Process::penvp, ns3::Thread::process, and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

void* dce_realloc ( void *  ptr,
size_t  size 
)

Definition at line 43 of file dce-alloc.cc.

References dce_malloc(), and GET_CURRENT.

+ Here is the call graph for this function:

int dce_rename ( const char *  oldpath,
const char *  newpath 
)

Definition at line 120 of file dce-stdlib.cc.

References ns3::Current(), ns3::Thread::err, errno, ns3::UtilsGetNodeId(), and ns3::UtilsGetRealFilePath().

+ Here is the call graph for this function:

int dce_setenv ( const char *  name,
const char *  value,
int  overwrite 
)

Definition at line 72 of file dce-env.cc.

References ns3::Process::allocated, ns3::Current(), dce_unsetenv(), ns3::Process::penvp, ns3::Thread::process, and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

double dce_strtod ( const char *  nptr,
char **  endptr 
)

Definition at line 66 of file dce-stdlib.cc.

References ns3::Current(), ns3::Thread::err, errno, and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

long int dce_strtol ( const char *  nptr,
char **  endptr,
int  base 
)

Definition at line 17 of file dce-stdlib.cc.

References ns3::Current(), ns3::Thread::err, errno, and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

long long int dce_strtoll ( const char *  nptr,
char **  endptr,
int  base 
)

Definition at line 29 of file dce-stdlib.cc.

References ns3::Current(), ns3::Thread::err, errno, and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

long unsigned int dce_strtoul ( const char *  nptr,
char **  endptr,
int  base 
)

Definition at line 42 of file dce-stdlib.cc.

References ns3::Current(), ns3::Thread::err, errno, and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

long long unsigned int dce_strtoull ( const char *  nptr,
char **  endptr,
int  base 
)

Definition at line 54 of file dce-stdlib.cc.

References ns3::Current(), ns3::Thread::err, errno, and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

int dce_unsetenv ( const char *  name)

Definition at line 110 of file dce-env.cc.

References ns3::Current(), ns3::Process::penvp, ns3::Thread::process, and ns3::UtilsGetNodeId().

Referenced by dce_putenv(), and dce_setenv().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: