/reactos/sdk/lib/ucrt/lowio/ |
H A D | lseek.cpp | 21 static long __cdecl common_lseek_do_seek_nolock(HANDLE const os_handle, long const offset, int cons… in common_lseek_do_seek_nolock() argument 26 if (!SetFilePointerEx(os_handle, origin_pos, &saved_pos, FILE_CURRENT)) in common_lseek_do_seek_nolock() 36 if (!SetFilePointerEx(os_handle, seek_pos, &new_pos, origin)) in common_lseek_do_seek_nolock() 47 SetFilePointerEx(os_handle, saved_pos, nullptr, FILE_BEGIN); in common_lseek_do_seek_nolock() 55 static __int64 __cdecl common_lseek_do_seek_nolock(HANDLE const os_handle, __int64 const offset, in… in common_lseek_do_seek_nolock() argument 58 …if (!SetFilePointerEx(os_handle, *reinterpret_cast<LARGE_INTEGER const*>(&offset), &new_pos, origi… in common_lseek_do_seek_nolock() 71 HANDLE const os_handle = reinterpret_cast<HANDLE>(_get_osfhandle(fh)); in common_lseek_nolock() local 72 if (os_handle == reinterpret_cast<HANDLE>(-1)) in common_lseek_nolock() 79 Integer const new_position = common_lseek_do_seek_nolock(os_handle, offset, origin, ptd); in common_lseek_nolock()
|
H A D | ioinit.cpp | 144 intptr_t const os_handle = reinterpret_cast<intptr_t>(GetStdHandle(get_std_handle_id(fh))); in initialize_stdio_handles_nolock() local 147 os_handle != reinterpret_cast<intptr_t>(INVALID_HANDLE_VALUE) && in initialize_stdio_handles_nolock() 148 os_handle != reinterpret_cast<intptr_t>(nullptr); in initialize_stdio_handles_nolock() 151 ? GetFileType(reinterpret_cast<HANDLE>(os_handle)) in initialize_stdio_handles_nolock() 161 pio->osfhnd = os_handle; in initialize_stdio_handles_nolock()
|
H A D | write.cpp | 125 HANDLE const os_handle = reinterpret_cast<HANDLE>(_osfhnd(fh)); in write_double_translated_ansi_nolock() local 305 if (!WriteFile(os_handle, mb_buffer, size, &written, nullptr)) in write_double_translated_ansi_nolock() 332 if (!WriteFile(os_handle, &cr, 1, &written, nullptr)) in write_double_translated_ansi_nolock() 411 HANDLE const os_handle = reinterpret_cast<HANDLE>(_osfhnd(fh)); in write_text_ansi_nolock() local 444 if (!WriteFile(os_handle, lfbuf, lfbuf_length, &written, nullptr)) in write_text_ansi_nolock() 468 HANDLE const os_handle = reinterpret_cast<HANDLE>(_osfhnd(fh)); in write_text_utf16le_nolock() local 506 if (!WriteFile(os_handle, lfbuf, lfbuf_length, &written, nullptr)) in write_text_utf16le_nolock() 530 HANDLE const os_handle = reinterpret_cast<HANDLE>(_osfhnd(fh)); in write_text_utf8_nolock() local 606 if (!WriteFile(os_handle, current, current_size, &written, nullptr)) in write_text_utf8_nolock() 630 HANDLE const os_handle = reinterpret_cast<HANDLE>(_osfhnd(fh)); in write_binary_nolock() local [all …]
|
H A D | open.cpp | 704 HANDLE os_handle = create_file(path, &security_attributes, options); in _wsopen_nolock() local 705 if (os_handle == INVALID_HANDLE_VALUE) in _wsopen_nolock() 716 os_handle = create_file(path, &security_attributes, options); in _wsopen_nolock() 720 if (os_handle == INVALID_HANDLE_VALUE) in _wsopen_nolock() 730 DWORD const file_type = GetFileType(os_handle); in _wsopen_nolock() 738 CloseHandle(os_handle); in _wsopen_nolock() 759 __acrt_lowio_set_os_handle(*pfh, reinterpret_cast<intptr_t>(os_handle)); in _wsopen_nolock() 807 CloseHandle(os_handle); in _wsopen_nolock() 809 os_handle = create_file(path, &security_attributes, options); in _wsopen_nolock() 811 if (os_handle == INVALID_HANDLE_VALUE) in _wsopen_nolock() [all …]
|
H A D | read.cpp | 104 HANDLE const os_handle = reinterpret_cast<HANDLE>(_osfhnd(fh)); in translate_text_mode_nolock() local 176 if (!ReadFile(os_handle, &peek, sizeof(peek), &peek_size, nullptr) || peek_size == 0) in translate_text_mode_nolock() 426 HANDLE const os_handle = reinterpret_cast<HANDLE>(_osfhnd(fh)); in _read_nolock() local 536 GetConsoleMode(os_handle, &console_mode); in _read_nolock() 543 os_handle, in _read_nolock() 562 os_handle, in _read_nolock()
|
/reactos/sdk/lib/ucrt/stdio/ |
H A D | _file.cpp | 100 intptr_t const os_handle = _osfhnd(i); in __acrt_initialize_stdio() local 102 os_handle == reinterpret_cast<intptr_t>(INVALID_HANDLE_VALUE) || in __acrt_initialize_stdio() 103 os_handle == _NO_CONSOLE_FILENO || in __acrt_initialize_stdio() 104 os_handle == 0; in __acrt_initialize_stdio()
|
H A D | _flsbuf.cpp | 26 HANDLE const os_handle = reinterpret_cast<HANDLE>(_get_osfhandle(stream.lowio_handle())); in stream_is_at_end_of_file_nolock() local 30 if (os_handle == INVALID_HANDLE_VALUE) in stream_is_at_end_of_file_nolock() 43 if (!SetFilePointerEx(os_handle, {}, ¤t_position, FILE_CURRENT)) in stream_is_at_end_of_file_nolock() 49 if (!GetFileSizeEx(os_handle, &eof_position)) in stream_is_at_end_of_file_nolock()
|
/reactos/sdk/lib/ucrt/filesystem/ |
H A D | findfile.cpp | 268 HANDLE const os_handle = reinterpret_cast<HANDLE>(handle); in common_find_next_wide() local 270 _VALIDATE_RETURN(os_handle != 0 , EINVAL, -1); in common_find_next_wide() 271 _VALIDATE_RETURN(os_handle != INVALID_HANDLE_VALUE, EINVAL, -1); in common_find_next_wide() 275 if (!FindNextFileW(os_handle, &wfd)) in common_find_next_wide()
|