dav/utils.h

changeset 32
c9d37bb97ea8
parent 17
11dffb40cd91
equal deleted inserted replaced
31:59cdf7b7316f 32:c9d37bb97ea8
30 #define UTILS_H 30 #define UTILS_H
31 31
32 #include <sys/types.h> 32 #include <sys/types.h>
33 #include <libxml/tree.h> 33 #include <libxml/tree.h>
34 #include <ucx/string.h> 34 #include <ucx/string.h>
35 #include <sys/stat.h>
36 #ifdef _WIN32
37 #include <io.h>
38 #define S_IRWXG 070
39 #define S_IRGRP 040
40 #define S_IWGRP 020
41 #define S_IXGRP 010
42 #define S_IRWXO 07
43 #define S_IROTH 04
44 #define S_IWOTH 02
45 #define S_IXOTH 01
46 #endif /* _WIN32 */
35 47
36 #ifdef __cplusplus 48 #ifdef __cplusplus
37 extern "C" { 49 extern "C" {
38 #endif 50 #endif
39 51
40 time_t util_parse_creationdate(char *str); 52 time_t util_parse_creationdate(char *str);
41 time_t util_parse_lastmodified(char *str); 53 time_t util_parse_lastmodified(char *str);
54
55 int util_mkdir(char *path, mode_t mode);
42 56
43 char* util_url_path(char *url); 57 char* util_url_path(char *url);
44 char* util_resource_name(char *url); 58 char* util_resource_name(char *url);
45 char* util_concat_path(char *url_base, char *path); 59 char* util_concat_path(char *url_base, char *path);
46 char* util_parent_path(char *path); 60 char* util_parent_path(char *path);

mercurial