merge trunk head (37902)
[reactos.git] / reactos / include / crt / sec_api / io_s.h
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
9 #include <io.h>
10
11 #if defined(MINGW_HAS_SECURE_API)
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 _CRTIMP errno_t __cdecl _access_s(const char *_Filename,int _AccessMode);
18 _CRTIMP errno_t __cdecl _chsize_s(int _FileHandle,__int64 _Size);
19 _CRTIMP errno_t __cdecl _mktemp_s(char *_TemplateName,size_t _Size);
20 _CRTIMP errno_t __cdecl _umask_s(int _NewMode,int *_OldMode);
21
22 #ifndef _WIO_S_DEFINED
23 #define _WIO_S_DEFINED
24 _CRTIMP errno_t __cdecl _waccess_s(const wchar_t *_Filename,int _AccessMode);
25 _CRTIMP errno_t __cdecl _wmktemp_s(wchar_t *_TemplateName,size_t _SizeInWords);
26 #endif
27
28 #ifdef __cplusplus
29 }
30 #endif
31
32 #endif
33 #endif