Data Structures |
| struct | ioinfo |
| struct | file_crit |
Defines |
| #define | WX_OPEN 0x01 |
| #define | WX_ATEOF 0x02 |
| #define | WX_READEOF 0x04 /* like ATEOF, but for underlying file rather than buffer */ |
| #define | WX_READCR 0x08 /* underlying file is at \r */ |
| #define | WX_DONTINHERIT 0x10 |
| #define | WX_APPEND 0x20 |
| #define | WX_TEXT 0x80 |
| #define | MAX_FILES 2048 |
| #define | FD_BLOCK_SIZE 64 |
| #define | LOCK_FILES() do { EnterCriticalSection(&file_cs); } while (0) |
| #define | UNLOCK_FILES() do { LeaveCriticalSection(&file_cs); } while (0) |
Functions |
| int * | __p__fmode (void) |
| int * | __p___mb_cur_max (void) |
| static ioinfo * | get_ioinfo (int fd) |
| static FILE * | get_file (int i) |
| static BOOL | is_valid_fd (int fd) |
| HANDLE | fdtoh (int fd) |
| static void | free_fd (int fd) |
| static int | alloc_fd_from (HANDLE hand, int flag, int fd) |
| int | alloc_fd (HANDLE hand, int flag) |
| static FILE * | alloc_fp (void) |
| static int | init_fp (FILE *file, int fd, unsigned stream_flags) |
| unsigned | create_io_inherit_block (WORD *size, BYTE **block) |
| void | msvcrt_init_io (void) |
| static int | flush_buffer (FILE *file) |
| void | alloc_buffer (FILE *file) |
| static int | int_to_base32 (int num, char *str) |
| static int | int_to_base32_w (int num, wchar_t *str) |
| wchar_t * | msvcrt_wstrdupa (const char *str) |
| FILE *CDECL | __iob_func (void) |
| int CDECL | _access (const char *filename, int mode) |
| int CDECL | _access_s (const char *filename, int mode) |
| int CDECL | _waccess (const wchar_t *filename, int mode) |
| int CDECL | _waccess_s (const wchar_t *filename, int mode) |
| int CDECL | _chmod (const char *path, int flags) |
| int CDECL | _wchmod (const wchar_t *path, int flags) |
| int CDECL | _unlink (const char *path) |
| int CDECL | _wunlink (const wchar_t *path) |
| int CDECL | fflush (FILE *file) |
| int CDECL | _flushall (void) |
| int CDECL | _close (int fd) |
| int CDECL | _commit (int fd) |
| int CDECL | _dup2 (int od, int nd) |
| int CDECL | _dup (int od) |
| int CDECL | _eof (int fd) |
| int CDECL | _fcloseall (void) |
| void | msvcrt_free_io (void) |
| __int64 CDECL | _lseeki64 (int fd, __int64 offset, int whence) |
| LONG CDECL | _lseek (int fd, LONG offset, int whence) |
| void CDECL | _lock_file (FILE *file) |
| void CDECL | _unlock_file (FILE *file) |
| int CDECL | _locking (int fd, int mode, LONG nbytes) |
| int CDECL | _fseeki64 (FILE *file, __int64 offset, int whence) |
| int CDECL | fseek (FILE *file, long offset, int whence) |
| int CDECL | _chsize (int fd, long size) |
| void CDECL | clearerr (FILE *file) |
| void CDECL | rewind (FILE *file) |
| static int | get_flags (const wchar_t *mode, int *open_flags, int *stream_flags) |
| FILE *CDECL | _fdopen (int fd, const char *mode) |
| FILE *CDECL | _wfdopen (int fd, const wchar_t *mode) |
| LONG CDECL | _filelength (int fd) |
| __int64 CDECL | _filelengthi64 (int fd) |
| int CDECL | _fileno (FILE *file) |
| intptr_t CDECL | _get_osfhandle (int fd) |
| int CDECL | _isatty (int fd) |
| char *CDECL | _mktemp (char *pattern) |
| wchar_t *CDECL | _wmktemp (wchar_t *pattern) |
| unsigned | split_oflags (unsigned oflags) |
| int CDECL | _pipe (int *pfds, unsigned int psize, int textmode) |
| int CDECL | _sopen_s (int *fd, const char *path, int oflags, int shflags, int pmode) |
| int CDECL | _sopen (const char *path, int oflags, int shflags,...) |
| int CDECL | _wsopen_s (int *fd, const wchar_t *path, int oflags, int shflags, int pmode) |
| int CDECL | _wsopen (const wchar_t *path, int oflags, int shflags,...) |
| int CDECL | _open (const char *path, int flags,...) |
| int CDECL | _wopen (const wchar_t *path, int flags,...) |
| int CDECL | _creat (const char *path, int flags) |
| int CDECL | _wcreat (const wchar_t *path, int flags) |
| int CDECL | _open_osfhandle (intptr_t handle, int oflags) |
| int CDECL | _rmtmp (void) |
| static int | read_i (int fd, void *buf, unsigned int count) |
| int CDECL | _read (int fd, void *buf, unsigned int count) |
| int CDECL | _setmode (int fd, int mode) |
| long CDECL | _tell (int fd) |
| __int64 CDECL | _telli64 (int fd) |
| char *CDECL | _tempnam (const char *dir, const char *prefix) |
| wchar_t *CDECL | _wtempnam (const wchar_t *dir, const wchar_t *prefix) |
| int CDECL | _umask (int umask) |
| int CDECL | _write (int fd, const void *buf, unsigned int count) |
| int CDECL | _putw (int val, FILE *file) |
| int CDECL | fclose (FILE *file) |
| int CDECL | feof (FILE *file) |
| int CDECL | ferror (FILE *file) |
| int CDECL | _filbuf (FILE *file) |
| int CDECL | fgetc (FILE *file) |
| int CDECL | _fgetchar (void) |
| char *CDECL | fgets (char *s, int size, FILE *file) |
| wint_t CDECL | fgetwc (FILE *file) |
| int CDECL | _getw (FILE *file) |
| wint_t CDECL | getwc (FILE *file) |
| wint_t CDECL | _fgetwchar (void) |
| wint_t CDECL | getwchar (void) |
| wchar_t *CDECL | fgetws (wchar_t *s, int size, FILE *file) |
| size_t CDECL | fwrite (const void *ptr, size_t size, size_t nmemb, FILE *file) |
| wint_t CDECL | fputwc (wint_t wc, FILE *file) |
| wint_t CDECL | _fputwchar (wint_t wc) |
| FILE *CDECL | _wfsopen (const wchar_t *path, const wchar_t *mode, int share) |
| FILE *CDECL | _fsopen (const char *path, const char *mode, int share) |
| FILE *CDECL | fopen (const char *path, const char *mode) |
| int CDECL | fopen_s (FILE **pFile, const char *filename, const char *mode) |
| FILE *CDECL | _wfopen (const wchar_t *path, const wchar_t *mode) |
| int CDECL | _wfopen_s (FILE **pFile, const wchar_t *filename, const wchar_t *mode) |
| int CDECL | _flsbuf (int c, FILE *file) |
| int CDECL | fputc (int c, FILE *file) |
| int CDECL | _fputchar (int c) |
| size_t CDECL | fread (void *ptr, size_t size, size_t nmemb, FILE *file) |
| FILE *CDECL | _wfreopen (const wchar_t *path, const wchar_t *mode, FILE *file) |
| FILE *CDECL | freopen (const char *path, const char *mode, FILE *file) |
| int CDECL | fsetpos (FILE *file, const fpos_t *pos) |
| __int64 CDECL | _ftelli64 (FILE *file) |
| LONG CDECL | ftell (FILE *file) |
| int CDECL | fgetpos (FILE *file, fpos_t *pos) |
| int CDECL | fputs (const char *s, FILE *file) |
| int CDECL | fputws (const wchar_t *s, FILE *file) |
| int CDECL | getchar (void) |
| int CDECL | getc (FILE *file) |
| char *CDECL | gets (char *buf) |
| wchar_t *CDECL | _getws (wchar_t *buf) |
| int CDECL | putc (int c, FILE *file) |
| int CDECL | putchar (int c) |
| wint_t CDECL | _putwch (wchar_t c) |
| int CDECL | puts (const char *s) |
| int CDECL | _putws (const wchar_t *s) |
| int CDECL | remove (const char *path) |
| int CDECL | _wremove (const wchar_t *path) |
| int CDECL | rename (const char *oldpath, const char *newpath) |
| int CDECL | _wrename (const wchar_t *oldpath, const wchar_t *newpath) |
| int CDECL | setvbuf (FILE *file, char *buf, int mode, size_t size) |
| void CDECL | setbuf (FILE *file, char *buf) |
| char *CDECL | tmpnam (char *s) |
| wchar_t *CDECL | _wtmpnam (wchar_t *s) |
| FILE *CDECL | tmpfile (void) |
| int CDECL | ungetc (int c, FILE *file) |
| wint_t CDECL | ungetwc (wint_t wc, FILE *file) |
| int CDECL | _getmaxstdio (void) |
| int CDECL | _setmaxstdio (int newmax) |
Variables |
| ioinfo * | __pioinfo [MAX_FILES/FD_BLOCK_SIZE] = { 0 } |
| ioinfo | __badioinfo = { INVALID_HANDLE_VALUE, WX_TEXT } |
| static int | fdstart = 3 |
| static int | fdend = 3 |
| FILE | _iob [_IOB_ENTRIES] = { { 0 } } |
| static file_crit * | fstream [MAX_FILES/FD_BLOCK_SIZE] = { NULL } |
| static int | max_streams = 512 |
| static int | stream_idx |
| static int | MSVCRT_umask = 0 |
| static int | tmpnam_unique |
| static CRITICAL_SECTION | file_cs |