ReactOS 0.4.16-dev-297-gc569aee
|
#include <precomp.h>
#include "wine/unicode.h"
#include "internal/wine/msvcrt.h"
#include <sys/utime.h>
#include <direct.h>
Go to the source code of this file.
Classes | |
struct | file_crit |
Macros | |
#define | _IOCOMMIT 0x4000 |
#define | WX_OPEN 0x01 |
#define | WX_ATEOF 0x02 |
#define | WX_READNL 0x04 /* read started with \n */ |
#define | WX_READEOF 0x04 /* like ATEOF, but for underlying file rather than buffer */ |
#define | WX_PIPE 0x08 |
#define | WX_READCR 0x08 /* underlying file is at \r */ |
#define | WX_DONTINHERIT 0x10 |
#define | WX_APPEND 0x20 |
#define | WX_TTY 0x40 |
#define | WX_TEXT 0x80 |
#define | EF_UTF8 0x01 |
#define | EF_UTF16 0x02 |
#define | EF_CRIT_INIT 0x04 |
#define | EF_UNK_UNICODE 0x08 |
#define | MSVCRT_MAX_FILES 2048 |
#define | MSVCRT_FD_BLOCK_SIZE 32 |
#define | MSVCRT_INTERNAL_BUFSIZ 4096 |
#define | LOCK_FILES() do { EnterCriticalSection(&MSVCRT_file_cs); } while (0) |
#define | UNLOCK_FILES() do { LeaveCriticalSection(&MSVCRT_file_cs); } while (0) |
Variables | |
int | _commode |
static char | utf8_bom [3] = { 0xef, 0xbb, 0xbf } |
static char | utf16_bom [2] = { 0xff, 0xfe } |
ioinfo * | __pioinfo [MSVCRT_MAX_FILES/MSVCRT_FD_BLOCK_SIZE] = { 0 } |
ioinfo | __badioinfo = { INVALID_HANDLE_VALUE, WX_TEXT } |
FILE | _iob [_IOB_ENTRIES] = { { 0 } } |
static file_crit * | MSVCRT_fstream [MSVCRT_MAX_FILES/MSVCRT_FD_BLOCK_SIZE] = { NULL } |
static int | MSVCRT_max_streams = 512 |
static int | MSVCRT_stream_idx |
static int | MSVCRT_umask = 0 |
static int | tmpnam_unique |
static CRITICAL_SECTION | MSVCRT_file_cs = { &MSVCRT_file_cs_debug, -1, 0, 0, 0, 0 } |
static CRITICAL_SECTION_DEBUG | MSVCRT_file_cs_debug |
#define LOCK_FILES | ( | ) | do { EnterCriticalSection(&MSVCRT_file_cs); } while (0) |
#define UNLOCK_FILES | ( | ) | do { LeaveCriticalSection(&MSVCRT_file_cs); } while (0) |
Definition at line 682 of file file.c.
Referenced by Test__iob().
Definition at line 690 of file file.c.
Referenced by _access_s().
Definition at line 764 of file file.c.
Definition at line 1318 of file file.c.
Referenced by _chsize().
Definition at line 967 of file file.c.
Definition at line 1041 of file file.c.
Definition at line 1081 of file file.c.
Referenced by msvcrt_free_io(), and test_fopen_fclose_fcloseall().
Definition at line 2835 of file file.c.
Definition at line 14 of file _flsbuf.c.
Definition at line 893 of file file.c.
Referenced by msvcrt_free_io(), test_fflush(), and wmain().
Definition at line 1278 of file file.c.
Referenced by fseek().
Definition at line 3221 of file file.c.
Referenced by fopen().
Definition at line 2996 of file file.c.
Definition at line 564 of file file.c.
Referenced by add_std_buffer(), and msvcrt_alloc_buffer().
Definition at line 1193 of file file.c.
Referenced by _filbuf(), _fseeki64(), _ftelli64(), _getw(), _getws(), _putw(), _putws(), clearerr(), fclose(), fflush(), fgetc(), fgets(), fgetwc(), fgetws(), fputc(), fputs(), fputws(), fread(), fsetpos(), fwrite(), gets(), puts(), rewind(), setvbuf(), ungetc(), and ungetwc().
Definition at line 1220 of file file.c.
Definition at line 1138 of file file.c.
Referenced by _chsize_s(), _filelengthi64(), _fseeki64(), _ftelli64(), _lseek(), _telli64(), and fsetpos().
Definition at line 1604 of file file.c.
Definition at line 2001 of file file.c.
Referenced by _creat(), compat_open(), install_from_unix_file(), main(), rd_open_file(), rw(), test_chsize(), test_file_write_read(), test_get_osfhandle(), test_setmode(), and tmpfile().
Definition at line 2057 of file file.c.
Definition at line 1702 of file file.c.
Definition at line 2466 of file file.c.
Definition at line 2094 of file file.c.
Definition at line 1978 of file file.c.
Referenced by _open(), and test_get_osfhandle().
Definition at line 1962 of file file.c.
Referenced by _sopen().
Definition at line 2535 of file file.c.
Definition at line 1205 of file file.c.
Referenced by _filbuf(), _fseeki64(), _ftelli64(), _getw(), _getws(), _putw(), _putws(), clearerr(), fclose(), fflush(), fgetc(), fgets(), fgetwc(), fgetws(), fputc(), fputs(), fputws(), fread(), fsetpos(), fwrite(), gets(), puts(), rewind(), setvbuf(), ungetc(), and ungetwc().
Definition at line 727 of file file.c.
Referenced by _waccess_s().
Definition at line 783 of file file.c.
Definition at line 1520 of file file.c.
Referenced by _fdopen().
Definition at line 3274 of file file.c.
Referenced by _wfopen_s().
Definition at line 3421 of file file.c.
Referenced by freopen().
Definition at line 3187 of file file.c.
Definition at line 2020 of file file.c.
Referenced by _wcreat(), _wfreopen(), compat_open(), and gz_open().
Definition at line 3789 of file file.c.
Definition at line 2585 of file file.c.
Definition at line 1939 of file file.c.
Referenced by _wfsopen(), and _wopen().
Definition at line 1778 of file file.c.
Referenced by _sopen_s(), and _wsopen().
Definition at line 2556 of file file.c.
Definition at line 3882 of file file.c.
Definition at line 191 of file file.c.
Referenced by get_ioinfo_alloc(), and get_ioinfo_alloc_fd().
Definition at line 1752 of file file.c.
Referenced by _wsopen_s().
Definition at line 411 of file file.c.
Definition at line 2783 of file file.c.
Definition at line 3257 of file file.c.
Referenced by tinyxml2::callfopen(), CreateSpecFile(), and FileReporter::FileReporter().
Definition at line 3147 of file file.c.
Definition at line 3340 of file file.c.
Definition at line 3077 of file file.c.
Definition at line 181 of file file.c.
Referenced by _chsize_s(), _close(), _commit(), _dup2(), _eof(), _fstat64(), _futime(), _locking(), _lseeki64(), _read(), _setmode(), _write(), get_ioinfo_alloc_fd(), and msvcrt_free_fd().
Definition at line 230 of file file.c.
Referenced by _dup(), and msvcrt_alloc_fd().
Definition at line 216 of file file.c.
Referenced by _dup2(), and msvcrt_init_io().
Definition at line 158 of file file.c.
Referenced by _close(), _ftelli64(), _get_osfhandle(), _isatty(), _wsopen_s(), create_io_inherit_block(), fgetwc(), fputwc(), fputws(), fread(), get_ioinfo(), get_ioinfo_alloc(), msvcrt_init_fp(), msvcrt_init_io(), and ungetwc().
Definition at line 2116 of file file.c.
Referenced by read_utf8().
Definition at line 3629 of file file.c.
Referenced by FSE_normalizeCount(), get_key(), macdef(), main(), Main(), and printWindowsError().
Definition at line 3645 of file file.c.
Referenced by cd(), cmdscanner(), confirm(), delete(), do_chmod(), domacro(), doproxy(), getit(), macdef(), main(), makedir(), mdelete(), mget(), mls(), modtime(), mput(), put(), quote(), removedir(), renamefile(), setnmap(), setpeer(), site(), sizecmd(), and user().
Definition at line 169 of file file.c.
Referenced by get_ioinfo(), and get_ioinfo_alloc().
Definition at line 343 of file file.c.
Referenced by _open_osfhandle(), _pipe(), _tpopen(), and _wsopen_s().
Definition at line 360 of file file.c.
Referenced by _wfdopen(), _wfsopen(), and tmpfile().
Definition at line 867 of file file.c.
Referenced by _flushall(), and fflush().
Definition at line 535 of file file.c.
Referenced by _fseeki64(), fflush(), fputc(), fsetpos(), fwrite(), and remove_std_buffer().
Definition at line 296 of file file.c.
Referenced by _close().
Definition at line 1100 of file file.c.
Referenced by DllMain(), and msvcrt_init_exception().
Definition at line 269 of file file.c.
Referenced by _fcloseall(), _rmtmp(), fclose(), msvcrt_alloc_fp(), msvcrt_flush_all_buffers(), and msvcrt_free_io().
Definition at line 1385 of file file.c.
Referenced by _wfdopen(), _wfreopen(), and _wfsopen().
Definition at line 382 of file file.c.
Referenced by _wfdopen(), _wfreopen(), _wfsopen(), and tmpfile().
Definition at line 456 of file file.c.
Referenced by crt_process_init(), and DllMain().
Definition at line 325 of file file.c.
Referenced by _dup2(), msvcrt_alloc_fd(), and msvcrt_init_io().
Definition at line 2306 of file file.c.
Referenced by _read().
Definition at line 2130 of file file.c.
Referenced by read_i().
Definition at line 263 of file file.c.
Referenced by _chsize_s(), _close(), _commit(), _dup(), _dup2(), _eof(), _fstat64(), _futime(), _locking(), _lseeki64(), _read(), _setmode(), _write(), msvcrt_alloc_fd(), msvcrt_free_fd(), and msvcrt_init_io().
Definition at line 3776 of file file.c.
Definition at line 1671 of file file.c.
Referenced by _open_osfhandle(), _pipe(), _tpopen(), and _wsopen_s().
Definition at line 3914 of file file.c.
Referenced by CCFDATAStorage::Create(), create_temp_binary(), HANDLE_CustomType7(), jpeg_open_backing_store(), JSPROXY_InternetInitializeAutoProxyDll(), open_file_test(), patch_file(), test_color_contexts(), test_CreateDirectoryA(), test_CryptCATAdminAddRemoveCatalog(), test_GetNamedSecurityInfoA(), test_install_class(), test_retrieveObjectByUrl(), test_SetupCopyOEMInf(), transfer_file_http(), CCFDATAStorage::Truncate(), VerInstallFileA(), and VerInstallFileW().
Definition at line 3981 of file file.c.
ioinfo __badioinfo = { INVALID_HANDLE_VALUE, WX_TEXT } |
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(), release_ioinfo(), and Test___badioinfo().
ioinfo* __pioinfo[MSVCRT_MAX_FILES/MSVCRT_FD_BLOCK_SIZE] = { 0 } |
|
extern |
Definition at line 31 of file environ.c.
Referenced by __p__commode(), and msvcrt_get_flags().
FILE _iob[_IOB_ENTRIES] = { { 0 } } |
Definition at line 133 of file file.c.
Referenced by __iob_func(), _lock_file(), _unlock_file(), fclose(), msvcrt_free_io(), msvcrt_get_file(), msvcrt_init_fp(), msvcrt_init_io(), and Test__iob().
|
static |
|
static |
|
static |
Definition at line 134 of file file.c.
Referenced by msvcrt_free_io(), and msvcrt_get_file().
|
static |
Definition at line 135 of file file.c.
Referenced by _getmaxstdio(), _setmaxstdio(), msvcrt_alloc_fp(), and msvcrt_get_file().
|
static |
Definition at line 135 of file file.c.
Referenced by _fcloseall(), _rmtmp(), _setmaxstdio(), fclose(), msvcrt_alloc_fp(), msvcrt_flush_all_buffers(), msvcrt_free_io(), and msvcrt_init_io().
|
static |
Definition at line 141 of file file.c.
Referenced by _wtmpnam(), and tmpnam().
|
static |
Definition at line 109 of file file.c.
Referenced by _wsopen_s(), and check_bom().
|
static |
Definition at line 108 of file file.c.
Referenced by _wsopen_s(), check_bom(), ME_HandleMessage(), and parse_file().