27 |
#include <dirent.h> /* opendir, closedir, readdir */ |
#include <dirent.h> /* opendir, closedir, readdir */ |
28 |
#include <fnmatch.h> |
#include <fnmatch.h> |
29 |
#include <errno.h> /* errno */ |
#include <errno.h> /* errno */ |
30 |
|
#include <stdio.h> |
31 |
|
|
32 |
#include <utime.h> |
#include <utime.h> |
33 |
#include <time.h> /* ctime */ |
#include <time.h> /* ctime */ |
114 |
#ifndef STATFS_T |
#ifndef STATFS_T |
115 |
struct dummy_statfs_t |
struct dummy_statfs_t |
116 |
{ |
{ |
117 |
long f_bfree = 1; |
long f_bfree; |
118 |
long f_bsize = 512; |
long f_bsize; |
119 |
long f_blocks = 1; |
long f_blocks; |
120 |
|
int f_namelen; |
121 |
|
int f_namemax; |
122 |
}; |
}; |
123 |
|
|
124 |
|
static int |
125 |
|
dummy_statfs(struct dummy_statfs_t *buf) |
126 |
|
{ |
127 |
|
buf->f_blocks = 262144; |
128 |
|
buf->f_bfree = 131072; |
129 |
|
buf->f_bsize = 512; |
130 |
|
buf->f_namelen = 255; |
131 |
|
buf->f_namemax = 255; |
132 |
|
|
133 |
|
return 0; |
134 |
|
} |
135 |
|
|
136 |
#define STATFS_T dummy_statfs_t |
#define STATFS_T dummy_statfs_t |
137 |
#define STATFS_FN(path,buf) 0 |
#define STATFS_FN(path,buf) (dummy_statfs(buf)) |
138 |
#endif |
#endif |
139 |
|
|
140 |
extern RDPDR_DEVICE g_rdpdr_device[]; |
extern RDPDR_DEVICE g_rdpdr_device[]; |