788:9b9420041d8e | 789:378b5ab86f77 |
---|---|
31 | 31 |
32 #include <stdio.h> | 32 #include <stdio.h> |
33 #include <time.h> | 33 #include <time.h> |
34 #include <sys/types.h> | 34 #include <sys/types.h> |
35 #include <sys/stat.h> | 35 #include <sys/stat.h> |
36 #include <dirent.h> | 36 |
37 | 37 |
38 #ifdef _WIN32 | 38 #ifdef _WIN32 |
39 #include <Windows.h> | 39 #include <Windows.h> |
40 #define mode_t unsigned int | |
41 #else | |
42 #include <dirent.h> | |
40 #endif | 43 #endif |
41 | 44 |
42 #ifdef __cplusplus | 45 #ifdef __cplusplus |
43 extern "C" { | 46 extern "C" { |
44 #endif | 47 #endif |
100 | 103 |
101 char* sys_readlink(const char *path, SYS_STAT *s); | 104 char* sys_readlink(const char *path, SYS_STAT *s); |
102 | 105 |
103 int sys_symlink(const char *target, const char *linkpath); | 106 int sys_symlink(const char *target, const char *linkpath); |
104 | 107 |
108 int sys_truncate(const char* path, off_t length); | |
109 | |
105 #ifdef __cplusplus | 110 #ifdef __cplusplus |
106 } | 111 } |
107 #endif | 112 #endif |
108 | 113 |
109 #endif /* DAV_SYSTEM_H */ | 114 #endif /* DAV_SYSTEM_H */ |