| 1 |
/** |
| 2 |
* This file has no copyright assigned and is placed in the Public Domain. |
| 3 |
* This file is part of the mingw-w64 runtime package. |
| 4 |
* No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| 5 |
*/ |
| 6 |
#ifndef _INC_DOS |
| 7 |
#define _INC_DOS |
| 8 |
|
| 9 |
#include <crtdefs.h> |
| 10 |
#include <io.h> |
| 11 |
|
| 12 |
#pragma pack(push,_CRT_PACKING) |
| 13 |
|
| 14 |
#ifdef __cplusplus |
| 15 |
extern "C" { |
| 16 |
#endif |
| 17 |
|
| 18 |
#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP |
| 19 |
#ifndef _DISKFREE_T_DEFINED |
| 20 |
#define _DISKFREE_T_DEFINED |
| 21 |
|
| 22 |
struct _diskfree_t { |
| 23 |
unsigned total_clusters; |
| 24 |
unsigned avail_clusters; |
| 25 |
unsigned sectors_per_cluster; |
| 26 |
unsigned bytes_per_sector; |
| 27 |
}; |
| 28 |
#endif |
| 29 |
|
| 30 |
#define _A_NORMAL 0x00 |
| 31 |
#define _A_RDONLY 0x01 |
| 32 |
#define _A_HIDDEN 0x02 |
| 33 |
#define _A_SYSTEM 0x04 |
| 34 |
#define _A_VOLID 0x08 |
| 35 |
#define _A_SUBDIR 0x10 |
| 36 |
#define _A_ARCH 0x20 |
| 37 |
|
| 38 |
#ifndef _GETDISKFREE_DEFINED |
| 39 |
#define _GETDISKFREE_DEFINED |
| 40 |
_CRTIMP unsigned __cdecl _getdiskfree(unsigned _Drive,struct _diskfree_t *_DiskFree); |
| 41 |
#endif |
| 42 |
#endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */ |
| 43 |
|
| 44 |
#if (defined(_X86_) && !defined(__x86_64)) |
| 45 |
void __cdecl _disable(void); |
| 46 |
void __cdecl _enable(void); |
| 47 |
#endif |
| 48 |
|
| 49 |
#ifndef NO_OLDNAMES |
| 50 |
#define diskfree_t _diskfree_t |
| 51 |
#endif |
| 52 |
|
| 53 |
#ifdef __cplusplus |
| 54 |
} |
| 55 |
#endif |
| 56 |
|
| 57 |
#pragma pack(pop) |
| 58 |
#endif |