2001-04-10 23:21:43 +00:00
|
|
|
/*
|
|
|
|
* Path and directory definitions
|
|
|
|
*
|
|
|
|
* Derived from the mingw header written by Colin Peters.
|
|
|
|
* Modified for Wine use by Jon Griffiths and Francois Gouget.
|
|
|
|
* This file is in the public domain.
|
|
|
|
*/
|
|
|
|
#ifndef __WINE_DIRECT_H
|
|
|
|
#define __WINE_DIRECT_H
|
2008-12-11 21:37:34 +00:00
|
|
|
|
2020-03-09 16:53:42 +00:00
|
|
|
#include <corecrt_wdirect.h>
|
2001-04-10 23:21:43 +00:00
|
|
|
|
2007-02-20 08:35:41 +00:00
|
|
|
#include <pshpack8.h>
|
|
|
|
|
2001-04-10 23:21:43 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2004-06-25 01:19:15 +00:00
|
|
|
#ifndef _DISKFREE_T_DEFINED
|
|
|
|
#define _DISKFREE_T_DEFINED
|
|
|
|
struct _diskfree_t {
|
2002-12-18 20:17:20 +00:00
|
|
|
unsigned int total_clusters;
|
|
|
|
unsigned int avail_clusters;
|
|
|
|
unsigned int sectors_per_cluster;
|
|
|
|
unsigned int bytes_per_sector;
|
|
|
|
};
|
2004-06-25 01:19:15 +00:00
|
|
|
#endif /* _DISKFREE_T_DEFINED */
|
2002-12-18 20:17:20 +00:00
|
|
|
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP int __cdecl _chdir(const char*);
|
|
|
|
_ACRTIMP int __cdecl _chdrive(int);
|
|
|
|
_ACRTIMP char* __cdecl _getcwd(char*,int);
|
|
|
|
_ACRTIMP char* __cdecl _getdcwd(int,char*,int);
|
|
|
|
_ACRTIMP int __cdecl _getdrive(void);
|
|
|
|
_ACRTIMP __msvcrt_ulong __cdecl _getdrives(void);
|
|
|
|
_ACRTIMP int __cdecl _mkdir(const char*);
|
|
|
|
_ACRTIMP int __cdecl _rmdir(const char*);
|
2001-04-10 23:21:43 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2003-03-22 21:15:41 +00:00
|
|
|
static inline int chdir(const char* newdir) { return _chdir(newdir); }
|
|
|
|
static inline char* getcwd(char * buf, int size) { return _getcwd(buf, size); }
|
|
|
|
static inline int mkdir(const char* newdir) { return _mkdir(newdir); }
|
|
|
|
static inline int rmdir(const char* dir) { return _rmdir(dir); }
|
2001-04-10 23:21:43 +00:00
|
|
|
|
2007-02-20 08:35:41 +00:00
|
|
|
#include <poppack.h>
|
|
|
|
|
2001-04-10 23:21:43 +00:00
|
|
|
#endif /* __WINE_DIRECT_H */
|