Go to the source code of this file.
◆ __acrt_lowio_create_handle_array()
Definition at line 13 of file osfinfo.cpp.
14{
15 __crt_unique_heap_ptr<__crt_lowio_handle_data>
array(_calloc_crt_t(
18
20 return nullptr;
21
25 {
28 it->startpos = 0;
29 it->osfile = 0;
31 it->_pipe_lookahead[0] =
LF;
32 it->_pipe_lookahead[1] =
LF;
33 it->_pipe_lookahead[2] =
LF;
34 it->unicode = false;
35 it->utf8translations = false;
36 it->dbcsBufferUsed = false;
37 for (
int i = 0;
i <
sizeof(it->mbBuffer); ++
i)
38 {
39 it->mbBuffer[
i] =
'\0';
40 }
41 }
42
43 return array.detach();
44}
#define _CORECRT_SPINCOUNT
BOOL WINAPI __acrt_InitializeCriticalSectionEx(_Out_ LPCRITICAL_SECTION critical_section, _In_ DWORD spin_count, _In_ DWORD flags)
#define INVALID_HANDLE_VALUE
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define IOINFO_ARRAY_ELTS
Referenced by __acrt_lowio_ensure_fh_exists(), and _alloc_osfhnd().
◆ __acrt_lowio_destroy_handle_array()
Definition at line 46 of file osfinfo.cpp.
47{
49 return;
50
54 {
56 }
57
59}
void WINAPI DeleteCriticalSection(PCRITICAL_SECTION)
◆ __acrt_lowio_ensure_fh_exists()
Definition at line 66 of file osfinfo.cpp.
67{
69
71
74 {
76 {
78 {
79 continue;
80 }
81
84 {
87 }
88
90 }
91 }
93 {
95 }
97
99}
void __cdecl __acrt_unlock(_In_ __acrt_lock_id lock)
@ __acrt_lowio_index_lock
__acrt_lock(__acrt_heap_lock)
#define _VALIDATE_RETURN_ERRCODE(expr, errorcode)
static ioinfo ** __pioinfo
__crt_lowio_handle_data *__cdecl __acrt_lowio_create_handle_array()
◆ __acrt_lowio_lock_fh()
◆ __acrt_lowio_set_os_handle()
◆ __acrt_lowio_unlock_fh()
◆ _alloc_osfhnd()
Definition at line 116 of file osfinfo.cpp.
117{
121 {
122
123
124
125
126
127
129 {
130
132 {
136
138
139
140
141
143
148 }
149
150
151
155 {
156 if (pio->osfile &
FOPEN)
157 continue;
158
159
160
161
162
163
165 if ((pio->osfile &
FOPEN) != 0)
166 {
168 continue;
169 }
170
171
172
178 }
179 }
180
181
182 }
184 {
186 }
189}
void __cdecl __acrt_lowio_lock_fh(int const fh)
Referenced by _dup_nolock_internal(), _open_osfhandle(), _pipe(), and _wsopen_nolock().
◆ _free_osfhnd()
◆ _get_osfhandle()
Definition at line 259 of file osfinfo.cpp.
260{
264
266}
#define _CHECK_FH_CLEAR_OSSERR_RETURN(handle, errorcode, retexpr)
#define _VALIDATE_CLEAR_OSSERR_RETURN(expr, errorcode, retexpr)
◆ _open_osfhandle()
Definition at line 273 of file osfinfo.cpp.
274{
275
276 unsigned char file_flags = 0;
277
280
283
286
287
290 {
292 return -1;
293 }
294
297
300
301
303 if (fh == -1)
304 {
307 return -1;
308 }
309
312 {
313
315
317
321
323 }
325 {
327 {
329 }
330
332 }
334 return fh;
335}
void __cdecl __acrt_errno_map_os_error(unsigned long)
DWORD WINAPI GetFileType(HANDLE hFile)
int __cdecl _alloc_osfhnd()
int __cdecl __acrt_lowio_set_os_handle(int const fh, intptr_t const value)
void __cdecl __acrt_lowio_unlock_fh(int const fh)
FD_TYPE file_type(FDSC **curr, char *fixed)
#define success(from, fromstr, to, tostr)
DWORD WINAPI GetLastError(void)
#define FILE_TYPE_UNKNOWN