ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dce-dirent.cc File Reference
#include "dce-dirent.h"
#include "dce-fcntl.h"
#include "dce-unistd.h"
#include "unix-fd.h"
#include "unix-file-fd.h"
#include "file-usage.h"
#include "process.h"
#include "utils.h"
#include "ns3/log.h"
#include "errno.h"
#include "dce-stdlib.h"
#include <string.h>
+ Include dependency graph for dce-dirent.cc:

Go to the source code of this file.

Classes

struct  my__dirstream

Namespaces

namespace  ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.

Functions

int dce_closedir (DIR *dirp)
int dce_dirfd (DIR *dirp)
DIR * dce_fdopendir (int fd)
int ns3::dce_internalClosedir (DIR *dirp, struct Thread *cur)
DIR * dce_opendir (const char *name)
struct dirent * dce_readdir (DIR *dirp)
int dce_readdir_r (DIR *dirp, struct dirent *entry, struct dirent **result)
void dce_rewinddir (DIR *dirp)
int dce_scandir (const char *dirp, struct dirent ***namelist, int(*filter)(const struct dirent *), int(*compar)(const struct dirent **, const struct dirent **))
 NS_LOG_COMPONENT_DEFINE ("DceDirent")
void ns3::remove_dir (DIR *d, Thread *current)

Function Documentation

int dce_closedir ( DIR *  dirp)

Definition at line 201 of file dce-dirent.cc.

References ns3::Current(), ns3::dce_internalClosedir(), and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

int dce_dirfd ( DIR *  dirp)

Definition at line 208 of file dce-dirent.cc.

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

+ Here is the call graph for this function:

DIR* dce_fdopendir ( int  fd)

Definition at line 128 of file dce-dirent.cc.

References ns3::Current(), ns3::Thread::err, errno, my__dirstream::fd, ns3::Process::openDirs, ns3::Thread::process, and ns3::UtilsGetNodeId().

Referenced by dce_opendir().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

DIR* dce_opendir ( const char *  name)

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

References ns3::Current(), dce_close(), dce_fdopendir(), dce_open(), ns3::Thread::err, errno, my__dirstream::fd, and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

struct dirent* dce_readdir ( DIR *  dirp)
read

Definition at line 149 of file dce-dirent.cc.

References ns3::Current(), ns3::Thread::err, my__dirstream::fd, ns3::getRealFd(), and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

int dce_readdir_r ( DIR *  dirp,
struct dirent *  entry,
struct dirent **  result 
)

Definition at line 175 of file dce-dirent.cc.

References ns3::Current(), ns3::Thread::err, my__dirstream::fd, ns3::getRealFd(), and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

void dce_rewinddir ( DIR *  dirp)

Definition at line 216 of file dce-dirent.cc.

References ns3::Current(), my__dirstream::fd, ns3::getRealFd(), and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

int dce_scandir ( const char *  dirp,
struct dirent ***  namelist,
int(*)(const struct dirent *)  filter,
int(*)(const struct dirent **, const struct dirent **)  compar 
)

Definition at line 238 of file dce-dirent.cc.

References ns3::Current(), dce_malloc(), ns3::UtilsGetNodeId(), and ns3::UtilsGetRealFilePath().

+ Here is the call graph for this function:

NS_LOG_COMPONENT_DEFINE ( "DceDirent"  )