113 |
#ifndef STATFS_T |
#ifndef STATFS_T |
114 |
struct dummy_statfs_t |
struct dummy_statfs_t |
115 |
{ |
{ |
116 |
long f_bfree = 1; |
long f_bfree; |
117 |
long f_bsize = 512; |
long f_bsize; |
118 |
long f_blocks = 1; |
long f_blocks; |
119 |
|
int f_namelen; |
120 |
|
int f_namemax; |
121 |
}; |
}; |
122 |
|
|
123 |
|
int dummy_statfs(struct dummy_statfs_t *buf) |
124 |
|
{ |
125 |
|
buf->f_blocks=262144; |
126 |
|
buf->f_bfree=131072; |
127 |
|
buf->f_bsize=512; |
128 |
|
buf->f_namelen=255; |
129 |
|
buf->f_namemax=255; |
130 |
|
|
131 |
|
return 0; |
132 |
|
} |
133 |
|
|
134 |
#define STATFS_T dummy_statfs_t |
#define STATFS_T dummy_statfs_t |
135 |
#define STATFS_FN(path,buf) 0 |
#define STATFS_FN(path,buf) (dummy_statfs(buf)) |
136 |
#endif |
#endif |
137 |
|
|
138 |
extern RDPDR_DEVICE g_rdpdr_device[]; |
extern RDPDR_DEVICE g_rdpdr_device[]; |