#include <stdlib.h>
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) |
int dce_atexit | ( | void(*)(void) | function | ) |
Definition at line 79 of file dce-stdlib.cc.
References ns3::Process::atExitHandlers, ns3::Current(), ns3::AtExitHandler::NORMAL, ns3::AtExitHandler::normal, ns3::Thread::process, ns3::AtExitHandler::type, ns3::UtilsGetNodeId(), and ns3::AtExitHandler::value.
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().
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().
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().
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().
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().
int dce_mkstemp | ( | char * | temp | ) |
Definition at line 92 of file dce-stdlib.cc.
References ns3::Current(), ns3::Thread::err, errno, ns3::UnixFd::IncFdCount(), ns3::Process::openFiles, ns3::Thread::process, ns3::UtilsAllocateFd(), ns3::UtilsGetNodeId(), and ns3::UtilsGetRealFilePath().
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().
void* dce_realloc | ( | void * | ptr, |
size_t | size | ||
) |
Definition at line 43 of file dce-alloc.cc.
References dce_malloc(), and GET_CURRENT.
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().
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().
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().
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().
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().
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().
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().
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().