STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
io.h
Go to the documentation of this file.
1 /***
2 *io.h - declarations for low-level file handling and I/O functions
3 *
4 * Copyright (c) Microsoft Corporation. All rights reserved.
5 *
6 *Purpose:
7 * This file contains the function declarations for the low-level
8 * file handling and I/O functions.
9 *
10 * [Public]
11 *
12 ****/
13 
14 #pragma once
15 
16 #ifndef _INC_IO
17 #define _INC_IO
18 
19 #include <crtdefs.h>
20 
21 /*
22  * Currently, all MS C compilers for Win32 platforms default to 8 byte
23  * alignment.
24  */
25 #pragma pack(push,_CRT_PACKING)
26 
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif /* __cplusplus */
31 
32 #ifndef _FSIZE_T_DEFINED
33 typedef unsigned long _fsize_t; /* Could be 64 bits for Win32 */
34 #define _FSIZE_T_DEFINED
35 #endif /* _FSIZE_T_DEFINED */
36 
37 #ifndef _FINDDATA_T_DEFINED
38 
39 struct _finddata32_t {
40  unsigned attrib;
41  __time32_t time_create; /* -1 for FAT file systems */
42  __time32_t time_access; /* -1 for FAT file systems */
44  _fsize_t size;
45  char name[260];
46 };
47 
49  unsigned attrib;
50  __time32_t time_create; /* -1 for FAT file systems */
51  __time32_t time_access; /* -1 for FAT file systems */
53  __int64 size;
54  char name[260];
55 };
56 
58  unsigned attrib;
59  __time64_t time_create; /* -1 for FAT file systems */
60  __time64_t time_access; /* -1 for FAT file systems */
62  _fsize_t size;
63  char name[260];
64 };
65 
67  unsigned attrib;
68  __time64_t time_create; /* -1 for FAT file systems */
69  __time64_t time_access; /* -1 for FAT file systems */
71  __int64 size;
72  char name[260];
73 };
74 
75 #ifdef _USE_32BIT_TIME_T
76 #define _finddata_t _finddata32_t
77 #define _finddatai64_t _finddata32i64_t
78 
79 #define _findfirst _findfirst32
80 #define _findnext _findnext32
81 #define _findfirsti64 _findfirst32i64
82 #define _findnexti64 _findnext32i64
83 
84 #else /* _USE_32BIT_TIME_T */
85 #define _finddata_t _finddata64i32_t
86 #define _finddatai64_t __finddata64_t
87 
88 #define _findfirst _findfirst64i32
89 #define _findnext _findnext64i32
90 #define _findfirsti64 _findfirst64
91 #define _findnexti64 _findnext64
92 
93 #endif /* _USE_32BIT_TIME_T */
94 
95 
96 #define _FINDDATA_T_DEFINED
97 #endif /* _FINDDATA_T_DEFINED */
98 
99 #ifndef _WFINDDATA_T_DEFINED
100 
102  unsigned attrib;
103  __time32_t time_create; /* -1 for FAT file systems */
104  __time32_t time_access; /* -1 for FAT file systems */
106  _fsize_t size;
107  wchar_t name[260];
108 };
109 
111  unsigned attrib;
112  __time32_t time_create; /* -1 for FAT file systems */
113  __time32_t time_access; /* -1 for FAT file systems */
115  __int64 size;
116  wchar_t name[260];
117 };
118 
120  unsigned attrib;
121  __time64_t time_create; /* -1 for FAT file systems */
122  __time64_t time_access; /* -1 for FAT file systems */
124  _fsize_t size;
125  wchar_t name[260];
126 };
127 
129  unsigned attrib;
130  __time64_t time_create; /* -1 for FAT file systems */
131  __time64_t time_access; /* -1 for FAT file systems */
133  __int64 size;
134  wchar_t name[260];
135 };
136 
137 #ifdef _USE_32BIT_TIME_T
138 #define _wfinddata_t _wfinddata32_t
139 #define _wfinddatai64_t _wfinddata32i64_t
140 
141 #define _wfindfirst _wfindfirst32
142 #define _wfindnext _wfindnext32
143 #define _wfindfirsti64 _wfindfirst32i64
144 #define _wfindnexti64 _wfindnext32i64
145 
146 #else /* _USE_32BIT_TIME_T */
147 #define _wfinddata_t _wfinddata64i32_t
148 #define _wfinddatai64_t _wfinddata64_t
149 
150 #define _wfindfirst _wfindfirst64i32
151 #define _wfindnext _wfindnext64i32
152 #define _wfindfirsti64 _wfindfirst64
153 #define _wfindnexti64 _wfindnext64
154 
155 #endif /* _USE_32BIT_TIME_T */
156 
157 #define _WFINDDATA_T_DEFINED
158 #endif /* _WFINDDATA_T_DEFINED */
159 
160 /* File attribute constants for _findfirst() */
161 
162 #define _A_NORMAL 0x00 /* Normal file - No read/write restrictions */
163 #define _A_RDONLY 0x01 /* Read only file */
164 #define _A_HIDDEN 0x02 /* Hidden file */
165 #define _A_SYSTEM 0x04 /* System file */
166 #define _A_SUBDIR 0x10 /* Subdirectory */
167 #define _A_ARCH 0x20 /* Archive file */
168 
169 /* function prototypes */
170 
171 #ifndef _SIZE_T_DEFINED
172 #ifdef _WIN64
173 typedef unsigned __int64 size_t;
174 #else /* _WIN64 */
175 typedef _W64 unsigned int size_t;
176 #endif /* _WIN64 */
177 #define _SIZE_T_DEFINED
178 #endif /* _SIZE_T_DEFINED */
179 
180 _Check_return_ _CRTIMP int __cdecl _access(_In_z_ const char * _Filename, _In_ int _AccessMode);
182 _Check_return_ _CRTIMP int __cdecl _chmod(_In_z_ const char * _Filename, _In_ int _Mode);
183 /* note that the newly added _chsize_s takes a 64 bit value */
184 _Check_return_ _CRTIMP int __cdecl _chsize(_In_ int _FileHandle, _In_ long _Size);
185 _Check_return_wat_ _CRTIMP errno_t __cdecl _chsize_s(_In_ int _FileHandle,_In_ __int64 _Size);
186 _Check_return_opt_ _CRTIMP int __cdecl _close(_In_ int _FileHandle);
187 _Check_return_opt_ _CRTIMP int __cdecl _commit(_In_ int _FileHandle);
189 _Check_return_ _CRTIMP int __cdecl _dup(_In_ int _FileHandle);
190 _Check_return_ _CRTIMP int __cdecl _dup2(_In_ int _FileHandleSrc, _In_ int _FileHandleDst);
191 _Check_return_ _CRTIMP int __cdecl _eof(_In_ int _FileHandle);
192 _Check_return_ _CRTIMP long __cdecl _filelength(_In_ int _FileHandle);
193 _Check_return_ _CRTIMP intptr_t __cdecl _findfirst32(_In_z_ const char * _Filename, _Out_ struct _finddata32_t * _FindData);
194 _Check_return_ _CRTIMP int __cdecl _findnext32(_In_ intptr_t _FindHandle, _Out_ struct _finddata32_t * _FindData);
195 _Check_return_opt_ _CRTIMP int __cdecl _findclose(_In_ intptr_t _FindHandle);
196 _Check_return_ _CRTIMP int __cdecl _isatty(_In_ int _FileHandle);
197 _CRTIMP int __cdecl _locking(_In_ int _FileHandle, _In_ int _LockMode, _In_ long _NumOfBytes);
198 _Check_return_opt_ _CRTIMP long __cdecl _lseek(_In_ int _FileHandle, _In_ long _Offset, _In_ int _Origin);
199 _Check_return_wat_ _CRTIMP errno_t __cdecl _mktemp_s(_Inout_updates_z_(_Size) char * _TemplateName, _In_ size_t _Size);
202 #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
203 _Check_return_ _CRTIMP int __cdecl _pipe(_Inout_updates_(2) int * _PtHandles, _In_ unsigned int _PipeSize, _In_ int _TextMode);
204 #endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
205 _Check_return_ _CRTIMP int __cdecl _read(_In_ int _FileHandle, _Out_writes_bytes_(_MaxCharCount) void * _DstBuf, _In_ unsigned int _MaxCharCount);
206 
207 #ifndef _CRT_DIRECTORY_DEFINED
208 #define _CRT_DIRECTORY_DEFINED
209 _CRTIMP int __cdecl remove(_In_z_ const char * _Filename);
210 _Check_return_ _CRTIMP int __cdecl rename(_In_z_ const char * _OldFilename, _In_z_ const char * _NewFilename);
211 _CRTIMP int __cdecl _unlink(_In_z_ const char * _Filename);
212 #if !__STDC__
213 _CRT_NONSTDC_DEPRECATE(_unlink) _CRTIMP int __cdecl unlink(_In_z_ const char * _Filename);
214 #endif /* !__STDC__ */
215 #endif /* _CRT_DIRECTORY_DEFINED */
216 
217 _Check_return_ _CRTIMP int __cdecl _setmode(_In_ int _FileHandle, _In_ int _Mode);
218 _Check_return_ _CRTIMP long __cdecl _tell(_In_ int _FileHandle);
219 _CRT_INSECURE_DEPRECATE(_umask_s) _CRTIMP int __cdecl _umask(_In_ int _Mode);
220 _Check_return_wat_ _CRTIMP errno_t __cdecl _umask_s(_In_ int _NewMode, _Out_ int * _OldMode);
221 _CRTIMP int __cdecl _write(_In_ int _FileHandle, _In_reads_bytes_(_MaxCharCount) const void * _Buf, _In_ unsigned int _MaxCharCount);
222 
223 _Check_return_ _CRTIMP __int64 __cdecl _filelengthi64(_In_ int _FileHandle);
224 _Check_return_ _CRTIMP intptr_t __cdecl _findfirst32i64(_In_z_ const char * _Filename, _Out_ struct _finddata32i64_t * _FindData);
225 _Check_return_ _CRTIMP intptr_t __cdecl _findfirst64i32(_In_z_ const char * _Filename, _Out_ struct _finddata64i32_t * _FindData);
226 _Check_return_ _CRTIMP intptr_t __cdecl _findfirst64(_In_z_ const char * _Filename, _Out_ struct __finddata64_t * _FindData);
227 _Check_return_ _CRTIMP int __cdecl _findnext32i64(_In_ intptr_t _FindHandle, _Out_ struct _finddata32i64_t * _FindData);
228 _Check_return_ _CRTIMP int __cdecl _findnext64i32(_In_ intptr_t _FindHandle, _Out_ struct _finddata64i32_t * _FindData);
229 _Check_return_ _CRTIMP int __cdecl _findnext64(_In_ intptr_t _FindHandle, _Out_ struct __finddata64_t * _FindData);
230 _Check_return_opt_ _CRTIMP __int64 __cdecl _lseeki64(_In_ int _FileHandle, _In_ __int64 _Offset, _In_ int _Origin);
231 _Check_return_ _CRTIMP __int64 __cdecl _telli64(_In_ int _FileHandle);
232 
233 _Check_return_wat_ _CRTIMP errno_t __cdecl _sopen_s(_Out_ int * _FileHandle, _In_z_ const char * _Filename,_In_ int _OpenFlag, _In_ int _ShareFlag, _In_ int _PermissionMode);
234 _Check_return_ errno_t __cdecl _sopen_s_nolock(_Out_ int * _FileHandle, _In_z_ const char * _Filename,_In_ int _OpenFlag, _In_ int _ShareFlag, _In_ int _PermissionMode);
235 
236 #if !defined (__cplusplus)
237 _Check_return_ _CRT_INSECURE_DEPRECATE(_sopen_s) _CRTIMP int __cdecl _open(_In_z_ const char * _Filename, _In_ int _OpenFlag, ...);
238 _Check_return_ _CRT_INSECURE_DEPRECATE(_sopen_s) _CRTIMP int __cdecl _sopen(_In_z_ const char * _Filename, _In_ int _OpenFlag, int _ShareFlag, ...);
239 #else /* !defined (__cplusplus) */
240 
241 /* these function do not validate pmode; use _sopen_s */
242 extern "C++" _Check_return_ _CRT_INSECURE_DEPRECATE(_sopen_s) _CRTIMP int __cdecl _open(_In_z_ const char * _Filename, _In_ int _Openflag, _In_ int _PermissionMode = 0);
243 extern "C++" _Check_return_ _CRT_INSECURE_DEPRECATE(_sopen_s) _CRTIMP int __cdecl _sopen(_In_z_ const char * _Filename, _In_ int _Openflag, _In_ int _ShareFlag, _In_ int _PermissionMode = 0);
244 
245 #endif /* !defined (__cplusplus) */
246 
247 #ifndef _WIO_DEFINED
248 
249 /* wide function prototypes, also declared in wchar.h */
250 
251 _Check_return_ _CRTIMP int __cdecl _waccess(_In_z_ const wchar_t * _Filename, _In_ int _AccessMode);
252 _Check_return_wat_ _CRTIMP errno_t __cdecl _waccess_s(_In_z_ const wchar_t * _Filename, _In_ int _AccessMode);
253 _Check_return_ _CRTIMP int __cdecl _wchmod(_In_z_ const wchar_t * _Filename, _In_ int _Mode);
254 _Check_return_ _CRT_INSECURE_DEPRECATE(_wsopen_s) _CRTIMP int __cdecl _wcreat(_In_z_ const wchar_t * _Filename, _In_ int _PermissionMode);
255 _Check_return_ _CRTIMP intptr_t __cdecl _wfindfirst32(_In_z_ const wchar_t * _Filename, _Out_ struct _wfinddata32_t * _FindData);
256 _Check_return_ _CRTIMP int __cdecl _wfindnext32(_In_ intptr_t _FindHandle, _Out_ struct _wfinddata32_t * _FindData);
257 _CRTIMP int __cdecl _wunlink(_In_z_ const wchar_t * _Filename);
258 _Check_return_ _CRTIMP int __cdecl _wrename(_In_z_ const wchar_t * _OldFilename, _In_z_ const wchar_t * _NewFilename);
259 _CRTIMP errno_t __cdecl _wmktemp_s(_Inout_updates_z_(_SizeInWords) wchar_t * _TemplateName, _In_ size_t _SizeInWords);
260 __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0(errno_t, _wmktemp_s, _Prepost_z_ wchar_t, _TemplateName)
261 __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0(wchar_t *, __RETURN_POLICY_DST, _CRTIMP, _wmktemp, _Inout_z_, wchar_t, _TemplateName)
262 
263 _Check_return_ _CRTIMP intptr_t __cdecl _wfindfirst32i64(_In_z_ const wchar_t * _Filename, _Out_ struct _wfinddata32i64_t * _FindData);
264 _Check_return_ _CRTIMP intptr_t __cdecl _wfindfirst64i32(_In_z_ const wchar_t * _Filename, _Out_ struct _wfinddata64i32_t * _FindData);
265 _Check_return_ _CRTIMP intptr_t __cdecl _wfindfirst64(_In_z_ const wchar_t * _Filename, _Out_ struct _wfinddata64_t * _FindData);
266 _Check_return_ _CRTIMP int __cdecl _wfindnext32i64(_In_ intptr_t _FindHandle, _Out_ struct _wfinddata32i64_t * _FindData);
267 _Check_return_ _CRTIMP int __cdecl _wfindnext64i32(_In_ intptr_t _FindHandle, _Out_ struct _wfinddata64i32_t * _FindData);
268 _Check_return_ _CRTIMP int __cdecl _wfindnext64(_In_ intptr_t _FindHandle, _Out_ struct _wfinddata64_t * _FindData);
269 
270 _Check_return_wat_ _CRTIMP errno_t __cdecl _wsopen_s(_Out_ int * _FileHandle, _In_z_ const wchar_t * _Filename, _In_ int _OpenFlag, _In_ int _ShareFlag, _In_ int _PermissionFlag);
271 
272 #if !defined (__cplusplus) || !defined (_M_IX86)
273 
274 _Check_return_ _CRT_INSECURE_DEPRECATE(_wsopen_s) _CRTIMP int __cdecl _wopen(_In_z_ const wchar_t * _Filename, _In_ int _OpenFlag, ...);
275 _Check_return_ _CRT_INSECURE_DEPRECATE(_wsopen_s) _CRTIMP int __cdecl _wsopen(_In_z_ const wchar_t * _Filename, _In_ int _OpenFlag, int _ShareFlag, ...);
276 
277 #else /* !defined (__cplusplus) || !defined (_M_IX86) */
278 
279 /* these function do not validate pmode; use _sopen_s */
280 extern "C++" _CRT_INSECURE_DEPRECATE(_wsopen_s) _CRTIMP int __cdecl _wopen(_In_z_ const wchar_t * _Filename, _In_ int _OpenFlag, _In_ int _PermissionMode = 0);
281 extern "C++" _CRT_INSECURE_DEPRECATE(_wsopen_s) _CRTIMP int __cdecl _wsopen(_In_z_ const wchar_t * _Filename, _In_ int _OpenFlag, _In_ int _ShareFlag, int _PermissionMode = 0);
282 
283 #endif /* !defined (__cplusplus) || !defined (_M_IX86) */
284 
285 #define _WIO_DEFINED
286 #endif /* _WIO_DEFINED */
287 
288 int __cdecl __lock_fhandle(_In_ int _Filehandle);
289 void __cdecl _unlock_fhandle(_In_ int _Filehandle);
290 
291 #ifdef _CRTBLD
292 #ifndef _NOT_CRTL_BUILD_
293 _Check_return_ int __cdecl _chsize_nolock(_In_ int _FileHandle,_In_ __int64 _Size);
294 _Check_return_opt_ int __cdecl _close_nolock(_In_ int _FileHandle);
295 _Check_return_opt_ long __cdecl _lseek_nolock(_In_ int _FileHandle, _In_ long _Offset, _In_ int _Origin);
296 _Check_return_ int __cdecl _setmode_nolock(_In_ int _FileHandle, _In_ int _Mode);
297 _Check_return_ int __cdecl _read_nolock(_In_ int _FileHandle, _Out_writes_bytes_(_MaxCharCount) void * _DstBuf, _In_ unsigned int _MaxCharCount);
298 _Check_return_ int __cdecl _write_nolock(_In_ int _FileHandle, _In_reads_bytes_(_MaxCharCount) const void * _Buf, _In_ unsigned int _MaxCharCount);
299 _Check_return_opt_ __int64 __cdecl _lseeki64_nolock(_In_ int _FileHandle, _In_ __int64 _Offset, _In_ int _Origin);
300 
301 #if defined (_CRT_DISABLE_PERFCRIT_LOCKS) && !defined (_DLL)
302 #define _chsize(fh, size) _chsize_nolock(fh, size)
303 #define _close(fh) _close_nolock(fh)
304 #define _lseek(fh, offset, origin) _lseek_nolock(fh, offset, origin)
305 #define _setmode(fh, mode) _setmode_nolock(fh, mode)
306 #define _read(fh, buff, count) _read_nolock(fh, buff, count)
307 #define _write(fh, buff, count) _write_nolock(fh, buff, count)
308 #define _lseeki64(fh,offset,origin) _lseeki64_nolock(fh,offset,origin)
309 #endif /* defined (_CRT_DISABLE_PERFCRIT_LOCKS) && !defined (_DLL) */
310 
311 #endif /* _NOT_CRTL_BUILD_ */
312 #endif /* _CRTBLD */
313 
314 _CRTIMP intptr_t __cdecl _get_osfhandle(_In_ int _FileHandle);
315 _CRTIMP int __cdecl _open_osfhandle(_In_ intptr_t _OSFileHandle, _In_ int _Flags);
316 
317 #if !__STDC__
318 
319 /* Non-ANSI names for compatibility */
320 
321 #pragma warning(push)
322 #pragma warning(disable: 4141) /* Using deprecated twice */
323 _Check_return_ _CRT_NONSTDC_DEPRECATE(_access) _CRTIMP int __cdecl access(_In_z_ const char * _Filename, _In_ int _AccessMode);
324 _Check_return_ _CRT_NONSTDC_DEPRECATE(_chmod) _CRTIMP int __cdecl chmod(_In_z_ const char * _Filename, int _AccessMode);
325 _Check_return_ _CRT_NONSTDC_DEPRECATE(_chsize) _CRTIMP int __cdecl chsize(_In_ int _FileHandle, _In_ long _Size);
326 _Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_close) _CRTIMP int __cdecl close(_In_ int _FileHandle);
327 _Check_return_ _CRT_NONSTDC_DEPRECATE(_creat) _CRT_INSECURE_DEPRECATE(_sopen_s) _CRTIMP int __cdecl creat(_In_z_ const char * _Filename, _In_ int _PermissionMode);
328 _Check_return_ _CRT_NONSTDC_DEPRECATE(_dup) _CRTIMP int __cdecl dup(_In_ int _FileHandle);
329 _Check_return_ _CRT_NONSTDC_DEPRECATE(_dup2) _CRTIMP int __cdecl dup2(_In_ int _FileHandleSrc, _In_ int _FileHandleDst);
330 _Check_return_ _CRT_NONSTDC_DEPRECATE(_eof) _CRTIMP int __cdecl eof(_In_ int _FileHandle);
331 _Check_return_ _CRT_NONSTDC_DEPRECATE(_filelength) _CRTIMP long __cdecl filelength(_In_ int _FileHandle);
332 _Check_return_ _CRT_NONSTDC_DEPRECATE(_isatty) _CRTIMP int __cdecl isatty(_In_ int _FileHandle);
333 _Check_return_ _CRT_NONSTDC_DEPRECATE(_locking) _CRTIMP int __cdecl locking(_In_ int _FileHandle, _In_ int _LockMode, _In_ long _NumOfBytes);
334 _Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_lseek) _CRTIMP long __cdecl lseek(_In_ int _FileHandle, _In_ long _Offset, _In_ int _Origin);
335 _CRT_NONSTDC_DEPRECATE(_mktemp) _CRT_INSECURE_DEPRECATE(_mktemp_s) _CRTIMP char * __cdecl mktemp(_Inout_z_ char * _TemplateName);
336 _Check_return_ _CRT_NONSTDC_DEPRECATE(_open) _CRT_INSECURE_DEPRECATE(_sopen_s) _CRTIMP int __cdecl open(_In_z_ const char * _Filename, _In_ int _OpenFlag, ...);
337 _CRT_NONSTDC_DEPRECATE(_read) _CRTIMP int __cdecl read(int _FileHandle, _Out_writes_bytes_(_MaxCharCount) void * _DstBuf, _In_ unsigned int _MaxCharCount);
338 _Check_return_ _CRT_NONSTDC_DEPRECATE(_setmode) _CRTIMP int __cdecl setmode(_In_ int _FileHandle, _In_ int _Mode);
339 _CRT_NONSTDC_DEPRECATE(_sopen) _CRT_INSECURE_DEPRECATE(_sopen_s) _CRTIMP int __cdecl sopen(const char * _Filename, _In_ int _OpenFlag, _In_ int _ShareFlag, ...);
340 _Check_return_ _CRT_NONSTDC_DEPRECATE(_tell) _CRTIMP long __cdecl tell(_In_ int _FileHandle);
341 _CRT_NONSTDC_DEPRECATE(_umask) _CRT_INSECURE_DEPRECATE(_umask_s) _CRTIMP int __cdecl umask(_In_ int _Mode);
342 _Check_return_ _CRT_NONSTDC_DEPRECATE(_write) _CRTIMP int __cdecl write(_In_ int _Filehandle, _In_reads_bytes_(_MaxCharCount) const void * _Buf, _In_ unsigned int _MaxCharCount);
343 #pragma warning(pop)
344 
345 #endif /* !__STDC__ */
346 
347 #ifdef __cplusplus
348 }
349 #endif /* __cplusplus */
350 
351 
352 #pragma pack(pop)
353 
354 #endif /* _INC_IO */
_Check_return_ _CRTIMP int __cdecl _findnext32i64(_In_ intptr_t _FindHandle, _Out_ struct _finddata32i64_t *_FindData)
#define _Out_
Definition: sal.h:351
_Check_return_ _In_ int _OpenFlag
Definition: io.h:237
_Check_return_ _CRTIMP int __cdecl _wfindnext64(_In_ intptr_t _FindHandle, _Out_ struct _wfinddata64_t *_FindData)
_Check_return_opt_ _In_ long _Offset
Definition: io.h:334
char name[260]
Definition: io.h:63
_Check_return_ _In_ int _Check_return_ _In_ int int _ShareFlag
Definition: io.h:238
_Check_return_ _CRTIMP int __cdecl _wfindnext64i32(_In_ intptr_t _FindHandle, _Out_ struct _wfinddata64i32_t *_FindData)
_Check_return_ _In_ unsigned int _PipeSize
Definition: io.h:203
_Check_return_ _In_reads_bytes_(_MaxCharCount) const void *_Buf
_Check_return_opt_ _CRTIMP int __cdecl _close(_In_ int _FileHandle)
_Check_return_opt_ _CRTIMP long __cdecl _lseek(_In_ int _FileHandle, _In_ long _Offset, _In_ int _Origin)
__int64 size
Definition: io.h:115
__time64_t time_write
Definition: io.h:70
__time32_t time_create
Definition: io.h:50
_Check_return_ _CRTIMP intptr_t __cdecl _wfindfirst64i32(_In_z_ const wchar_t *_Filename, _Out_ struct _wfinddata64i32_t *_FindData)
_Check_return_ _CRTIMP int __cdecl _findnext64(_In_ intptr_t _FindHandle, _Out_ struct __finddata64_t *_FindData)
_Check_return_ _In_ int _Out_writes_bytes_(_MaxCharCount) void *_DstBuf
__time64_t time_create
Definition: io.h:68
__time64_t time_create
Definition: io.h:121
_Check_return_ _CRTIMP int __cdecl _access(_In_z_ const char *_Filename, _In_ int _AccessMode)
_fsize_t size
Definition: io.h:124
_Check_return_opt_ _CRTIMP int __cdecl _commit(_In_ int _FileHandle)
_Check_return_opt_ _CRTIMP __int64 __cdecl _lseeki64(_In_ int _FileHandle, _In_ __int64 _Offset, _In_ int _Origin)
_Check_return_ _In_ int _Mode
Definition: io.h:338
unsigned attrib
Definition: io.h:111
#define _CRTIMP
Definition: crtdefs.h:23
_fsize_t size
Definition: io.h:62
_Check_return_ _In_ unsigned int _In_ int _TextMode
Definition: io.h:203
Definition: regex:1520
#define _Inout_updates_(size)
Definition: sal.h:393
Definition: io.h:110
_Check_return_ _CRTIMP intptr_t __cdecl _findfirst32(_In_z_ const char *_Filename, _Out_ struct _finddata32_t *_FindData)
_CRTIMP errno_t __cdecl _wmktemp_s(_Inout_updates_z_(_SizeInWords) wchar_t *_TemplateName, _In_ size_t _SizeInWords)
unsigned attrib
Definition: io.h:67
_W64 unsigned int size_t
Definition: crtdefs.h:496
Definition: io.h:66
__time32_t time_create
Definition: io.h:103
#define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0(_ReturnType, _FuncName, _DstType, _Dst)
Definition: crtdefs.h:845
_CRTIMP intptr_t __cdecl _get_osfhandle(_In_ int _FileHandle)
char name[260]
Definition: io.h:72
_Check_return_ _In_ int _In_ long _NumOfBytes
Definition: io.h:333
_Check_return_ _In_ int _In_ unsigned int _MaxCharCount
Definition: io.h:337
char name[260]
Definition: io.h:54
_Check_return_ _CRTIMP int __cdecl _findnext32(_In_ intptr_t _FindHandle, _Out_ struct _finddata32_t *_FindData)
unsigned attrib
Definition: io.h:58
__int64 size
Definition: io.h:133
_Check_return_ _CRTIMP int __cdecl _chmod(_In_z_ const char *_Filename, _In_ int _Mode)
_Check_return_wat_ _CRTIMP errno_t __cdecl _mktemp_s(_Inout_updates_z_(_Size) char *_TemplateName, _In_ size_t _Size)
_Check_return_ _CRTIMP int __cdecl _isatty(_In_ int _FileHandle)
_Check_return_wat_ _CRTIMP errno_t __cdecl _waccess_s(_In_z_ const wchar_t *_Filename, _In_ int _AccessMode)
unsigned long _fsize_t
Definition: io.h:33
_fsize_t size
Definition: io.h:44
_Check_return_ _CRTIMP intptr_t __cdecl _findfirst64i32(_In_z_ const char *_Filename, _Out_ struct _finddata64i32_t *_FindData)
__time32_t time_write
Definition: io.h:43
Definition: io.h:101
__time64_t time_access
Definition: io.h:60
_Check_return_ _CRTIMP int __cdecl _wrename(_In_z_ const wchar_t *_OldFilename, _In_z_ const wchar_t *_NewFilename)
_Check_return_ _CRTIMP intptr_t __cdecl _findfirst64(_In_z_ const char *_Filename, _Out_ struct __finddata64_t *_FindData)
_CRTIMP _Pre_notnull_ _Post_z_ char * _DstBuf
Definition: stdlib.h:483
_Check_return_ _In_ int _Check_return_ _In_ int int _Check_return_ _CRTIMP int __cdecl _waccess(_In_z_ const wchar_t *_Filename, _In_ int _AccessMode)
_Check_return_ _CRTIMP int __cdecl _read(_In_ int _FileHandle, _Out_writes_bytes_(_MaxCharCount) void *_DstBuf, _In_ unsigned int _MaxCharCount)
_W64 long __time32_t
Definition: crtdefs.h:567
_Check_return_ _CRTIMP int __cdecl _dup(_In_ int _FileHandle)
_Check_return_wat_ _CRTIMP errno_t __cdecl _chsize_s(_In_ int _FileHandle, _In_ __int64 _Size)
_fsize_t size
Definition: io.h:106
#define _Check_return_
Definition: sal.h:563
_Check_return_ __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0(char *, __RETURN_POLICY_DST, _CRTIMP, _mktemp, _Inout_z_, char, _TemplateName) _Check_return_ _CRTIMP int __cdecl _pipe(_Inout_updates_(2) int *_PtHandles
char name[260]
Definition: io.h:45
#define _In_z_
Definition: sal.h:319
#define _In_
Definition: sal.h:314
_CRTIMP int __cdecl _unlink(_In_z_ const char *_Filename)
_CRTIMP int __cdecl _write(_In_ int _FileHandle, _In_reads_bytes_(_MaxCharCount) const void *_Buf, _In_ unsigned int _MaxCharCount)
__time64_t time_access
Definition: io.h:131
Definition: io.h:119
__time64_t time_write
Definition: io.h:123
unsigned attrib
Definition: io.h:40
_Check_return_opt_ _In_ long _In_ int _Origin
Definition: io.h:334
__time64_t time_create
Definition: io.h:59
unsigned attrib
Definition: io.h:120
#define _Inout_z_
Definition: sal.h:389
unsigned attrib
Definition: io.h:102
_Check_return_ _CRTIMP __int64 __cdecl _filelengthi64(_In_ int _FileHandle)
Definition: io.h:48
_Check_return_ _CRTIMP long __cdecl _tell(_In_ int _FileHandle)
unsigned attrib
Definition: io.h:49
_CRTIMP int __cdecl _locking(_In_ int _FileHandle, _In_ int _LockMode, _In_ long _NumOfBytes)
_Check_return_ _CRTIMP int __cdecl _setmode(_In_ int _FileHandle, _In_ int _Mode)
#define _Prepost_z_
Definition: sal.h:714
int errno_t
Definition: crtdefs.h:563
_Check_return_ _In_ int _PermissionMode
Definition: io.h:188
_In_z_ const char * _Filename
Definition: process.h:211
#define _W64
Definition: crtdefs.h:100
_Check_return_ _In_ int _FileHandleDst
Definition: io.h:329
_Check_return_wat_ _CRTIMP errno_t __cdecl _access_s(_In_z_ const char *_Filename, _In_ int _AccessMode)
__time32_t time_write
Definition: io.h:52
_Check_return_ _CRT_INSECURE_DEPRECATE(_sopen_s) _CRTIMP int __cdecl _creat(_In_z_ const char *_Filename
#define __RETURN_POLICY_DST(_FunctionCall)
Definition: crtdefs.h:1928
__time64_t time_access
Definition: io.h:69
__time32_t time_access
Definition: io.h:113
_Check_return_ _CRTIMP int __cdecl _dup2(_In_ int _FileHandleSrc, _In_ int _FileHandleDst)
__time32_t time_access
Definition: io.h:104
_Check_return_ _CRTIMP int __cdecl rename(_In_z_ const char *_OldFilename, _In_z_ const char *_NewFilename)
_CRTIMP int __cdecl _open_osfhandle(_In_ intptr_t _OSFileHandle, _In_ int _Flags)
wchar_t name[260]
Definition: io.h:116
#define _Check_return_wat_
Definition: crtdefs.h:2128
#define _Check_return_opt_
Definition: crtdefs.h:2122
_Check_return_ _CRTIMP __int64 __cdecl _telli64(_In_ int _FileHandle)
_Check_return_ _CRTIMP intptr_t __cdecl _findfirst32i64(_In_z_ const char *_Filename, _Out_ struct _finddata32i64_t *_FindData)
_Inout_updates_z_(_SizeInBytes) char *_Buf2
_Check_return_ _CRTIMP long __cdecl _filelength(_In_ int _FileHandle)
__time64_t time_write
Definition: io.h:132
_Check_return_wat_ _CRTIMP errno_t __cdecl _wsopen_s(_Out_ int *_FileHandle, _In_z_ const wchar_t *_Filename, _In_ int _OpenFlag, _In_ int _ShareFlag, _In_ int _PermissionFlag)
__time32_t time_access
Definition: io.h:51
wchar_t name[260]
Definition: io.h:134
__time64_t time_write
Definition: io.h:61
Definition: io.h:128
wchar_t name[260]
Definition: io.h:107
__int64 size
Definition: io.h:53
_CRT_NONSTDC_DEPRECATE(_unlink) _CRTIMP int __cdecl unlink(_In_z_ const char *_Filename)
__time32_t time_write
Definition: io.h:114
int __cdecl __lock_fhandle(_In_ int _Filehandle)
__int64 size
Definition: io.h:71
Definition: io.h:39
_W64 int intptr_t
Definition: crtdefs.h:512
_CRTIMP int __cdecl _wunlink(_In_z_ const wchar_t *_Filename)
__time32_t time_write
Definition: io.h:105
unsigned attrib
Definition: io.h:129
__time32_t time_access
Definition: io.h:42
__int64 __time64_t
Definition: crtdefs.h:572
_Check_return_ _CRTIMP int __cdecl _eof(_In_ int _FileHandle)
_Check_return_opt_ _CRTIMP int __cdecl _findclose(_In_ intptr_t _FindHandle)
_Check_return_ _CRTIMP int __cdecl _chsize(_In_ int _FileHandle, _In_ long _Size)
_Check_return_ _CRTIMP intptr_t __cdecl _wfindfirst32i64(_In_z_ const wchar_t *_Filename, _Out_ struct _wfinddata32i64_t *_FindData)
Definition: io.h:57
_Check_return_ _In_ int _AccessMode
Definition: io.h:323
_Check_return_ _CRTIMP int __cdecl _wfindnext32(_In_ intptr_t _FindHandle, _Out_ struct _wfinddata32_t *_FindData)
_Check_return_ _CRTIMP int __cdecl _wchmod(_In_z_ const wchar_t *_Filename, _In_ int _Mode)
_Check_return_ _CRTIMP int __cdecl _wfindnext32i64(_In_ intptr_t _FindHandle, _Out_ struct _wfinddata32i64_t *_FindData)
_Check_return_ _In_ long _Size
Definition: io.h:325
_Check_return_ _CRTIMP int __cdecl _findnext64i32(_In_ intptr_t _FindHandle, _Out_ struct _finddata64i32_t *_FindData)
_Check_return_ _In_ int _LockMode
Definition: io.h:333
_Check_return_wat_ _CRTIMP errno_t __cdecl _umask_s(_In_ int _NewMode, _Out_ int *_OldMode)
_Check_return_ _CRTIMP intptr_t __cdecl _wfindfirst32(_In_z_ const wchar_t *_Filename, _Out_ struct _wfinddata32_t *_FindData)
__time64_t time_create
Definition: io.h:130
__time64_t time_access
Definition: io.h:122
wchar_t name[260]
Definition: io.h:125
__time32_t time_create
Definition: io.h:112
__time32_t time_create
Definition: io.h:41
_Check_return_wat_ _CRTIMP errno_t __cdecl _sopen_s(_Out_ int *_FileHandle, _In_z_ const char *_Filename, _In_ int _OpenFlag, _In_ int _ShareFlag, _In_ int _PermissionMode)
_Check_return_ _CRTIMP intptr_t __cdecl _wfindfirst64(_In_z_ const wchar_t *_Filename, _Out_ struct _wfinddata64_t *_FindData)
_Check_return_ errno_t __cdecl _sopen_s_nolock(_Out_ int *_FileHandle, _In_z_ const char *_Filename, _In_ int _OpenFlag, _In_ int _ShareFlag, _In_ int _PermissionMode)
void __cdecl _unlock_fhandle(_In_ int _Filehandle)