direct.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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_DIRECT
  7. #define _INC_DIRECT
  8. #include <crtdefs.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. _CRTIMP char *__cdecl _getcwd(char *_DstBuf,int _SizeInBytes);
  24. _CRTIMP char *__cdecl _getdcwd(int _Drive,char *_DstBuf,int _SizeInBytes);
  25. #if __MSVCRT_VERSION__ >= 0x800
  26. char *__cdecl _getdcwd_nolock(int _Drive,char *_DstBuf,int _SizeInBytes);
  27. #endif
  28. _CRTIMP int __cdecl _chdir(const char *_Path);
  29. _CRTIMP int __cdecl _mkdir(const char *_Path);
  30. _CRTIMP int __cdecl _rmdir(const char *_Path);
  31. #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
  32. _CRTIMP int __cdecl _chdrive(int _Drive);
  33. _CRTIMP int __cdecl _getdrive(void);
  34. _CRTIMP unsigned long __cdecl _getdrives(void);
  35. #ifndef _GETDISKFREE_DEFINED
  36. #define _GETDISKFREE_DEFINED
  37. _CRTIMP unsigned __cdecl _getdiskfree(unsigned _Drive,struct _diskfree_t *_DiskFree);
  38. #endif
  39. #endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
  40. #ifndef _WDIRECT_DEFINED
  41. #define _WDIRECT_DEFINED
  42. _CRTIMP wchar_t *__cdecl _wgetcwd(wchar_t *_DstBuf,int _SizeInWords);
  43. _CRTIMP wchar_t *__cdecl _wgetdcwd(int _Drive,wchar_t *_DstBuf,int _SizeInWords);
  44. #if __MSVCRT_VERSION__ >= 0x800
  45. wchar_t *__cdecl _wgetdcwd_nolock(int _Drive,wchar_t *_DstBuf,int _SizeInWords);
  46. #endif
  47. _CRTIMP int __cdecl _wchdir(const wchar_t *_Path);
  48. _CRTIMP int __cdecl _wmkdir(const wchar_t *_Path);
  49. _CRTIMP int __cdecl _wrmdir(const wchar_t *_Path);
  50. #endif
  51. #ifndef NO_OLDNAMES
  52. #define diskfree_t _diskfree_t
  53. char *__cdecl getcwd(char *_DstBuf,int _SizeInBytes) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  54. int __cdecl chdir(const char *_Path) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  55. int __cdecl mkdir(const char *_Path) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  56. int __cdecl rmdir(const char *_Path) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  57. #endif
  58. #ifdef __cplusplus
  59. }
  60. #endif
  61. #pragma pack(pop)
  62. #endif