ReactOS 0.4.16-dev-732-g2d1144a
|
#include <fcntl.h>
#include <io.h>
#include <corecrt_internal_traits.h>
#include <share.h>
#include <stdint.h>
#include <stdlib.h>
Go to the source code of this file.
Classes | |
struct | __crt_lowio_handle_data |
Typedefs | |
typedef char | __crt_lowio_pipe_lookahead[3] |
typedef __crt_lowio_handle_data * | __crt_lowio_handle_data_array[IOINFO_ARRAYS] |
Enumerations | |
enum class | __crt_lowio_text_mode : char { ansi = 0 , utf8 = 1 , utf16le = 2 } |
enum | : unsigned char { FOPEN = 0x01 , FEOFLAG = 0x02 , FCRLF = 0x04 , FPIPE = 0x08 , FNOINHERIT = 0x10 , FAPPEND = 0x20 , FDEV = 0x40 , FTEXT = 0x80 } |
Variables | |
char | _lookuptrailbytes [256] |
__crt_lowio_handle_data | __badioinfo |
int | _umaskval |
__crt_lowio_handle_data_array | __pioinfo |
int | _nhandle |
_Out_ int * | _FileHandle |
_Out_ int _In_z_ char const * | _FileName |
_Out_ int _In_z_ char const _In_ int | _OpenFlag |
_Out_ int _In_z_ char const _In_ int _In_ int | _ShareFlag |
_Out_ int _In_z_ char const _In_ int _In_ int _In_ int | _PermissionFlag |
_Out_ int _In_z_ char const _In_ int _In_ int _In_ int _In_ int | _SecureFlag |
const HANDLE | _console_invalid_handle = reinterpret_cast<HANDLE>(-1) |
const HANDLE | _console_uninitialized_handle = reinterpret_cast<HANDLE>(-2) |
_Check_return_ _In_ unsigned int | _MaxCharCount |
Definition at line 138 of file corecrt_internal_lowio.h.
Definition at line 139 of file corecrt_internal_lowio.h.
#define _INTERNAL_BUFSIZ 4096 |
Definition at line 27 of file corecrt_internal_lowio.h.
Definition at line 137 of file corecrt_internal_lowio.h.
Definition at line 31 of file corecrt_internal_lowio.h.
#define _NHANDLE_ (IOINFO_ARRAYS * IOINFO_ARRAY_ELTS) |
Definition at line 120 of file corecrt_internal_lowio.h.
Definition at line 325 of file corecrt_internal_lowio.h.
#define _osfile_safe | ( | i | ) | (_pioinfo_safe(i)->osfile) |
Definition at line 146 of file corecrt_internal_lowio.h.
#define _pioinfo | ( | i | ) | (__pioinfo[(i) >> IOINFO_L2E] + ((i) & (IOINFO_ARRAY_ELTS - 1))) |
Definition at line 129 of file corecrt_internal_lowio.h.
Definition at line 145 of file corecrt_internal_lowio.h.
Definition at line 132 of file corecrt_internal_lowio.h.
#define _SMALL_BUFSIZ 512 |
Definition at line 28 of file corecrt_internal_lowio.h.
Definition at line 135 of file corecrt_internal_lowio.h.
Definition at line 133 of file corecrt_internal_lowio.h.
#define _textmode_safe | ( | i | ) | (_pioinfo_safe(i)->textmode) |
Definition at line 147 of file corecrt_internal_lowio.h.
Definition at line 134 of file corecrt_internal_lowio.h.
#define _tm_unicode_safe | ( | i | ) | (_pioinfo_safe(i)->unicode) |
Definition at line 148 of file corecrt_internal_lowio.h.
Definition at line 34 of file corecrt_internal_lowio.h.
Definition at line 67 of file corecrt_internal_lowio.h.
Definition at line 136 of file corecrt_internal_lowio.h.
Definition at line 23 of file corecrt_internal_lowio.h.
Definition at line 24 of file corecrt_internal_lowio.h.
#define IOINFO_ARRAY_ELTS (1 << IOINFO_L2E) |
Definition at line 114 of file corecrt_internal_lowio.h.
#define IOINFO_ARRAYS 128 |
Definition at line 117 of file corecrt_internal_lowio.h.
#define IOINFO_L2E 6 |
Definition at line 111 of file corecrt_internal_lowio.h.
Definition at line 22 of file corecrt_internal_lowio.h.
#define STDIO_HANDLES_COUNT 3 |
Definition at line 124 of file corecrt_internal_lowio.h.
typedef __crt_lowio_handle_data* __crt_lowio_handle_data_array[IOINFO_ARRAYS] |
Definition at line 150 of file corecrt_internal_lowio.h.
typedef char __crt_lowio_pipe_lookahead[3] |
Definition at line 89 of file corecrt_internal_lowio.h.
Enumerator | |
---|---|
FOPEN | |
FEOFLAG | |
FCRLF | |
FPIPE | |
FNOINHERIT | |
FAPPEND | |
FDEV | |
FTEXT |
Definition at line 77 of file corecrt_internal_lowio.h.
|
strong |
Enumerator | |
---|---|
ansi | |
utf8 | |
utf16le |
Definition at line 69 of file corecrt_internal_lowio.h.
_Check_return_ __crt_lowio_handle_data *__cdecl __acrt_lowio_create_handle_array | ( | ) |
Definition at line 13 of file osfinfo.cpp.
Referenced by __acrt_lowio_ensure_fh_exists(), and _alloc_osfhnd().
void __cdecl __acrt_lowio_destroy_handle_array | ( | _Pre_maybenull_ _Post_invalid_ _In_reads_opt_(IOINFO_ARRAY_ELTS) __crt_lowio_handle_data * | _Array | ) |
Referenced by __acrt_uninitialize_lowio().
_Check_return_opt_ errno_t __cdecl __acrt_lowio_ensure_fh_exists | ( | _In_ int | _FileHandle | ) |
Referenced by __acrt_initialize_lowio(), _dup2_internal(), and initialize_inherited_file_handles_nolock().
Referenced by __acrt_lowio_lock_fh_and_call(), _dup2_internal(), _locking(), _perror_internal(), _read(), _setmode(), _Success_(), _write_internal(), and common_lseek().
auto __acrt_lowio_lock_fh_and_call | ( | int const | fh, |
Action && | action | ||
) | -> decltype(action()) | ||
throw | ( | ||
) |
Definition at line 221 of file corecrt_internal_lowio.h.
Referenced by _chsize_s_internal(), _close_internal(), _commit(), _dup_internal(), _eof(), and common_fstat().
Definition at line 195 of file osfinfo.cpp.
Referenced by _dup2_nolock_internal(), _open_osfhandle(), _pipe(), _wsopen_nolock(), and duplicate_osfhnd().
Definition at line 136 of file initconin.cpp.
Referenced by _cgetws_s(), _getch_nolock(), and _getwch_nolock().
Definition at line 104 of file initconin.cpp.
Referenced by _kbhit_nolock().
Definition at line 31 of file initconin.cpp.
Referenced by _cgetws_s(), _getch_nolock(), _getwch_nolock(), and _kbhit_nolock().
Definition at line 31 of file initcon.cpp.
Referenced by _cputws(), and _putwch_nolock().
BOOL __cdecl __dcrt_peek_console_input_a | ( | _Out_ PINPUT_RECORD | lpBuffer, |
_In_ DWORD | nLength, | ||
_Out_ LPDWORD | lpNumberOfEventsRead | ||
) |
Definition at line 118 of file initconin.cpp.
Referenced by _kbhit_nolock().
BOOL __cdecl __dcrt_read_console | ( | _Out_ LPVOID | lpBuffer, |
_In_ DWORD | nNumberOfCharsToRead, | ||
_Out_ LPDWORD | lpNumberOfCharsRead | ||
) |
Definition at line 85 of file initconin.cpp.
Referenced by _cgetws_s().
BOOL __cdecl __dcrt_read_console_input | ( | _Out_ PINPUT_RECORD | lpBuffer, |
_In_ DWORD | nLength, | ||
_Out_ LPDWORD | lpNumberOfEventsRead | ||
) |
Definition at line 67 of file initconin.cpp.
Referenced by _getch_nolock(), and _getwch_nolock().
Definition at line 150 of file initconin.cpp.
Referenced by _cgetws_s(), _getch_nolock(), and _getwch_nolock().
BOOL __cdecl __dcrt_write_console | ( | _In_ void const * | lpBuffer, |
_In_ DWORD | nNumberOfCharsToWrite, | ||
_Out_ LPDWORD | lpNumberOfCharsWritten | ||
) |
Definition at line 67 of file initcon.cpp.
Referenced by _cputws(), and _putwch_nolock().
Definition at line 116 of file osfinfo.cpp.
Referenced by _dup_nolock_internal(), _open_osfhandle(), _pipe(), and _wsopen_nolock().
Referenced by truncate_ctrl_z_if_present().
_Check_return_ int __cdecl _chsize_nolock_internal | ( | _In_ int | _FileHandle, |
_In_ __int64 | _Size, | ||
_Inout_ __crt_cached_ptd_host & | _Ptd | ||
) |
_Check_return_opt_ int __cdecl _close_internal | ( | _In_ int | _FileHandle, |
_Inout_ __crt_cached_ptd_host & | _Ptd | ||
) |
Referenced by _fclose_nolock_internal().
_Check_return_opt_ int __cdecl _close_nolock | ( | _In_ int | _FileHandle | ) |
Referenced by _wsopen_nolock().
_Check_return_opt_ int __cdecl _close_nolock_internal | ( | _In_ int | _FileHandle, |
_Inout_ __crt_cached_ptd_host & | _Ptd | ||
) |
Referenced by _dup2_nolock_internal().
Definition at line 227 of file osfinfo.cpp.
Referenced by _close_nolock_internal(), and _wsopen_nolock().
_Check_return_opt_ long __cdecl _lseek_internal | ( | _In_ int | _FileHandle, |
_In_ long | _Offset, | ||
_In_ int | _Origin, | ||
_Inout_ __crt_cached_ptd_host & | _Ptd | ||
) |
Referenced by _rewind_internal().
_Check_return_opt_ long __cdecl _lseek_nolock | ( | _In_ int | _FileHandle, |
_In_ long | _Offset, | ||
_In_ int | _Origin | ||
) |
_Check_return_opt_ __int64 __cdecl _lseeki64_internal | ( | _In_ int | _FileHandle, |
_In_ __int64 | _Offset, | ||
_In_ int | _Origin, | ||
_Inout_ __crt_cached_ptd_host & | _Ptd | ||
) |
Referenced by common_ftell_nolock(), common_ftell_read_mode_nolock(), and common_ftell_translated_utf8_nolock().
_Check_return_opt_ __int64 __cdecl _lseeki64_nolock_internal | ( | _In_ int | _FileHandle, |
_In_ __int64 | _Offset, | ||
_In_ int | _Origin, | ||
_Inout_ __crt_cached_ptd_host & | _Ptd | ||
) |
Referenced by _write_nolock(), and common_fseek_nolock().
_Check_return_ _Out_writes_bytes_ | ( | _MaxCharCount | ) |
Referenced by _chsize_nolock_internal().
_Check_return_ _Success_ | ( | return >=0 &&return<= | _MaxCharCount | ) |
_Success_ | ( | return | = = 0 | ) |
Deletes the virtual mapping and optionally gives back the page & dirty bit.
Process | - The process this address belongs to, or NULL if system address. |
Address | - The address to unmap. |
WasDirty | - Optional param receiving the dirty bit of the PTE. |
Page | - Optional param receiving the page number previously mapped to this address. |
Definition at line 57 of file firmware.c.
Definition at line 45 of file corecrt_internal_lowio.h.
Referenced by common_ftell_translated_utf8_nolock(), throw(), and write_double_translated_ansi_nolock().
int __cdecl _write_internal | ( | _In_ int | _FileHandle, |
_In_reads_bytes_(_MaxCharCount) void const * | _Buf, | ||
_In_ unsigned int | _MaxCharCount, | ||
_Inout_ __crt_cached_ptd_host & | _Ptd | ||
) |
Referenced by __acrt_stdio_flush_nolock(), _fwrite_nolock_internal(), and write_buffer_nolock().
_Check_return_ int __cdecl _write_nolock | ( | _In_ int | _FileHandle, |
_In_reads_bytes_(_MaxCharCount) const void * | _Buf, | ||
_In_ unsigned int | _MaxCharCount, | ||
__crt_cached_ptd_host & | _Ptd | ||
) |
Referenced by _chsize_nolock_internal(), and _perror_internal().
|
extern |
Definition at line 126 of file file.c.
Referenced by _dup2(), _setmode(), get_ioinfo(), get_ioinfo_alloc(), get_ioinfo_alloc_fd(), get_ioinfo_nolock(), msvcrt_alloc_fd(), msvcrt_free_fd(), msvcrt_init_io(), and release_ioinfo().
|
extern |
Definition at line 121 of file file.c.
Referenced by __acrt_uninitialize_lowio().
Definition at line 233 of file corecrt_internal_lowio.h.
Referenced by __dcrt_lowio_ensure_console_input_initialized(), __dcrt_lowio_ensure_console_output_initialized(), __dcrt_terminate_console_input(), and __dcrt_terminate_console_output().
Definition at line 234 of file corecrt_internal_lowio.h.
Referenced by __dcrt_lowio_ensure_console_input_initialized(), __dcrt_lowio_ensure_console_output_initialized(), __dcrt_terminate_console_input(), and __dcrt_terminate_console_output().
Definition at line 183 of file corecrt_internal_lowio.h.
Referenced by _futime(), and _wsopen_dispatch().
|
extern |
Definition at line 20 of file read.cpp.
Referenced by _utf8_no_of_trailbytes().
_Check_return_ _In_ unsigned int _MaxCharCount |
Definition at line 280 of file corecrt_internal_lowio.h.
|
extern |
Definition at line 34 of file ioinit.cpp.
Referenced by __acrt_lowio_ensure_fh_exists(), __acrt_lowio_set_os_handle(), _alloc_osfhnd(), _chsize_s_internal(), _close_internal(), _commit(), _dup2_internal(), _dup_internal(), _eof(), _free_osfhnd(), _get_osfhandle(), _isatty(), _locking(), _read(), _read_nolock(), _setmode(), _Success_(), _write_internal(), accumulate_inheritable_handles(), common_fdopen(), common_fstat(), common_futime(), common_lseek(), and initialize_inherited_file_handles_nolock().
Definition at line 185 of file corecrt_internal_lowio.h.
Definition at line 187 of file corecrt_internal_lowio.h.
Definition at line 188 of file corecrt_internal_lowio.h.
Definition at line 186 of file corecrt_internal_lowio.h.
|
extern |
Definition at line 15 of file umask.cpp.
Referenced by _umask_s(), and decode_options().