1 | /*
|
---|
2 | * Path and directory definitions
|
---|
3 | *
|
---|
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.
|
---|
7 | */
|
---|
8 | /*
|
---|
9 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
10 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
11 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
12 | * a choice of LGPL license versions is made available with the language indicating
|
---|
13 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
14 | * of the LGPL is applied is otherwise unspecified.
|
---|
15 | */
|
---|
16 |
|
---|
17 | #ifndef __WINE_DIRECT_H
|
---|
18 | #define __WINE_DIRECT_H
|
---|
19 |
|
---|
20 | #include <crtdefs.h>
|
---|
21 |
|
---|
22 | #include <pshpack8.h>
|
---|
23 |
|
---|
24 | #ifdef __cplusplus
|
---|
25 | extern "C" {
|
---|
26 | #endif
|
---|
27 |
|
---|
28 | #ifndef _DISKFREE_T_DEFINED
|
---|
29 | #define _DISKFREE_T_DEFINED
|
---|
30 | struct _diskfree_t {
|
---|
31 | unsigned int total_clusters;
|
---|
32 | unsigned int avail_clusters;
|
---|
33 | unsigned int sectors_per_cluster;
|
---|
34 | unsigned int bytes_per_sector;
|
---|
35 | };
|
---|
36 | #endif /* _DISKFREE_T_DEFINED */
|
---|
37 |
|
---|
38 | int __cdecl _chdir(const char*);
|
---|
39 | int __cdecl _chdrive(int);
|
---|
40 | char* __cdecl _getcwd(char*,int);
|
---|
41 | char* __cdecl _getdcwd(int,char*,int);
|
---|
42 | int __cdecl _getdrive(void);
|
---|
43 | unsigned long __cdecl _getdrives(void);
|
---|
44 | int __cdecl _mkdir(const char*);
|
---|
45 | int __cdecl _rmdir(const char*);
|
---|
46 |
|
---|
47 | #ifndef _WDIRECT_DEFINED
|
---|
48 | #define _WDIRECT_DEFINED
|
---|
49 | int __cdecl _wchdir(const wchar_t*);
|
---|
50 | wchar_t* __cdecl _wgetcwd(wchar_t*,int);
|
---|
51 | wchar_t* __cdecl _wgetdcwd(int,wchar_t*,int);
|
---|
52 | int __cdecl _wmkdir(const wchar_t*);
|
---|
53 | int __cdecl _wrmdir(const wchar_t*);
|
---|
54 | #endif /* _WDIRECT_DEFINED */
|
---|
55 |
|
---|
56 | #ifdef __cplusplus
|
---|
57 | }
|
---|
58 | #endif
|
---|
59 |
|
---|
60 |
|
---|
61 | static inline int chdir(const char* newdir) { return _chdir(newdir); }
|
---|
62 | static inline char* getcwd(char * buf, int size) { return _getcwd(buf, size); }
|
---|
63 | static inline int mkdir(const char* newdir) { return _mkdir(newdir); }
|
---|
64 | static inline int rmdir(const char* dir) { return _rmdir(dir); }
|
---|
65 |
|
---|
66 | #include <poppack.h>
|
---|
67 |
|
---|
68 | #endif /* __WINE_DIRECT_H */
|
---|