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_DOS
|
|
|
|
#define _INC_DOS
|
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
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
#ifndef _DISKFREE_T_DEFINED
|
|
|
|
#define _DISKFREE_T_DEFINED
|
2007-09-24 11:40:54 +00:00
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
#endif
|
2007-09-24 11:40:54 +00:00
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
#define _A_NORMAL 0x00
|
|
|
|
#define _A_RDONLY 0x01
|
|
|
|
#define _A_HIDDEN 0x02
|
|
|
|
#define _A_SYSTEM 0x04
|
2010-12-27 17:51:08 +00:00
|
|
|
#define _A_VOLID 0x08
|
2008-12-13 21:28:05 +00:00
|
|
|
#define _A_SUBDIR 0x10
|
2010-12-27 17:51:08 +00:00
|
|
|
#define _A_ARCH 0x20
|
2007-09-24 11:40:54 +00:00
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
#ifndef _GETDISKFREE_DEFINED
|
|
|
|
#define _GETDISKFREE_DEFINED
|
|
|
|
_CRTIMP unsigned __cdecl _getdiskfree(unsigned _Drive,struct _diskfree_t *_DiskFree);
|
2007-10-19 23:21:45 +00:00
|
|
|
#endif
|
2007-09-24 11:40:54 +00:00
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
#if (defined(_X86_) && !defined(__x86_64))
|
2008-12-23 02:15:24 +00:00
|
|
|
void __cdecl _disable(void);
|
|
|
|
void __cdecl _enable(void);
|
2008-12-13 21:28:05 +00:00
|
|
|
#endif
|
2007-09-24 11:40:54 +00:00
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
#ifndef NO_OLDNAMES
|
|
|
|
#define diskfree_t _diskfree_t
|
2007-09-24 11:40:54 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
#pragma pack(pop)
|
|
|
|
#endif
|