io_s.h 881 B

12345678910111213141516171819202122232425262728293031323334
  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_IO_S
  7. #define _INC_IO_S
  8. #include <io.h>
  9. #if defined(MINGW_HAS_SECURE_API)
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. _CRTIMP errno_t __cdecl _access_s(const char *_Filename,int _AccessMode);
  14. _CRTIMP errno_t __cdecl _chsize_s(int _FileHandle,__int64 _Size);
  15. _CRTIMP errno_t __cdecl _mktemp_s(char *_TemplateName,size_t _Size);
  16. _CRTIMP errno_t __cdecl _umask_s(int _NewMode,int *_OldMode);
  17. #ifndef _WIO_S_DEFINED
  18. #define _WIO_S_DEFINED
  19. _CRTIMP errno_t __cdecl _waccess_s(const wchar_t *_Filename,int _AccessMode);
  20. _CRTIMP errno_t __cdecl _wmktemp_s(wchar_t *_TemplateName,size_t _SizeInWords);
  21. #endif
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif
  26. #endif