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
10 #ifndef __WINE_USE_MSVCRT
11 #define __WINE_USE_MSVCRT
18 #ifndef _WCHAR_T_DEFINED
19 #define _WCHAR_T_DEFINED
21 typedef unsigned short wchar_t;
25 #ifndef _SIZE_T_DEFINED
26 typedef unsigned int size_t;
27 #define _SIZE_T_DEFINED
30 #ifndef _DISKFREE_T_DEFINED
31 #define _DISKFREE_T_DEFINED
33 unsigned int total_clusters;
34 unsigned int avail_clusters;
35 unsigned int sectors_per_cluster;
36 unsigned int bytes_per_sector;
38 #endif /* _DISKFREE_T_DEFINED */
40 int _chdir(const char*);
42 char* _getcwd(char*,int);
43 char* _getdcwd(int,char*,int);
45 unsigned long _getdrives(void);
46 int _mkdir(const char*);
47 int _rmdir(const char*);
49 #ifndef _WDIRECT_DEFINED
50 #define _WDIRECT_DEFINED
51 int _wchdir(const wchar_t*);
52 wchar_t* _wgetcwd(wchar_t*,int);
53 wchar_t* _wgetdcwd(int,wchar_t*,int);
54 int _wmkdir(const wchar_t*);
55 int _wrmdir(const wchar_t*);
56 #endif /* _WDIRECT_DEFINED */
63 static inline int chdir(const char* newdir) { return _chdir(newdir); }
64 static inline char* getcwd(char * buf, int size) { return _getcwd(buf, size); }
65 static inline int mkdir(const char* newdir) { return _mkdir(newdir); }
66 static inline int rmdir(const char* dir) { return _rmdir(dir); }
68 #endif /* __WINE_DIRECT_H */