9 # define MKDIR(d) _mkdir(d)
10 # define CHDIR(d) _chdir(d)
12 # define MKDIR(d) mkdir(d, 0775)
13 # define CHDIR(d) chdir(d)
16 /***************************************************************************/
18 /* Get a file's date and time in dos format */
19 uint32_t get_file_date(const char *path, uint32_t *dos_date);
21 /* Sets a file's date and time in dos format */
22 void change_file_date(const char *path, uint32_t dos_date);
24 /* Convert dos date/time format to struct tm */
25 int dosdate_to_tm(uint64_t dos_date, struct tm *ptm);
27 /* Convert dos date/time format to time_t */
28 time_t dosdate_to_time_t(uint64_t dos_date);
30 /* Convert struct tm to dos date/time format */
31 uint32_t tm_to_dosdate(const struct tm *ptm);
33 /* Create a directory and all subdirectories */
34 int makedir(const char *newdir);
36 /* Check to see if a file exists */
37 int check_file_exists(const char *path);
39 /* Check to see if a file is over 4GB and needs ZIP64 extension */
40 int is_large_file(const char *path);
42 /* Print a 64-bit number for compatibility */
43 void display_zpos64(uint64_t n, int size_char);
45 /***************************************************************************/
51 #endif /* _MINISHARED_H */