#include "utils.h"#include "dce-manager.h"#include "unix-fd.h"#include "process.h"#include "task-manager.h"#include "ns3/node.h"#include "ns3/log.h"#include <sstream>#include <sys/types.h>#include <sys/stat.h>#include <dirent.h>#include <errno.h>#include <string.h>#include <list>#include <fcntl.h>#include <unistd.h>#include "file-usage.h"#include "ns3/global-value.h"#include "ns3/uinteger.h"
Include dependency graph for utils.cc:Go to the source code of this file.
Namespaces | |
| namespace | ns3 |
| Every class exported by the ns3 library is enclosed in the ns3 namespace. | |
Functions | |
| bool | ns3::CheckExeMode (struct stat *st, uid_t uid, gid_t gid) |
| bool | ns3::CheckFdExists (Process *const p, int const fd, bool const opened) |
| bool | ns3::CheckShellScript (std::string fileName, std::ostringstream &shellName, std::ostringstream &optionalArg) |
| Thread * | ns3::Current (void) |
| void | ns3::FdDecUsage (int fd) |
| std::string | ns3::FindExecFile (std::string root, std::string envPath, std::string fileName, uid_t uid, gid_t gid, int *errNo) |
| int | ns3::getRealFd (int fd, Thread *current) |
| std::string | ns3::GetTimeStamp () |
| bool | ns3::HasPendingSignal (void) |
| NS_LOG_COMPONENT_DEFINE ("ProcessUtils") | |
| std::string | ns3::PathOfFd (int fd) |
| char * | ns3::seek_env (const char *name, char **array) |
| std::list< std::string > | ns3::Split (std::string input, std::string sep) |
| void | ns3::UtilsAdvanceTime (Thread *current) |
| int | ns3::UtilsAllocateFd (void) |
| void | ns3::UtilsDoSignal (void) |
| void | ns3::UtilsEnsureAllDirectoriesExist (std::string realPath) |
| void | ns3::UtilsEnsureDirectoryExists (std::string realPath) |
| std::string | ns3::UtilsGetAbsRealFilePath (uint32_t node, std::string path) |
| std::string | ns3::UtilsGetCurrentDirName (void) |
| uint32_t | ns3::UtilsGetNodeId (void) |
| static std::string | ns3::UtilsGetRealFilePath (uint32_t node) |
| static std::string | ns3::UtilsGetRealFilePath (void) |
| std::string | ns3::UtilsGetRealFilePath (std::string path) |
| std::string | ns3::UtilsGetVirtualFilePath (std::string path) |
| void | ns3::UtilsSendSignal (Process *process, int signum) |
| Time | ns3::UtilsSimulationTimeToTime (Time time) |
| Time | ns3::UtilsTimespecToTime (struct timespec tm) |
| Time | ns3::UtilsTimeToSimulationTime (Time time) |
| struct timespec | ns3::UtilsTimeToTimespec (Time time) |
| struct timeval | ns3::UtilsTimeToTimeval (Time time) |
| Time | ns3::UtilsTimevalToTime (struct timeval tv) |
| Time | ns3::UtilsTimevalToTime (const struct timeval *tv) |
Variables | |
| GlobalValue | ns3::g_timeBase |
| Thread * | ns3::gDisposingThreadContext = 0 |
| NS_LOG_COMPONENT_DEFINE | ( | "ProcessUtils" | ) |