ns-3-dce  dce-1.9-30-g161c559
A Direct Code Execution for ns-3 Network Simulator
dce-vfs.cc
Go to the documentation of this file.
1 #include "dce-vfs.h"
2 #include "utils.h"
3 #include "dce-manager.h"
4 #include "process.h"
5 #include <ns3/log.h>
6 #include <ns3/node.h>
7 #include <ns3/simulator.h>
8 #include <errno.h>
9 
10 NS_LOG_COMPONENT_DEFINE ("DceVfs");
11 
12 using namespace ns3;
13 
14 int dce_statfs (const char *path, struct statfs *buf)
15 {
16  NS_LOG_FUNCTION (Current () << UtilsGetNodeId ());
17  NS_ASSERT (Current () != 0);
18  Current ()->err = ENOSYS;
19 
20  return -1;
21 }
22 
23 int dce_fstatfs (int fd, struct statfs *buf)
24 {
25  NS_LOG_FUNCTION (Current () << UtilsGetNodeId ());
26  NS_ASSERT (Current () != 0);
27  Current ()->err = ENOSYS;
28 
29  return -1;
30 }
31 
32 int dce_statfs64 (const char *path, struct statfs *buf)
33 {
34  NS_LOG_FUNCTION (Current () << UtilsGetNodeId ());
35  NS_ASSERT (Current () != 0);
36  Current ()->err = ENOSYS;
37 
38  return -1;
39 }
40 
41 int dce_fstatfs64 (int fd, struct statfs *buf)
42 {
43  NS_LOG_FUNCTION (Current () << UtilsGetNodeId ());
44  NS_ASSERT (Current () != 0);
45  Current ()->err = ENOSYS;
46 
47  return -1;
48 }
49 
50 int dce_statvfs (const char *path, struct statvfs *buf)
51 {
52  NS_LOG_FUNCTION (Current () << UtilsGetNodeId ());
53  NS_ASSERT (Current () != 0);
54  Current ()->err = ENOSYS;
55 
56  return -1;
57 }
58 
59 int dce_fstatvfs (int fd, struct statvfs *buf)
60 {
61  NS_LOG_FUNCTION (Current () << UtilsGetNodeId ());
62  NS_ASSERT (Current () != 0);
63  Current ()->err = ENOSYS;
64 
65  return -1;
66 }
uint32_t UtilsGetNodeId(void)
Definition: utils.cc:33
int dce_fstatfs(int fd, struct statfs *buf)
Definition: dce-vfs.cc:23
int dce_statvfs(const char *path, struct statvfs *buf)
Definition: dce-vfs.cc:50
int dce_statfs64(const char *path, struct statfs *buf)
Definition: dce-vfs.cc:32
int dce_fstatvfs(int fd, struct statvfs *buf)
Definition: dce-vfs.cc:59
Every class exported by the ns3 library is enclosed in the ns3 namespace.
int dce_fstatfs64(int fd, struct statfs *buf)
Definition: dce-vfs.cc:41
NS_LOG_COMPONENT_DEFINE("DceVfs")
int dce_statfs(const char *path, struct statfs *buf)
Definition: dce-vfs.cc:14
Thread * Current(void)
Definition: utils.cc:121