dos.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. #include <crtdefs.h>
  9. #include <io.h>
  10. #pragma pack(push,_CRT_PACKING)
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
  15. #ifndef _DISKFREE_T_DEFINED
  16. #define _DISKFREE_T_DEFINED
  17. struct _diskfree_t {
  18. unsigned total_clusters;
  19. unsigned avail_clusters;
  20. unsigned sectors_per_cluster;
  21. unsigned bytes_per_sector;
  22. };
  23. #endif
  24. #define _A_NORMAL 0x00
  25. #define _A_RDONLY 0x01
  26. #define _A_HIDDEN 0x02
  27. #define _A_SYSTEM 0x04
  28. #define _A_VOLID 0x08
  29. #define _A_SUBDIR 0x10
  30. #define _A_ARCH 0x20
  31. #ifndef _GETDISKFREE_DEFINED
  32. #define _GETDISKFREE_DEFINED
  33. _CRTIMP unsigned __cdecl _getdiskfree(unsigned _Drive,struct _diskfree_t *_DiskFree);
  34. #endif
  35. #endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
  36. #if (defined(_X86_) && !defined(__x86_64))
  37. void __cdecl _disable(void);
  38. void __cdecl _enable(void);
  39. #endif
  40. #ifndef NO_OLDNAMES
  41. #define diskfree_t _diskfree_t
  42. #endif
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46. #pragma pack(pop)
  47. #endif