PageRenderTime 45ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/mingw-w64-v2.0.999/mingw/mingw-w64-headers/crt/direct.h

#
C Header | 68 lines | 51 code | 12 blank | 5 comment | 0 complexity | 6869fc012fafff2189b20d206fafc6a6 MD5 | raw file
Possible License(s): LGPL-2.1, AGPL-1.0, LGPL-3.0, Unlicense, GPL-2.0, LGPL-2.0, BSD-3-Clause, GPL-3.0
  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. char *__cdecl _getdcwd_nolock(int _Drive,char *_DstBuf,int _SizeInBytes);
  26. _CRTIMP int __cdecl _chdir(const char *_Path);
  27. _CRTIMP int __cdecl _mkdir(const char *_Path);
  28. _CRTIMP int __cdecl _rmdir(const char *_Path);
  29. _CRTIMP int __cdecl _chdrive(int _Drive);
  30. _CRTIMP int __cdecl _getdrive(void);
  31. _CRTIMP unsigned long __cdecl _getdrives(void);
  32. #ifndef _GETDISKFREE_DEFINED
  33. #define _GETDISKFREE_DEFINED
  34. _CRTIMP unsigned __cdecl _getdiskfree(unsigned _Drive,struct _diskfree_t *_DiskFree);
  35. #endif
  36. #ifndef _WDIRECT_DEFINED
  37. #define _WDIRECT_DEFINED
  38. _CRTIMP wchar_t *__cdecl _wgetcwd(wchar_t *_DstBuf,int _SizeInWords);
  39. _CRTIMP wchar_t *__cdecl _wgetdcwd(int _Drive,wchar_t *_DstBuf,int _SizeInWords);
  40. wchar_t *__cdecl _wgetdcwd_nolock(int _Drive,wchar_t *_DstBuf,int _SizeInWords);
  41. _CRTIMP int __cdecl _wchdir(const wchar_t *_Path);
  42. _CRTIMP int __cdecl _wmkdir(const wchar_t *_Path);
  43. _CRTIMP int __cdecl _wrmdir(const wchar_t *_Path);
  44. #endif
  45. #ifndef NO_OLDNAMES
  46. #define diskfree_t _diskfree_t
  47. char *__cdecl getcwd(char *_DstBuf,int _SizeInBytes) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  48. int __cdecl chdir(const char *_Path) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  49. int __cdecl mkdir(const char *_Path) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  50. int __cdecl rmdir(const char *_Path) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  51. #endif
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55. #pragma pack(pop)
  56. #endif