2008-12-13 21:28:05 +00:00
|
|
|
/**
|
2007-09-24 11:40:54 +00:00
|
|
|
* This file has no copyright assigned and is placed in the Public Domain.
|
2008-12-13 21:28:05 +00:00
|
|
|
* This file is part of the w64 mingw-runtime package.
|
|
|
|
* No warranty is given; refer to the file DISCLAIMER within this package.
|
2007-09-24 11:40:54 +00:00
|
|
|
*/
|
2008-12-13 21:28:05 +00:00
|
|
|
#ifndef _INC_DIRECT
|
|
|
|
#define _INC_DIRECT
|
2007-09-24 11:40:54 +00:00
|
|
|
|
2008-12-21 23:33:19 +00:00
|
|
|
#include <crtdefs.h>
|
2007-09-24 11:40:54 +00:00
|
|
|
#include <io.h>
|
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
#pragma pack(push,_CRT_PACKING)
|
2007-09-24 11:40:54 +00:00
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
#ifdef __cplusplus
|
2007-09-24 11:40:54 +00:00
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _DISKFREE_T_DEFINED
|
|
|
|
#define _DISKFREE_T_DEFINED
|
2008-12-13 21:28:05 +00:00
|
|
|
struct _diskfree_t {
|
|
|
|
unsigned total_clusters;
|
|
|
|
unsigned avail_clusters;
|
|
|
|
unsigned sectors_per_cluster;
|
|
|
|
unsigned bytes_per_sector;
|
|
|
|
};
|
2007-10-19 23:21:45 +00:00
|
|
|
#endif
|
2007-09-24 11:40:54 +00:00
|
|
|
|
2013-03-14 16:53:56 +00:00
|
|
|
_Check_return_
|
|
|
|
_Ret_opt_z_
|
|
|
|
_CRTIMP
|
|
|
|
char*
|
|
|
|
__cdecl
|
|
|
|
_getcwd(
|
|
|
|
_Out_writes_opt_(_SizeInBytes) char *_DstBuf,
|
|
|
|
_In_ int _SizeInBytes);
|
|
|
|
|
|
|
|
_Check_return_
|
|
|
|
_Ret_opt_z_
|
|
|
|
_CRTIMP
|
|
|
|
char*
|
|
|
|
__cdecl
|
|
|
|
_getdcwd(
|
|
|
|
_In_ int _Drive,
|
|
|
|
_Out_writes_opt_(_SizeInBytes) char *_DstBuf,
|
|
|
|
_In_ int _SizeInBytes);
|
|
|
|
|
|
|
|
_Check_return_
|
|
|
|
_Ret_opt_z_
|
|
|
|
char*
|
|
|
|
__cdecl
|
|
|
|
_getdcwd_nolock(
|
|
|
|
_In_ int _Drive,
|
|
|
|
_Out_writes_opt_(_SizeInBytes) char *_DstBuf,
|
|
|
|
_In_ int _SizeInBytes);
|
|
|
|
|
|
|
|
_Check_return_
|
|
|
|
_CRTIMP
|
|
|
|
int
|
|
|
|
__cdecl
|
|
|
|
_chdir(
|
|
|
|
_In_z_ const char *_Path);
|
|
|
|
|
|
|
|
_Check_return_
|
|
|
|
_CRTIMP
|
|
|
|
int
|
|
|
|
__cdecl
|
|
|
|
_mkdir(
|
|
|
|
_In_z_ const char *_Path);
|
|
|
|
|
|
|
|
_Check_return_
|
|
|
|
_CRTIMP
|
|
|
|
int
|
|
|
|
__cdecl
|
|
|
|
_rmdir(
|
|
|
|
_In_z_ const char *_Path);
|
|
|
|
|
|
|
|
_Check_return_
|
|
|
|
_CRTIMP
|
|
|
|
int
|
|
|
|
__cdecl
|
|
|
|
_chdrive(
|
|
|
|
_In_ int _Drive);
|
|
|
|
|
|
|
|
_Check_return_
|
|
|
|
_CRTIMP
|
|
|
|
int
|
|
|
|
__cdecl
|
|
|
|
_getdrive(void);
|
|
|
|
|
|
|
|
_Check_return_
|
|
|
|
_CRTIMP
|
|
|
|
unsigned long
|
|
|
|
__cdecl
|
|
|
|
_getdrives(void);
|
2007-09-24 11:40:54 +00:00
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
#ifndef _GETDISKFREE_DEFINED
|
|
|
|
#define _GETDISKFREE_DEFINED
|
2013-03-14 16:53:56 +00:00
|
|
|
_Check_return_
|
|
|
|
_CRTIMP
|
|
|
|
unsigned
|
|
|
|
__cdecl
|
|
|
|
_getdiskfree(
|
|
|
|
_In_ unsigned _Drive,
|
|
|
|
_Out_ struct _diskfree_t *_DiskFree);
|
2007-09-24 11:40:54 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _WDIRECT_DEFINED
|
|
|
|
#define _WDIRECT_DEFINED
|
|
|
|
|
2013-03-14 16:53:56 +00:00
|
|
|
_Check_return_
|
|
|
|
_Ret_opt_z_
|
|
|
|
_CRTIMP
|
|
|
|
wchar_t*
|
|
|
|
__cdecl
|
|
|
|
_wgetcwd(
|
|
|
|
_Out_writes_opt_(_SizeInWords) wchar_t *_DstBuf,
|
|
|
|
_In_ int _SizeInWords);
|
|
|
|
|
|
|
|
_Check_return_
|
|
|
|
_Ret_opt_z_
|
|
|
|
_CRTIMP
|
|
|
|
wchar_t*
|
|
|
|
__cdecl
|
|
|
|
_wgetdcwd(
|
|
|
|
_In_ int _Drive,
|
|
|
|
_Out_writes_opt_(_SizeInWords) wchar_t *_DstBuf,
|
|
|
|
_In_ int _SizeInWords);
|
|
|
|
|
|
|
|
_Check_return_
|
|
|
|
_Ret_opt_z_
|
|
|
|
wchar_t*
|
|
|
|
__cdecl
|
|
|
|
_wgetdcwd_nolock(
|
|
|
|
_In_ int _Drive,
|
|
|
|
_Out_writes_opt_(_SizeInWords) wchar_t *_DstBuf,
|
|
|
|
_In_ int _SizeInWords);
|
|
|
|
|
|
|
|
_Check_return_
|
|
|
|
_CRTIMP
|
|
|
|
int
|
|
|
|
__cdecl
|
|
|
|
_wchdir(
|
|
|
|
_In_z_ const wchar_t *_Path);
|
|
|
|
|
|
|
|
_Check_return_
|
|
|
|
_CRTIMP
|
|
|
|
int
|
|
|
|
__cdecl
|
|
|
|
_wmkdir(
|
|
|
|
_In_z_ const wchar_t *_Path);
|
|
|
|
|
|
|
|
_Check_return_
|
|
|
|
_CRTIMP
|
|
|
|
int
|
|
|
|
__cdecl
|
|
|
|
_wrmdir(
|
|
|
|
_In_z_ const wchar_t *_Path);
|
|
|
|
|
|
|
|
#endif /* _WDIRECT_DEFINED */
|
|
|
|
|
|
|
|
#ifndef NO_OLDNAMES
|
2008-12-13 21:28:05 +00:00
|
|
|
|
|
|
|
#define diskfree_t _diskfree_t
|
|
|
|
|
2013-03-14 16:53:56 +00:00
|
|
|
_Check_return_
|
|
|
|
_Ret_opt_z_
|
|
|
|
_CRTIMP
|
|
|
|
char*
|
|
|
|
__cdecl
|
|
|
|
getcwd(
|
|
|
|
_Out_writes_opt_(_SizeInBytes) char *_DstBuf,
|
|
|
|
_In_ int _SizeInBytes);
|
|
|
|
|
|
|
|
_Check_return_
|
|
|
|
_CRTIMP
|
|
|
|
int
|
|
|
|
__cdecl
|
|
|
|
chdir(
|
|
|
|
_In_z_ const char *_Path);
|
|
|
|
|
|
|
|
_Check_return_
|
|
|
|
_CRTIMP
|
|
|
|
int
|
|
|
|
__cdecl
|
|
|
|
mkdir(
|
|
|
|
_In_z_ const char *_Path);
|
|
|
|
|
|
|
|
_Check_return_
|
|
|
|
_CRTIMP
|
|
|
|
int
|
|
|
|
__cdecl
|
|
|
|
rmdir(
|
|
|
|
_In_z_ const char *_Path);
|
|
|
|
|
|
|
|
#endif /* NO_OLDNAMES */
|
2007-09-24 11:40:54 +00:00
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2007-09-24 11:40:54 +00:00
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
#pragma pack(pop)
|
|
|
|
#endif
|