2 * Path and directory definitions
4 * Derived from the mingw header written by Colin Peters.
5 * Modified for Wine use by Jon Griffiths and Francois Gouget.
6 * This file is in the public domain.
8 #ifndef __WINE_DIRECT_H
9 #define __WINE_DIRECT_H
11 #include <corecrt_wdirect.h>
19 #ifndef _DISKFREE_T_DEFINED
20 #define _DISKFREE_T_DEFINED
22 unsigned int total_clusters
;
23 unsigned int avail_clusters
;
24 unsigned int sectors_per_cluster
;
25 unsigned int bytes_per_sector
;
27 #endif /* _DISKFREE_T_DEFINED */
29 _ACRTIMP
int __cdecl
_chdir(const char*);
30 _ACRTIMP
int __cdecl
_chdrive(int);
31 _ACRTIMP
char* __cdecl
_getcwd(char*,int);
32 _ACRTIMP
char* __cdecl
_getdcwd(int,char*,int);
33 _ACRTIMP
int __cdecl
_getdrive(void);
34 _ACRTIMP __msvcrt_ulong __cdecl
_getdrives(void);
35 _ACRTIMP
int __cdecl
_mkdir(const char*);
36 _ACRTIMP
int __cdecl
_rmdir(const char*);
43 static inline int chdir(const char* newdir
) { return _chdir(newdir
); }
44 static inline char* getcwd(char * buf
, int size
) { return _getcwd(buf
, size
); }
45 static inline int mkdir(const char* newdir
) { return _mkdir(newdir
); }
46 static inline int rmdir(const char* dir
) { return _rmdir(dir
); }
50 #endif /* __WINE_DIRECT_H */