dos.h 1.1 KB

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