#include <string>
#include <list>
#include <sys/time.h>
#include <sys/stat.h>
#include "ns3/nstime.h"
Go to the source code of this file.
Namespaces | |
namespace | ns3 |
Every class exported by the ns3 library is enclosed in the ns3 namespace. |
Macros | |
#define | GET_CURRENT(x) |
#define | GET_CURRENT_NOLOG() |
#define | MAX_FDS 1024 |
#define | OPENED_FD_METHOD(rettype, args) OPENED_FD_METHOD_ERR (-1, rettype, args) |
#define | OPENED_FD_METHOD_ERR(errCode, rettype, args) |
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) |
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) |
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) |
#define GET_CURRENT | ( | x | ) |
Definition at line 10 of file utils.h.
Referenced by ns3::LinuxSocketFdFactory::Accept(), ns3::LinuxSocketFdFactory::Bind(), ns3::LinuxSocketFdFactory::Close(), ns3::LinuxSocketFdFactory::Connect(), ns3::LinuxSocketFdFactory::CreateSocket(), dce_calloc(), dce_free(), dce_malloc(), dce_realloc(), dce_setegid(), dce_seteuid(), dce_setgid(), dce_setregid(), dce_setresgid(), dce_setresuid(), dce_setreuid(), dce_setuid(), ns3::LinuxSocketFd::Fxstat(), ns3::LocalSocketFd::Fxstat(), ns3::LinuxSocketFd::Fxstat64(), ns3::LocalSocketFd::Fxstat64(), ns3::LinuxSocketFdFactory::Getpeername(), ns3::LinuxSocketFdFactory::Getsockname(), ns3::LinuxSocketFdFactory::Getsockopt(), ns3::LinuxSocketFdFactory::Ioctl(), is_set_gcapable(), is_set_ucapable(), ns3::LinuxSocketFdFactory::Listen(), ns3::LinuxSocketFd::Lseek(), ns3::LocalSocketFd::Lseek(), ns3::LinuxSocketFd::Mmap(), ns3::LocalSocketFd::Mmap(), ns3::LinuxSocketFdFactory::Poll(), ns3::LinuxSocketFdFactory::Recvmsg(), ns3::LinuxSocketFdFactory::Sendmsg(), ns3::LinuxSocketFdFactory::Setsockopt(), and ns3::LinuxSocketFdFactory::Shutdown().
#define GET_CURRENT_NOLOG | ( | ) |
Definition at line 17 of file utils.h.
Referenced by dce___errno_location(), dce_geteuid(), dce_getpid(), dce_getppid(), dce_getuid(), is_gcapable(), and is_ucapable().
#define MAX_FDS 1024 |
Definition at line 67 of file utils.h.
Referenced by dce_dup2(), and ns3::UtilsAllocateFd().
#define OPENED_FD_METHOD | ( | rettype, | |
args | |||
) | OPENED_FD_METHOD_ERR (-1, rettype, args) |
Definition at line 93 of file utils.h.
Referenced by dce___fxstat(), dce___fxstat64(), dce_accept(), dce_bind(), dce_connect(), dce_fcntl(), dce_ftruncate(), dce_getpeername(), dce_getsockname(), dce_getsockopt(), dce_ioctl(), dce_isatty(), dce_listen(), dce_lseek64(), dce_read(), dce_recvmsg(), dce_sendmsg(), dce_setsockopt(), dce_shutdown(), dce_timerfd_gettime(), dce_timerfd_settime(), dce_ttyname(), and dce_write().
#define OPENED_FD_METHOD_ERR | ( | errCode, | |
rettype, | |||
args | |||
) |
Definition at line 69 of file utils.h.
Referenced by dce_mmap64().