Go to the source code of this file.
◆ _close()
Definition at line 73 of file close.cpp.
74{
75 __crt_cached_ptd_host
ptd;
77}
_In_ size_t const _In_ int _In_ bool const _In_ unsigned const _In_ __acrt_rounding_mode const _Inout_ __crt_cached_ptd_host & ptd
int __cdecl _close_internal(int const fh, __crt_cached_ptd_host &ptd)
◆ _close_internal()
Definition at line 52 of file close.cpp.
53{
57
59 {
61 {
63 }
64 else
65 {
67 _ASSERTE((
"Invalid file descriptor. File possibly closed by a different thread",0));
68 return -1;
69 }
70 });
71}
auto __acrt_lowio_lock_fh_and_call(int const fh, Action &&action) -> decltype(action())
#define _UCRT_VALIDATE_CLEAR_OSSERR_RETURN(ptd, expr, errorcode, retexpr)
#define _UCRT_CHECK_FH_CLEAR_OSSERR_RETURN(ptd, handle, errorcode, retexpr)
int __cdecl _close_nolock_internal(int const fh, __crt_cached_ptd_host &ptd)
Referenced by _close().
◆ _close_nolock()
Definition at line 97 of file close.cpp.
98{
99 __crt_cached_ptd_host
ptd;
101}
◆ _close_nolock_internal()
Definition at line 81 of file close.cpp.
82{
84
87
88 if (close_os_handle_error != 0)
89 {
91 return -1;
92 }
93
94 return 0;
95}
int __cdecl _free_osfhnd(int)
void __cdecl __acrt_errno_map_os_error_ptd(unsigned long const oserrno, __crt_cached_ptd_host &ptd)
static DWORD close_os_handle_nolock(int const fh)
Referenced by _close_internal(), and _close_nolock().
◆ close_os_handle_nolock()
Definition at line 15 of file close.cpp.
16{
17
18
20 {
21 return 0;
22 }
23
24
25
26
27
28
29
30 bool is_other_std_handle_open =
33
35 {
36 return 0;
37 }
38
39
41 {
42 return 0;
43 }
44
46}
#define INVALID_HANDLE_VALUE
_CRTIMP intptr_t __cdecl _get_osfhandle(_In_ int _FileHandle)
DWORD WINAPI GetLastError(void)
Referenced by _close_nolock_internal().