93 return unlink(path); |
99 return unlink(path); |
94 } |
100 } |
95 |
101 |
96 int sys_mkdir(const char *path) { |
102 int sys_mkdir(const char *path) { |
97 return mkdir(path, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); |
103 return mkdir(path, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); |
|
104 } |
98 |
105 |
99 #else |
106 #else |
100 /* ---------- Windows implementation ---------- */ |
107 /* ---------- Windows implementation ---------- */ |
101 |
108 |
102 static wchar_t* path2winpath(const char *path, int dir, int *newlen) { |
109 static wchar_t* path2winpath(const char *path, int dir, int *newlen) { |