ReactOS 0.4.16-dev-2104-gb84fa49
msvcrt.h File Reference
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
Include dependency graph for msvcrt.h:

Go to the source code of this file.

Classes

struct  MSVCRT__LDOUBLE
 
struct  MSVCRT_tm
 
struct  MSVCRT_tagLC_ID
 
struct  MSVCRT_threadlocaleinfostruct
 
struct  MSVCRT_threadmbcinfostruct
 
struct  MSVCRT_localeinfo_struct
 
struct  __thread_data
 
struct  MSVCRT___timeb32
 
struct  MSVCRT___timeb64
 
struct  MSVCRT__iobuf
 
struct  MSVCRT_lconv
 
struct  MSVCRT__exception
 
struct  MSVCRT__complex
 
struct  MSVCRT__div_t
 
struct  MSVCRT__ldiv_t
 
struct  MSVCRT__heapinfo
 
struct  MSVCRT__diskfree_t
 
struct  MSVCRT__finddata32_t
 
struct  MSVCRT__finddata32i64_t
 
struct  MSVCRT__finddata64i32_t
 
struct  MSVCRT__finddata64_t
 
struct  MSVCRT__wfinddata32_t
 
struct  MSVCRT__wfinddata32i64_t
 
struct  MSVCRT__wfinddata64i32_t
 
struct  MSVCRT__wfinddata64_t
 
struct  MSVCRT___utimbuf32
 
struct  MSVCRT___utimbuf64
 
struct  MSVCRT__stat32
 
struct  MSVCRT__stat32i64
 
struct  MSVCRT__stat64i32
 
struct  MSVCRT__stat64
 
union  _printf_arg
 
struct  MSVCRT__CRT_FLOAT
 

Macros

#define MSVCRT_LONG_MAX   0x7fffffffL
 
#define MSVCRT_ULONG_MAX   0xffffffffUL
 
#define MSVCRT_I64_MAX   (((__int64)0x7fffffff << 32) | 0xffffffff)
 
#define MSVCRT_I64_MIN   (-MSVCRT_I64_MAX-1)
 
#define MSVCRT_UI64_MAX   (((unsigned __int64)0xffffffff << 32) | 0xffffffff)
 
#define MSVCRT__MAX_DRIVE   3
 
#define MSVCRT__MAX_DIR   256
 
#define MSVCRT__MAX_FNAME   256
 
#define MSVCRT__MAX_EXT   256
 
#define _RT_STACK   0
 
#define _RT_NULLPTR   1
 
#define _RT_FLOAT   2
 
#define _RT_INTDIV   3
 
#define _RT_EXECMEM   5
 
#define _RT_EXECFORM   6
 
#define _RT_EXECENV   7
 
#define _RT_SPACEARG   8
 
#define _RT_SPACEENV   9
 
#define _RT_ABORT   10
 
#define _RT_NPTR   12
 
#define _RT_FPTR   13
 
#define _RT_BREAK   14
 
#define _RT_INT   15
 
#define _RT_THREAD   16
 
#define _RT_LOCK   17
 
#define _RT_HEAP   18
 
#define _RT_OPENCON   19
 
#define _RT_QWIN   20
 
#define _RT_NOMAIN   21
 
#define _RT_NONCONT   22
 
#define _RT_INVALDISP   23
 
#define _RT_ONEXIT   24
 
#define _RT_PUREVIRT   25
 
#define _RT_STDIOINIT   26
 
#define _RT_LOWIOINIT   27
 
#define _RT_HEAPINIT   28
 
#define _RT_DOMAIN   120
 
#define _RT_SING   121
 
#define _RT_TLOSS   122
 
#define _RT_CRNL   252
 
#define _RT_BANNER   255
 
#define MSVCRT__finddata_t   MSVCRT__finddata32_t
 
#define MSVCRT__finddatai64_t   MSVCRT__finddata32i64_t
 
#define MSVCRT__wfinddata_t   MSVCRT__wfinddata32_t
 
#define MSVCRT__wfinddatai64_t   MSVCRT__wfinddata32i64_t
 
#define MSVCRT__stat   MSVCRT__stat32
 
#define MSVCRT__stati64   MSVCRT__stat32i64
 
#define MSVCRT_WEOF   (MSVCRT_wint_t)(0xFFFF)
 
#define MSVCRT_EOF   (-1)
 
#define MSVCRT_TMP_MAX   0x7fff
 
#define MSVCRT_RAND_MAX   0x7fff
 
#define MSVCRT_BUFSIZ   512
 
#define MSVCRT_STDIN_FILENO   0
 
#define MSVCRT_STDOUT_FILENO   1
 
#define MSVCRT_STDERR_FILENO   2
 
#define MSVCRT__IOFBF   0x0000
 
#define MSVCRT__IONBF   0x0004
 
#define MSVCRT__IOLBF   0x0040
 
#define MSVCRT_FILENAME_MAX   260
 
#define MSVCRT_DRIVE_MAX   3
 
#define MSVCRT_FNAME_MAX   256
 
#define MSVCRT_DIR_MAX   256
 
#define MSVCRT_EXT_MAX   256
 
#define MSVCRT_PATH_MAX   260
 
#define MSVCRT_stdin   (MSVCRT__iob+MSVCRT_STDIN_FILENO)
 
#define MSVCRT_stdout   (MSVCRT__iob+MSVCRT_STDOUT_FILENO)
 
#define MSVCRT_stderr   (MSVCRT__iob+MSVCRT_STDERR_FILENO)
 
#define MSVCRT__P_WAIT   0
 
#define MSVCRT__P_NOWAIT   1
 
#define MSVCRT__P_OVERLAY   2
 
#define MSVCRT__P_NOWAITO   3
 
#define MSVCRT__P_DETACH   4
 
#define MSVCRT_EPERM   1
 
#define MSVCRT_ENOENT   2
 
#define MSVCRT_ESRCH   3
 
#define MSVCRT_EINTR   4
 
#define MSVCRT_EIO   5
 
#define MSVCRT_ENXIO   6
 
#define MSVCRT_E2BIG   7
 
#define MSVCRT_ENOEXEC   8
 
#define MSVCRT_EBADF   9
 
#define MSVCRT_ECHILD   10
 
#define MSVCRT_EAGAIN   11
 
#define MSVCRT_ENOMEM   12
 
#define MSVCRT_EACCES   13
 
#define MSVCRT_EFAULT   14
 
#define MSVCRT_EBUSY   16
 
#define MSVCRT_EEXIST   17
 
#define MSVCRT_EXDEV   18
 
#define MSVCRT_ENODEV   19
 
#define MSVCRT_ENOTDIR   20
 
#define MSVCRT_EISDIR   21
 
#define MSVCRT_EINVAL   22
 
#define MSVCRT_ENFILE   23
 
#define MSVCRT_EMFILE   24
 
#define MSVCRT_ENOTTY   25
 
#define MSVCRT_EFBIG   27
 
#define MSVCRT_ENOSPC   28
 
#define MSVCRT_ESPIPE   29
 
#define MSVCRT_EROFS   30
 
#define MSVCRT_EMLINK   31
 
#define MSVCRT_EPIPE   32
 
#define MSVCRT_EDOM   33
 
#define MSVCRT_ERANGE   34
 
#define MSVCRT_EDEADLK   36
 
#define MSVCRT_EDEADLOCK   MSVCRT_EDEADLK
 
#define MSVCRT_ENAMETOOLONG   38
 
#define MSVCRT_ENOLCK   39
 
#define MSVCRT_ENOSYS   40
 
#define MSVCRT_ENOTEMPTY   41
 
#define MSVCRT_EILSEQ   42
 
#define MSVCRT_STRUNCATE   80
 
#define MSVCRT_LC_ALL   0
 
#define MSVCRT_LC_COLLATE   1
 
#define MSVCRT_LC_CTYPE   2
 
#define MSVCRT_LC_MONETARY   3
 
#define MSVCRT_LC_NUMERIC   4
 
#define MSVCRT_LC_TIME   5
 
#define MSVCRT_LC_MIN   MSVCRT_LC_ALL
 
#define MSVCRT_LC_MAX   MSVCRT_LC_TIME
 
#define MSVCRT__HEAPEMPTY   -1
 
#define MSVCRT__HEAPOK   -2
 
#define MSVCRT__HEAPBADBEGIN   -3
 
#define MSVCRT__HEAPBADNODE   -4
 
#define MSVCRT__HEAPEND   -5
 
#define MSVCRT__HEAPBADPTR   -6
 
#define MSVCRT__FREEENTRY   0
 
#define MSVCRT__USEDENTRY   1
 
#define MSVCRT__OUT_TO_DEFAULT   0
 
#define MSVCRT__OUT_TO_STDERR   1
 
#define MSVCRT__OUT_TO_MSGBOX   2
 
#define MSVCRT__REPORT_ERRMODE   3
 
#define MSVCRT__UPPER   0x0001 /* C1_UPPER */
 
#define MSVCRT__LOWER   0x0002 /* C1_LOWER */
 
#define MSVCRT__DIGIT   0x0004 /* C1_DIGIT */
 
#define MSVCRT__SPACE   0x0008 /* C1_SPACE */
 
#define MSVCRT__PUNCT   0x0010 /* C1_PUNCT */
 
#define MSVCRT__CONTROL   0x0020 /* C1_CNTRL */
 
#define MSVCRT__BLANK   0x0040 /* C1_BLANK */
 
#define MSVCRT__HEX   0x0080 /* C1_XDIGIT */
 
#define MSVCRT__LEADBYTE   0x8000
 
#define MSVCRT__ALPHA   (0x0100|MSVCRT__UPPER|MSVCRT__LOWER) /* (C1_ALPHA|_UPPER|_LOWER) */
 
#define MSVCRT__IOREAD   0x0001
 
#define MSVCRT__IOWRT   0x0002
 
#define MSVCRT__IOMYBUF   0x0008
 
#define MSVCRT__IOEOF   0x0010
 
#define MSVCRT__IOERR   0x0020
 
#define MSVCRT__IOSTRG   0x0040
 
#define MSVCRT__IORW   0x0080
 
#define MSVCRT__S_IEXEC   0x0040
 
#define MSVCRT__S_IWRITE   0x0080
 
#define MSVCRT__S_IREAD   0x0100
 
#define MSVCRT__S_IFIFO   0x1000
 
#define MSVCRT__S_IFCHR   0x2000
 
#define MSVCRT__S_IFDIR   0x4000
 
#define MSVCRT__S_IFREG   0x8000
 
#define MSVCRT__S_IFMT   0xF000
 
#define MSVCRT__LK_UNLCK   0
 
#define MSVCRT__LK_LOCK   1
 
#define MSVCRT__LK_NBLCK   2
 
#define MSVCRT__LK_RLCK   3
 
#define MSVCRT__LK_NBRLCK   4
 
#define MSVCRT__SH_COMPAT   0x00 /* Compatibility */
 
#define MSVCRT__SH_DENYRW   0x10 /* Deny read/write */
 
#define MSVCRT__SH_DENYWR   0x20 /* Deny write */
 
#define MSVCRT__SH_DENYRD   0x30 /* Deny read */
 
#define MSVCRT__SH_DENYNO   0x40 /* Deny nothing */
 
#define MSVCRT__O_RDONLY   0
 
#define MSVCRT__O_WRONLY   1
 
#define MSVCRT__O_RDWR   2
 
#define MSVCRT__O_ACCMODE   (MSVCRT__O_RDONLY|MSVCRT__O_WRONLY|MSVCRT__O_RDWR)
 
#define MSVCRT__O_APPEND   0x0008
 
#define MSVCRT__O_RANDOM   0x0010
 
#define MSVCRT__O_SEQUENTIAL   0x0020
 
#define MSVCRT__O_TEMPORARY   0x0040
 
#define MSVCRT__O_NOINHERIT   0x0080
 
#define MSVCRT__O_CREAT   0x0100
 
#define MSVCRT__O_TRUNC   0x0200
 
#define MSVCRT__O_EXCL   0x0400
 
#define MSVCRT__O_SHORT_LIVED   0x1000
 
#define MSVCRT__O_TEXT   0x4000
 
#define MSVCRT__O_BINARY   0x8000
 
#define MSVCRT__O_RAW   MSVCRT__O_BINARY
 
#define MSVCRT__SW_INEXACT   0x00000001 /* inexact (precision) */
 
#define MSVCRT__SW_UNDERFLOW   0x00000002 /* underflow */
 
#define MSVCRT__SW_OVERFLOW   0x00000004 /* overflow */
 
#define MSVCRT__SW_ZERODIVIDE   0x00000008 /* zero divide */
 
#define MSVCRT__SW_INVALID   0x00000010 /* invalid */
 
#define MSVCRT__SW_UNEMULATED   0x00000040 /* unemulated instruction */
 
#define MSVCRT__SW_SQRTNEG   0x00000080 /* square root of a neg number */
 
#define MSVCRT__SW_STACKOVERFLOW   0x00000200 /* FP stack overflow */
 
#define MSVCRT__SW_STACKUNDERFLOW   0x00000400 /* FP stack underflow */
 
#define MSVCRT__SW_DENORMAL   0x00080000 /* denormal status bit */
 
#define MSVCRT__FPCLASS_SNAN   0x0001 /* Signaling "Not a Number" */
 
#define MSVCRT__FPCLASS_QNAN   0x0002 /* Quiet "Not a Number" */
 
#define MSVCRT__FPCLASS_NINF   0x0004 /* Negative Infinity */
 
#define MSVCRT__FPCLASS_NN   0x0008 /* Negative Normal */
 
#define MSVCRT__FPCLASS_ND   0x0010 /* Negative Denormal */
 
#define MSVCRT__FPCLASS_NZ   0x0020 /* Negative Zero */
 
#define MSVCRT__FPCLASS_PZ   0x0040 /* Positive Zero */
 
#define MSVCRT__FPCLASS_PD   0x0080 /* Positive Denormal */
 
#define MSVCRT__FPCLASS_PN   0x0100 /* Positive Normal */
 
#define MSVCRT__FPCLASS_PINF   0x0200 /* Positive Infinity */
 
#define MSVCRT__MCW_EM   0x0008001f
 
#define MSVCRT__MCW_IC   0x00040000
 
#define MSVCRT__MCW_RC   0x00000300
 
#define MSVCRT__MCW_PC   0x00030000
 
#define MSVCRT__MCW_DN   0x03000000
 
#define MSVCRT__EM_INVALID   0x00000010
 
#define MSVCRT__EM_DENORMAL   0x00080000
 
#define MSVCRT__EM_ZERODIVIDE   0x00000008
 
#define MSVCRT__EM_OVERFLOW   0x00000004
 
#define MSVCRT__EM_UNDERFLOW   0x00000002
 
#define MSVCRT__EM_INEXACT   0x00000001
 
#define MSVCRT__IC_AFFINE   0x00040000
 
#define MSVCRT__IC_PROJECTIVE   0x00000000
 
#define MSVCRT__RC_CHOP   0x00000300
 
#define MSVCRT__RC_UP   0x00000200
 
#define MSVCRT__RC_DOWN   0x00000100
 
#define MSVCRT__RC_NEAR   0x00000000
 
#define MSVCRT__PC_24   0x00020000
 
#define MSVCRT__PC_53   0x00010000
 
#define MSVCRT__PC_64   0x00000000
 
#define MSVCRT__DN_SAVE   0x00000000
 
#define MSVCRT__DN_FLUSH   0x01000000
 
#define MSVCRT__DN_FLUSH_OPERANDS_SAVE_RESULTS   0x02000000
 
#define MSVCRT__DN_SAVE_OPERANDS_FLUSH_RESULTS   0x03000000
 
#define MSVCRT__EM_AMBIGUOUS   0x80000000
 
#define MSVCRT_CLOCKS_PER_SEC   1000
 
#define MSVCRT_SIGINT   2
 
#define MSVCRT_SIGILL   4
 
#define MSVCRT_SIGFPE   8
 
#define MSVCRT_SIGSEGV   11
 
#define MSVCRT_SIGTERM   15
 
#define MSVCRT_SIGBREAK   21
 
#define MSVCRT_SIGABRT   22
 
#define MSVCRT_NSIG   (MSVCRT_SIGABRT + 1)
 
#define MSVCRT_SIG_DFL   ((MSVCRT___sighandler_t)0)
 
#define MSVCRT_SIG_IGN   ((MSVCRT___sighandler_t)1)
 
#define MSVCRT_SIG_ERR   ((MSVCRT___sighandler_t)-1)
 
#define MSVCRT__FPE_INVALID   0x81
 
#define MSVCRT__FPE_DENORMAL   0x82
 
#define MSVCRT__FPE_ZERODIVIDE   0x83
 
#define MSVCRT__FPE_OVERFLOW   0x84
 
#define MSVCRT__FPE_UNDERFLOW   0x85
 
#define MSVCRT__FPE_INEXACT   0x86
 
#define MSVCRT__FPE_UNEMULATED   0x87
 
#define MSVCRT__FPE_SQRTNEG   0x88
 
#define MSVCRT__FPE_STACKOVERFLOW   0x8a
 
#define MSVCRT__FPE_STACKUNDERFLOW   0x8b
 
#define MSVCRT__FPE_EXPLICITGEN   0x8c
 
#define _MS   0x01
 
#define _MP   0x02
 
#define _M1   0x04
 
#define _M2   0x08
 
#define _SBUP   0x10
 
#define _SBLOW   0x20
 
#define _MBC_SINGLE   0
 
#define _MBC_LEAD   1
 
#define _MBC_TRAIL   2
 
#define _MBC_ILLEGAL   -1
 
#define _MB_CP_SBCS   0
 
#define _MB_CP_OEM   -2
 
#define _MB_CP_ANSI   -3
 
#define _MB_CP_LOCALE   -4
 
#define MSVCRT__TRUNCATE   ((MSVCRT_size_t)-1)
 
#define _MAX__TIME64_T   (((MSVCRT___time64_t)0x00000007 << 32) | 0x93406FFF)
 
#define MSVCRT__WRITE_ABORT_MSG   1
 
#define MSVCRT__CALL_REPORTFAULT   2
 
#define MSVCRT__TWO_DIGIT_EXPONENT   0x1
 
#define MSVCRT__ENABLE_PER_THREAD_LOCALE   1
 
#define MSVCRT__DISABLE_PER_THREAD_LOCALE   2
 
#define MSVCRT_INVALID_PMT(x)   MSVCRT__invalid_parameter(NULL, NULL, NULL, 0, 0)
 
#define MSVCRT_CHECK_PMT(x)   ((x) || (MSVCRT_INVALID_PMT(0),FALSE))
 
#define MSVCRT__ARGMAX   100
 
#define MSVCRT__OVERFLOW   3
 
#define MSVCRT__UNDERFLOW   4
 

Typedefs

typedef unsigned short MSVCRT_wchar_t
 
typedef unsigned short MSVCRT_wint_t
 
typedef unsigned short MSVCRT_wctype_t
 
typedef unsigned short MSVCRT__ino_t
 
typedef unsigned int MSVCRT__fsize_t
 
typedef int MSVCRT_long
 
typedef unsigned int MSVCRT_ulong
 
typedef unsigned int MSVCRT_size_t
 
typedef int MSVCRT_intptr_t
 
typedef unsigned int MSVCRT_uintptr_t
 
typedef unsigned int MSVCRT__dev_t
 
typedef int MSVCRT__off_t
 
typedef int MSVCRT_clock_t
 
typedef int MSVCRT___time32_t
 
typedef __int64 DECLSPEC_ALIGN(8) MSVCRT___time64_t
 
typedef int MSVCRT_mbstate_t
 
typedef void(__cdeclMSVCRT_terminate_handler) (void)
 
typedef void(__cdeclMSVCRT_terminate_function) (void)
 
typedef void(__cdeclMSVCRT_unexpected_handler) (void)
 
typedef void(__cdeclMSVCRT_unexpected_function) (void)
 
typedef void(__cdeclMSVCRT__se_translator_function) (unsigned int code, struct _EXCEPTION_POINTERS *info)
 
typedef void(__cdeclMSVCRT__beginthread_start_routine_t) (void *)
 
typedef unsigned int(__stdcallMSVCRT__beginthreadex_start_routine_t) (void *)
 
typedef int(__cdeclMSVCRT__onexit_t) (void)
 
typedef void(__cdeclMSVCRT_invalid_parameter_handler) (const MSVCRT_wchar_t *, const MSVCRT_wchar_t *, const MSVCRT_wchar_t *, unsigned, MSVCRT_uintptr_t)
 
typedef void(__cdeclMSVCRT_purecall_handler) (void)
 
typedef void(__cdeclMSVCRT_security_error_handler) (int, void *)
 
typedef struct MSVCRT_tagLC_ID MSVCRT_LC_ID
 
typedef struct MSVCRT_tagLC_IDMSVCRT_LPLC_ID
 
typedef struct MSVCRT_threadlocaleinfostruct MSVCRT_threadlocinfo
 
typedef struct MSVCRT_threadmbcinfostruct MSVCRT_threadmbcinfo
 
typedef struct MSVCRT_threadlocaleinfostructMSVCRT_pthreadlocinfo
 
typedef struct MSVCRT_threadmbcinfostructMSVCRT_pthreadmbcinfo
 
typedef struct MSVCRT_localeinfo_struct MSVCRT__locale_tstruct
 
typedef struct MSVCRT_localeinfo_structMSVCRT__locale_t
 
typedef struct __thread_data thread_data_t
 
typedef void *(__cdeclmalloc_func_t) (MSVCRT_size_t)
 
typedef void(__cdeclfree_func_t) (void *)
 
typedef struct MSVCRT__iobuf MSVCRT_FILE
 
typedef struct MSVCRT__div_t MSVCRT_div_t
 
typedef struct MSVCRT__ldiv_t MSVCRT_ldiv_t
 
typedef void(__cdeclMSVCRT___sighandler_t) (int)
 
typedef int(* puts_clbk_a) (void *, int, const char *)
 
typedef int(* puts_clbk_w) (void *, int, const MSVCRT_wchar_t *)
 
typedef union _printf_arg printf_arg
 
typedef printf_arg(* args_clbk) (void *, int, int, __ms_va_list *)
 

Functions

thread_data_tmsvcrt_get_thread_data (void)
 
LCID MSVCRT_locale_to_LCID (const char *)
 
void msvcrt_set_errno (int)
 
void __cdecl _purecall (void)
 
void __cdecl _amsg_exit (int errnum)
 
char ** msvcrt_SnapshotOfEnvironmentA (char **)
 
MSVCRT_wchar_t ** msvcrt_SnapshotOfEnvironmentW (MSVCRT_wchar_t **)
 
MSVCRT_wchar_tmsvcrt_wstrdupa (const char *)
 
int __cdecl MSVCRT__set_new_mode (int mode)
 
void *__cdecl MSVCRT_operator_new (MSVCRT_size_t)
 
void __cdecl MSVCRT_operator_delete (void *)
 
char *__cdecl __unDName (char *, const char *, int, malloc_func_t, free_func_t, unsigned short int)
 
char *__cdecl __unDNameEx (char *, const char *, int, malloc_func_t, free_func_t, void *, unsigned short int)
 
void msvcrt_init_mt_locks (void)
 
void msvcrt_free_mt_locks (void)
 
BOOL msvcrt_init_locale (void)
 
void msvcrt_init_math (void)
 
void msvcrt_init_io (void)
 
void msvcrt_free_io (void)
 
void msvcrt_init_console (void)
 
void msvcrt_free_console (void)
 
void msvcrt_init_args (void)
 
void msvcrt_free_args (void)
 
void msvcrt_init_signals (void)
 
void msvcrt_free_signals (void)
 
unsigned msvcrt_create_io_inherit_block (WORD *, BYTE **)
 
unsigned int __cdecl _control87 (unsigned int, unsigned int)
 
void __cdecl MSVCRT_free (void *)
 
void *__cdecl MSVCRT_malloc (MSVCRT_size_t)
 
void *__cdecl MSVCRT_calloc (MSVCRT_size_t, MSVCRT_size_t)
 
void *__cdecl MSVCRT_realloc (void *, MSVCRT_size_t)
 
int __cdecl MSVCRT_iswalpha (MSVCRT_wint_t)
 
int __cdecl MSVCRT_iswspace (MSVCRT_wint_t)
 
int __cdecl MSVCRT_iswdigit (MSVCRT_wint_t)
 
int __cdecl MSVCRT_isleadbyte (int)
 
int __cdecl MSVCRT__isleadbyte_l (int, MSVCRT__locale_t)
 
void __cdecl MSVCRT__lock_file (MSVCRT_FILE *)
 
void __cdecl MSVCRT__unlock_file (MSVCRT_FILE *)
 
int __cdecl MSVCRT_fgetc (MSVCRT_FILE *)
 
int __cdecl MSVCRT_ungetc (int, MSVCRT_FILE *)
 
MSVCRT_wint_t __cdecl MSVCRT_fgetwc (MSVCRT_FILE *)
 
MSVCRT_wint_t __cdecl MSVCRT_ungetwc (MSVCRT_wint_t, MSVCRT_FILE *)
 
void __cdecl MSVCRT__exit (int)
 
void __cdecl MSVCRT_abort (void)
 
MSVCRT_ulong *__cdecl MSVCRT___doserrno (void)
 
int *__cdecl MSVCRT__errno (void)
 
char *__cdecl MSVCRT_getenv (const char *)
 
int __cdecl MSVCRT_fclose (MSVCRT_FILE *)
 
void __cdecl MSVCRT_terminate (void)
 
MSVCRT_FILE *__cdecl MSVCRT__iob_func (void)
 
MSVCRT_clock_t __cdecl MSVCRT_clock (void)
 
MSVCRT___time32_t __cdecl MSVCRT__time32 (MSVCRT___time32_t *)
 
MSVCRT___time64_t __cdecl MSVCRT__time64 (MSVCRT___time64_t *)
 
MSVCRT_FILE *__cdecl MSVCRT__fdopen (int, const char *)
 
MSVCRT_FILE *__cdecl MSVCRT__wfdopen (int, const MSVCRT_wchar_t *)
 
int __cdecl MSVCRT_vsnprintf (char *str, MSVCRT_size_t len, const char *format, __ms_va_list valist)
 
int __cdecl MSVCRT_vsnwprintf (MSVCRT_wchar_t *str, MSVCRT_size_t len, const MSVCRT_wchar_t *format, __ms_va_list valist)
 
int __cdecl MSVCRT__snwprintf (MSVCRT_wchar_t *, unsigned int, const MSVCRT_wchar_t *,...)
 
int __cdecl MSVCRT_sprintf (char *, const char *,...)
 
int __cdecl MSVCRT__scprintf (const char *,...)
 
int __cdecl MSVCRT_raise (int sig)
 
MSVCRT_pthreadlocinfo get_locinfo (void)
 
MSVCRT_pthreadmbcinfo get_mbcinfo (void)
 
void __cdecl MSVCRT__free_locale (MSVCRT__locale_t)
 
void free_locinfo (MSVCRT_pthreadlocinfo)
 
void free_mbcinfo (MSVCRT_pthreadmbcinfo)
 
int _setmbcp_l (int, LCID, MSVCRT_pthreadmbcinfo)
 
int __cdecl MSVCRT__write (int, const void *, unsigned int)
 
int __cdecl _getch (void)
 
int __cdecl _ismbblead (unsigned int)
 
int __cdecl _ismbstrail (const unsigned char *start, const unsigned char *str)
 
MSVCRT_size_t __cdecl MSVCRT_mbstowcs (MSVCRT_wchar_t *, const char *, MSVCRT_size_t)
 
MSVCRT_intptr_t __cdecl MSVCRT__spawnve (int, const char *, const char *const *, const char *const *)
 
MSVCRT_intptr_t __cdecl MSVRT__spawnvpe (int, const char *, const char *const *, const char *const *)
 
MSVCRT_intptr_t __cdecl MSVCRT__wspawnve (int, const MSVCRT_wchar_t *, const MSVCRT_wchar_t *const *, const MSVCRT_wchar_t *const *)
 
MSVCRT_intptr_t __cdecl MSVCRT__wspawnvpe (int, const MSVCRT_wchar_t *, const MSVCRT_wchar_t *const *, const MSVCRT_wchar_t *const *)
 
void __cdecl MSVCRT__searchenv (const char *, const char *, char *)
 
int __cdecl MSVCRT__getdrive (void)
 
char *__cdecl MSVCRT__strdup (const char *)
 
char *__cdecl MSVCRT__strnset (char *, int, MSVCRT_size_t)
 
char *__cdecl _strset (char *, int)
 
int __cdecl _ungetch (int)
 
int __cdecl _cputs (const char *)
 
int __cdecl _cprintf (const char *,...)
 
int __cdecl _cwprintf (const MSVCRT_wchar_t *,...)
 
char ***__cdecl MSVCRT___p__environ (void)
 
int *__cdecl __p___mb_cur_max (void)
 
unsigned int *__cdecl __p__fmode (void)
 
MSVCRT_wchar_t *__cdecl MSVCRT__wcsdup (const MSVCRT_wchar_t *)
 
MSVCRT_wchar_t ***__cdecl MSVCRT___p__wenviron (void)
 
char *__cdecl MSVCRT__strdate (char *date)
 
char *__cdecl MSVCRT__strtime (char *date)
 
int __cdecl _setmbcp (int)
 
int __cdecl MSVCRT__close (int)
 
int __cdecl MSVCRT__dup (int)
 
int __cdecl MSVCRT__dup2 (int, int)
 
int __cdecl MSVCRT__pipe (int *, unsigned int, int)
 
MSVCRT_wchar_t *__cdecl MSVCRT__wgetenv (const MSVCRT_wchar_t *)
 
void __cdecl MSVCRT__wsearchenv (const MSVCRT_wchar_t *, const MSVCRT_wchar_t *, MSVCRT_wchar_t *)
 
MSVCRT_intptr_t __cdecl MSVCRT__spawnvpe (int, const char *, const char *const *, const char *const *)
 
void __cdecl MSVCRT__invalid_parameter (const MSVCRT_wchar_t *expr, const MSVCRT_wchar_t *func, const MSVCRT_wchar_t *file, unsigned int line, MSVCRT_uintptr_t arg)
 
int __cdecl MSVCRT__toupper_l (int, MSVCRT__locale_t)
 
int __cdecl MSVCRT__tolower_l (int, MSVCRT__locale_t)
 
int pf_printf_a (puts_clbk_a, void *, const char *, MSVCRT__locale_t, BOOL, BOOL, args_clbk, void *, __ms_va_list *)
 
int pf_printf_w (puts_clbk_w, void *, const MSVCRT_wchar_t *, MSVCRT__locale_t, BOOL, BOOL, args_clbk, void *, __ms_va_list *)
 
printf_arg arg_clbk_valist (void *, int, int, __ms_va_list *)
 

Variables

DWORD msvcrt_tls_index
 
MSVCRT__locale_t MSVCRT_locale
 
int MSVCRT___lc_codepage
 
int MSVCRT___lc_collate_cp
 
WORD MSVCRT__ctype [257]
 
char ** MSVCRT__environ
 
MSVCRT_wchar_t ** MSVCRT__wenviron
 

Macro Definition Documentation

◆ _M1

#define _M1   0x04

Definition at line 817 of file msvcrt.h.

◆ _M2

#define _M2   0x08

Definition at line 818 of file msvcrt.h.

◆ _MAX__TIME64_T

#define _MAX__TIME64_T   (((MSVCRT___time64_t)0x00000007 << 32) | 0x93406FFF)

Definition at line 835 of file msvcrt.h.

◆ _MB_CP_ANSI

#define _MB_CP_ANSI   -3

Definition at line 830 of file msvcrt.h.

◆ _MB_CP_LOCALE

#define _MB_CP_LOCALE   -4

Definition at line 831 of file msvcrt.h.

◆ _MB_CP_OEM

#define _MB_CP_OEM   -2

Definition at line 829 of file msvcrt.h.

◆ _MB_CP_SBCS

#define _MB_CP_SBCS   0

Definition at line 828 of file msvcrt.h.

◆ _MBC_ILLEGAL

#define _MBC_ILLEGAL   -1

Definition at line 826 of file msvcrt.h.

◆ _MBC_LEAD

#define _MBC_LEAD   1

Definition at line 824 of file msvcrt.h.

◆ _MBC_SINGLE

#define _MBC_SINGLE   0

Definition at line 823 of file msvcrt.h.

◆ _MBC_TRAIL

#define _MBC_TRAIL   2

Definition at line 825 of file msvcrt.h.

◆ _MP

#define _MP   0x02

Definition at line 816 of file msvcrt.h.

◆ _MS

#define _MS   0x01

Definition at line 815 of file msvcrt.h.

◆ _RT_ABORT

#define _RT_ABORT   10

Definition at line 262 of file msvcrt.h.

◆ _RT_BANNER

#define _RT_BANNER   255

Definition at line 284 of file msvcrt.h.

◆ _RT_BREAK

#define _RT_BREAK   14

Definition at line 265 of file msvcrt.h.

◆ _RT_CRNL

#define _RT_CRNL   252

Definition at line 283 of file msvcrt.h.

◆ _RT_DOMAIN

#define _RT_DOMAIN   120

Definition at line 280 of file msvcrt.h.

◆ _RT_EXECENV

#define _RT_EXECENV   7

Definition at line 259 of file msvcrt.h.

◆ _RT_EXECFORM

#define _RT_EXECFORM   6

Definition at line 258 of file msvcrt.h.

◆ _RT_EXECMEM

#define _RT_EXECMEM   5

Definition at line 257 of file msvcrt.h.

◆ _RT_FLOAT

#define _RT_FLOAT   2

Definition at line 255 of file msvcrt.h.

◆ _RT_FPTR

#define _RT_FPTR   13

Definition at line 264 of file msvcrt.h.

◆ _RT_HEAP

#define _RT_HEAP   18

Definition at line 269 of file msvcrt.h.

◆ _RT_HEAPINIT

#define _RT_HEAPINIT   28

Definition at line 279 of file msvcrt.h.

◆ _RT_INT

#define _RT_INT   15

Definition at line 266 of file msvcrt.h.

◆ _RT_INTDIV

#define _RT_INTDIV   3

Definition at line 256 of file msvcrt.h.

◆ _RT_INVALDISP

#define _RT_INVALDISP   23

Definition at line 274 of file msvcrt.h.

◆ _RT_LOCK

#define _RT_LOCK   17

Definition at line 268 of file msvcrt.h.

◆ _RT_LOWIOINIT

#define _RT_LOWIOINIT   27

Definition at line 278 of file msvcrt.h.

◆ _RT_NOMAIN

#define _RT_NOMAIN   21

Definition at line 272 of file msvcrt.h.

◆ _RT_NONCONT

#define _RT_NONCONT   22

Definition at line 273 of file msvcrt.h.

◆ _RT_NPTR

#define _RT_NPTR   12

Definition at line 263 of file msvcrt.h.

◆ _RT_NULLPTR

#define _RT_NULLPTR   1

Definition at line 254 of file msvcrt.h.

◆ _RT_ONEXIT

#define _RT_ONEXIT   24

Definition at line 275 of file msvcrt.h.

◆ _RT_OPENCON

#define _RT_OPENCON   19

Definition at line 270 of file msvcrt.h.

◆ _RT_PUREVIRT

#define _RT_PUREVIRT   25

Definition at line 276 of file msvcrt.h.

◆ _RT_QWIN

#define _RT_QWIN   20

Definition at line 271 of file msvcrt.h.

◆ _RT_SING

#define _RT_SING   121

Definition at line 281 of file msvcrt.h.

◆ _RT_SPACEARG

#define _RT_SPACEARG   8

Definition at line 260 of file msvcrt.h.

◆ _RT_SPACEENV

#define _RT_SPACEENV   9

Definition at line 261 of file msvcrt.h.

◆ _RT_STACK

#define _RT_STACK   0

Definition at line 253 of file msvcrt.h.

◆ _RT_STDIOINIT

#define _RT_STDIOINIT   26

Definition at line 277 of file msvcrt.h.

◆ _RT_THREAD

#define _RT_THREAD   16

Definition at line 267 of file msvcrt.h.

◆ _RT_TLOSS

#define _RT_TLOSS   122

Definition at line 282 of file msvcrt.h.

◆ _SBLOW

#define _SBLOW   0x20

Definition at line 821 of file msvcrt.h.

◆ _SBUP

#define _SBUP   0x10

Definition at line 820 of file msvcrt.h.

◆ MSVCRT__ALPHA

#define MSVCRT__ALPHA   (0x0100|MSVCRT__UPPER|MSVCRT__LOWER) /* (C1_ALPHA|_UPPER|_LOWER) */

Definition at line 684 of file msvcrt.h.

◆ MSVCRT__ARGMAX

#define MSVCRT__ARGMAX   100

Definition at line 944 of file msvcrt.h.

◆ MSVCRT__BLANK

#define MSVCRT__BLANK   0x0040 /* C1_BLANK */

Definition at line 681 of file msvcrt.h.

◆ MSVCRT__CALL_REPORTFAULT

#define MSVCRT__CALL_REPORTFAULT   2

Definition at line 839 of file msvcrt.h.

◆ MSVCRT__CONTROL

#define MSVCRT__CONTROL   0x0020 /* C1_CNTRL */

Definition at line 680 of file msvcrt.h.

◆ MSVCRT__DIGIT

#define MSVCRT__DIGIT   0x0004 /* C1_DIGIT */

Definition at line 677 of file msvcrt.h.

◆ MSVCRT__DISABLE_PER_THREAD_LOCALE

#define MSVCRT__DISABLE_PER_THREAD_LOCALE   2

Definition at line 883 of file msvcrt.h.

◆ MSVCRT__DN_FLUSH

#define MSVCRT__DN_FLUSH   0x01000000

Definition at line 780 of file msvcrt.h.

◆ MSVCRT__DN_FLUSH_OPERANDS_SAVE_RESULTS

#define MSVCRT__DN_FLUSH_OPERANDS_SAVE_RESULTS   0x02000000

Definition at line 781 of file msvcrt.h.

◆ MSVCRT__DN_SAVE

#define MSVCRT__DN_SAVE   0x00000000

Definition at line 779 of file msvcrt.h.

◆ MSVCRT__DN_SAVE_OPERANDS_FLUSH_RESULTS

#define MSVCRT__DN_SAVE_OPERANDS_FLUSH_RESULTS   0x03000000

Definition at line 782 of file msvcrt.h.

◆ MSVCRT__EM_AMBIGUOUS

#define MSVCRT__EM_AMBIGUOUS   0x80000000

Definition at line 783 of file msvcrt.h.

◆ MSVCRT__EM_DENORMAL

#define MSVCRT__EM_DENORMAL   0x00080000

Definition at line 765 of file msvcrt.h.

◆ MSVCRT__EM_INEXACT

#define MSVCRT__EM_INEXACT   0x00000001

Definition at line 769 of file msvcrt.h.

◆ MSVCRT__EM_INVALID

#define MSVCRT__EM_INVALID   0x00000010

Definition at line 764 of file msvcrt.h.

◆ MSVCRT__EM_OVERFLOW

#define MSVCRT__EM_OVERFLOW   0x00000004

Definition at line 767 of file msvcrt.h.

◆ MSVCRT__EM_UNDERFLOW

#define MSVCRT__EM_UNDERFLOW   0x00000002

Definition at line 768 of file msvcrt.h.

◆ MSVCRT__EM_ZERODIVIDE

#define MSVCRT__EM_ZERODIVIDE   0x00000008

Definition at line 766 of file msvcrt.h.

◆ MSVCRT__ENABLE_PER_THREAD_LOCALE

#define MSVCRT__ENABLE_PER_THREAD_LOCALE   1

Definition at line 882 of file msvcrt.h.

◆ MSVCRT__finddata_t

#define MSVCRT__finddata_t   MSVCRT__finddata32_t

Definition at line 570 of file msvcrt.h.

◆ MSVCRT__finddatai64_t

#define MSVCRT__finddatai64_t   MSVCRT__finddata32i64_t

Definition at line 571 of file msvcrt.h.

◆ MSVCRT__FPCLASS_ND

#define MSVCRT__FPCLASS_ND   0x0010 /* Negative Denormal */

Definition at line 751 of file msvcrt.h.

◆ MSVCRT__FPCLASS_NINF

#define MSVCRT__FPCLASS_NINF   0x0004 /* Negative Infinity */

Definition at line 749 of file msvcrt.h.

◆ MSVCRT__FPCLASS_NN

#define MSVCRT__FPCLASS_NN   0x0008 /* Negative Normal */

Definition at line 750 of file msvcrt.h.

◆ MSVCRT__FPCLASS_NZ

#define MSVCRT__FPCLASS_NZ   0x0020 /* Negative Zero */

Definition at line 752 of file msvcrt.h.

◆ MSVCRT__FPCLASS_PD

#define MSVCRT__FPCLASS_PD   0x0080 /* Positive Denormal */

Definition at line 754 of file msvcrt.h.

◆ MSVCRT__FPCLASS_PINF

#define MSVCRT__FPCLASS_PINF   0x0200 /* Positive Infinity */

Definition at line 756 of file msvcrt.h.

◆ MSVCRT__FPCLASS_PN

#define MSVCRT__FPCLASS_PN   0x0100 /* Positive Normal */

Definition at line 755 of file msvcrt.h.

◆ MSVCRT__FPCLASS_PZ

#define MSVCRT__FPCLASS_PZ   0x0040 /* Positive Zero */

Definition at line 753 of file msvcrt.h.

◆ MSVCRT__FPCLASS_QNAN

#define MSVCRT__FPCLASS_QNAN   0x0002 /* Quiet "Not a Number" */

Definition at line 748 of file msvcrt.h.

◆ MSVCRT__FPCLASS_SNAN

#define MSVCRT__FPCLASS_SNAN   0x0001 /* Signaling "Not a Number" */

Definition at line 747 of file msvcrt.h.

◆ MSVCRT__FPE_DENORMAL

#define MSVCRT__FPE_DENORMAL   0x82

Definition at line 804 of file msvcrt.h.

◆ MSVCRT__FPE_EXPLICITGEN

#define MSVCRT__FPE_EXPLICITGEN   0x8c

Definition at line 813 of file msvcrt.h.

◆ MSVCRT__FPE_INEXACT

#define MSVCRT__FPE_INEXACT   0x86

Definition at line 808 of file msvcrt.h.

◆ MSVCRT__FPE_INVALID

#define MSVCRT__FPE_INVALID   0x81

Definition at line 803 of file msvcrt.h.

◆ MSVCRT__FPE_OVERFLOW

#define MSVCRT__FPE_OVERFLOW   0x84

Definition at line 806 of file msvcrt.h.

◆ MSVCRT__FPE_SQRTNEG

#define MSVCRT__FPE_SQRTNEG   0x88

Definition at line 810 of file msvcrt.h.

◆ MSVCRT__FPE_STACKOVERFLOW

#define MSVCRT__FPE_STACKOVERFLOW   0x8a

Definition at line 811 of file msvcrt.h.

◆ MSVCRT__FPE_STACKUNDERFLOW

#define MSVCRT__FPE_STACKUNDERFLOW   0x8b

Definition at line 812 of file msvcrt.h.

◆ MSVCRT__FPE_UNDERFLOW

#define MSVCRT__FPE_UNDERFLOW   0x85

Definition at line 807 of file msvcrt.h.

◆ MSVCRT__FPE_UNEMULATED

#define MSVCRT__FPE_UNEMULATED   0x87

Definition at line 809 of file msvcrt.h.

◆ MSVCRT__FPE_ZERODIVIDE

#define MSVCRT__FPE_ZERODIVIDE   0x83

Definition at line 805 of file msvcrt.h.

◆ MSVCRT__FREEENTRY

#define MSVCRT__FREEENTRY   0

Definition at line 666 of file msvcrt.h.

◆ MSVCRT__HEAPBADBEGIN

#define MSVCRT__HEAPBADBEGIN   -3

Definition at line 661 of file msvcrt.h.

◆ MSVCRT__HEAPBADNODE

#define MSVCRT__HEAPBADNODE   -4

Definition at line 662 of file msvcrt.h.

◆ MSVCRT__HEAPBADPTR

#define MSVCRT__HEAPBADPTR   -6

Definition at line 664 of file msvcrt.h.

◆ MSVCRT__HEAPEMPTY

#define MSVCRT__HEAPEMPTY   -1

Definition at line 659 of file msvcrt.h.

◆ MSVCRT__HEAPEND

#define MSVCRT__HEAPEND   -5

Definition at line 663 of file msvcrt.h.

◆ MSVCRT__HEAPOK

#define MSVCRT__HEAPOK   -2

Definition at line 660 of file msvcrt.h.

◆ MSVCRT__HEX

#define MSVCRT__HEX   0x0080 /* C1_XDIGIT */

Definition at line 682 of file msvcrt.h.

◆ MSVCRT__IC_AFFINE

#define MSVCRT__IC_AFFINE   0x00040000

Definition at line 770 of file msvcrt.h.

◆ MSVCRT__IC_PROJECTIVE

#define MSVCRT__IC_PROJECTIVE   0x00000000

Definition at line 771 of file msvcrt.h.

◆ MSVCRT__IOEOF

#define MSVCRT__IOEOF   0x0010

Definition at line 689 of file msvcrt.h.

◆ MSVCRT__IOERR

#define MSVCRT__IOERR   0x0020

Definition at line 690 of file msvcrt.h.

◆ MSVCRT__IOFBF

#define MSVCRT__IOFBF   0x0000

Definition at line 589 of file msvcrt.h.

◆ MSVCRT__IOLBF

#define MSVCRT__IOLBF   0x0040

Definition at line 591 of file msvcrt.h.

◆ MSVCRT__IOMYBUF

#define MSVCRT__IOMYBUF   0x0008

Definition at line 688 of file msvcrt.h.

◆ MSVCRT__IONBF

#define MSVCRT__IONBF   0x0004

Definition at line 590 of file msvcrt.h.

◆ MSVCRT__IOREAD

#define MSVCRT__IOREAD   0x0001

Definition at line 686 of file msvcrt.h.

◆ MSVCRT__IORW

#define MSVCRT__IORW   0x0080

Definition at line 692 of file msvcrt.h.

◆ MSVCRT__IOSTRG

#define MSVCRT__IOSTRG   0x0040

Definition at line 691 of file msvcrt.h.

◆ MSVCRT__IOWRT

#define MSVCRT__IOWRT   0x0002

Definition at line 687 of file msvcrt.h.

◆ MSVCRT__LEADBYTE

#define MSVCRT__LEADBYTE   0x8000

Definition at line 683 of file msvcrt.h.

◆ MSVCRT__LK_LOCK

#define MSVCRT__LK_LOCK   1

Definition at line 704 of file msvcrt.h.

◆ MSVCRT__LK_NBLCK

#define MSVCRT__LK_NBLCK   2

Definition at line 705 of file msvcrt.h.

◆ MSVCRT__LK_NBRLCK

#define MSVCRT__LK_NBRLCK   4

Definition at line 707 of file msvcrt.h.

◆ MSVCRT__LK_RLCK

#define MSVCRT__LK_RLCK   3

Definition at line 706 of file msvcrt.h.

◆ MSVCRT__LK_UNLCK

#define MSVCRT__LK_UNLCK   0

Definition at line 703 of file msvcrt.h.

◆ MSVCRT__LOWER

#define MSVCRT__LOWER   0x0002 /* C1_LOWER */

Definition at line 676 of file msvcrt.h.

◆ MSVCRT__MAX_DIR

#define MSVCRT__MAX_DIR   256

Definition at line 51 of file msvcrt.h.

◆ MSVCRT__MAX_DRIVE

#define MSVCRT__MAX_DRIVE   3

Definition at line 50 of file msvcrt.h.

◆ MSVCRT__MAX_EXT

#define MSVCRT__MAX_EXT   256

Definition at line 53 of file msvcrt.h.

◆ MSVCRT__MAX_FNAME

#define MSVCRT__MAX_FNAME   256

Definition at line 52 of file msvcrt.h.

◆ MSVCRT__MCW_DN

#define MSVCRT__MCW_DN   0x03000000

Definition at line 762 of file msvcrt.h.

◆ MSVCRT__MCW_EM

#define MSVCRT__MCW_EM   0x0008001f

Definition at line 758 of file msvcrt.h.

◆ MSVCRT__MCW_IC

#define MSVCRT__MCW_IC   0x00040000

Definition at line 759 of file msvcrt.h.

◆ MSVCRT__MCW_PC

#define MSVCRT__MCW_PC   0x00030000

Definition at line 761 of file msvcrt.h.

◆ MSVCRT__MCW_RC

#define MSVCRT__MCW_RC   0x00000300

Definition at line 760 of file msvcrt.h.

◆ MSVCRT__O_ACCMODE

Definition at line 718 of file msvcrt.h.

◆ MSVCRT__O_APPEND

#define MSVCRT__O_APPEND   0x0008

Definition at line 719 of file msvcrt.h.

◆ MSVCRT__O_BINARY

#define MSVCRT__O_BINARY   0x8000

Definition at line 729 of file msvcrt.h.

◆ MSVCRT__O_CREAT

#define MSVCRT__O_CREAT   0x0100

Definition at line 724 of file msvcrt.h.

◆ MSVCRT__O_EXCL

#define MSVCRT__O_EXCL   0x0400

Definition at line 726 of file msvcrt.h.

◆ MSVCRT__O_NOINHERIT

#define MSVCRT__O_NOINHERIT   0x0080

Definition at line 723 of file msvcrt.h.

◆ MSVCRT__O_RANDOM

#define MSVCRT__O_RANDOM   0x0010

Definition at line 720 of file msvcrt.h.

◆ MSVCRT__O_RAW

#define MSVCRT__O_RAW   MSVCRT__O_BINARY

Definition at line 730 of file msvcrt.h.

◆ MSVCRT__O_RDONLY

#define MSVCRT__O_RDONLY   0

Definition at line 715 of file msvcrt.h.

◆ MSVCRT__O_RDWR

#define MSVCRT__O_RDWR   2

Definition at line 717 of file msvcrt.h.

◆ MSVCRT__O_SEQUENTIAL

#define MSVCRT__O_SEQUENTIAL   0x0020

Definition at line 721 of file msvcrt.h.

◆ MSVCRT__O_SHORT_LIVED

#define MSVCRT__O_SHORT_LIVED   0x1000

Definition at line 727 of file msvcrt.h.

◆ MSVCRT__O_TEMPORARY

#define MSVCRT__O_TEMPORARY   0x0040

Definition at line 722 of file msvcrt.h.

◆ MSVCRT__O_TEXT

#define MSVCRT__O_TEXT   0x4000

Definition at line 728 of file msvcrt.h.

◆ MSVCRT__O_TRUNC

#define MSVCRT__O_TRUNC   0x0200

Definition at line 725 of file msvcrt.h.

◆ MSVCRT__O_WRONLY

#define MSVCRT__O_WRONLY   1

Definition at line 716 of file msvcrt.h.

◆ MSVCRT__OUT_TO_DEFAULT

#define MSVCRT__OUT_TO_DEFAULT   0

Definition at line 669 of file msvcrt.h.

◆ MSVCRT__OUT_TO_MSGBOX

#define MSVCRT__OUT_TO_MSGBOX   2

Definition at line 671 of file msvcrt.h.

◆ MSVCRT__OUT_TO_STDERR

#define MSVCRT__OUT_TO_STDERR   1

Definition at line 670 of file msvcrt.h.

◆ MSVCRT__OVERFLOW

#define MSVCRT__OVERFLOW   3

Definition at line 961 of file msvcrt.h.

◆ MSVCRT__P_DETACH

#define MSVCRT__P_DETACH   4

Definition at line 607 of file msvcrt.h.

◆ MSVCRT__P_NOWAIT

#define MSVCRT__P_NOWAIT   1

Definition at line 604 of file msvcrt.h.

◆ MSVCRT__P_NOWAITO

#define MSVCRT__P_NOWAITO   3

Definition at line 606 of file msvcrt.h.

◆ MSVCRT__P_OVERLAY

#define MSVCRT__P_OVERLAY   2

Definition at line 605 of file msvcrt.h.

◆ MSVCRT__P_WAIT

#define MSVCRT__P_WAIT   0

Definition at line 603 of file msvcrt.h.

◆ MSVCRT__PC_24

#define MSVCRT__PC_24   0x00020000

Definition at line 776 of file msvcrt.h.

◆ MSVCRT__PC_53

#define MSVCRT__PC_53   0x00010000

Definition at line 777 of file msvcrt.h.

◆ MSVCRT__PC_64

#define MSVCRT__PC_64   0x00000000

Definition at line 778 of file msvcrt.h.

◆ MSVCRT__PUNCT

#define MSVCRT__PUNCT   0x0010 /* C1_PUNCT */

Definition at line 679 of file msvcrt.h.

◆ MSVCRT__RC_CHOP

#define MSVCRT__RC_CHOP   0x00000300

Definition at line 772 of file msvcrt.h.

◆ MSVCRT__RC_DOWN

#define MSVCRT__RC_DOWN   0x00000100

Definition at line 774 of file msvcrt.h.

◆ MSVCRT__RC_NEAR

#define MSVCRT__RC_NEAR   0x00000000

Definition at line 775 of file msvcrt.h.

◆ MSVCRT__RC_UP

#define MSVCRT__RC_UP   0x00000200

Definition at line 773 of file msvcrt.h.

◆ MSVCRT__REPORT_ERRMODE

#define MSVCRT__REPORT_ERRMODE   3

Definition at line 672 of file msvcrt.h.

◆ MSVCRT__S_IEXEC

#define MSVCRT__S_IEXEC   0x0040

Definition at line 694 of file msvcrt.h.

◆ MSVCRT__S_IFCHR

#define MSVCRT__S_IFCHR   0x2000

Definition at line 698 of file msvcrt.h.

◆ MSVCRT__S_IFDIR

#define MSVCRT__S_IFDIR   0x4000

Definition at line 699 of file msvcrt.h.

◆ MSVCRT__S_IFIFO

#define MSVCRT__S_IFIFO   0x1000

Definition at line 697 of file msvcrt.h.

◆ MSVCRT__S_IFMT

#define MSVCRT__S_IFMT   0xF000

Definition at line 701 of file msvcrt.h.

◆ MSVCRT__S_IFREG

#define MSVCRT__S_IFREG   0x8000

Definition at line 700 of file msvcrt.h.

◆ MSVCRT__S_IREAD

#define MSVCRT__S_IREAD   0x0100

Definition at line 696 of file msvcrt.h.

◆ MSVCRT__S_IWRITE

#define MSVCRT__S_IWRITE   0x0080

Definition at line 695 of file msvcrt.h.

◆ MSVCRT__SH_COMPAT

#define MSVCRT__SH_COMPAT   0x00 /* Compatibility */

Definition at line 709 of file msvcrt.h.

◆ MSVCRT__SH_DENYNO

#define MSVCRT__SH_DENYNO   0x40 /* Deny nothing */

Definition at line 713 of file msvcrt.h.

◆ MSVCRT__SH_DENYRD

#define MSVCRT__SH_DENYRD   0x30 /* Deny read */

Definition at line 712 of file msvcrt.h.

◆ MSVCRT__SH_DENYRW

#define MSVCRT__SH_DENYRW   0x10 /* Deny read/write */

Definition at line 710 of file msvcrt.h.

◆ MSVCRT__SH_DENYWR

#define MSVCRT__SH_DENYWR   0x20 /* Deny write */

Definition at line 711 of file msvcrt.h.

◆ MSVCRT__SPACE

#define MSVCRT__SPACE   0x0008 /* C1_SPACE */

Definition at line 678 of file msvcrt.h.

◆ MSVCRT__stat

#define MSVCRT__stat   MSVCRT__stat32

Definition at line 574 of file msvcrt.h.

◆ MSVCRT__stati64

#define MSVCRT__stati64   MSVCRT__stat32i64

Definition at line 575 of file msvcrt.h.

◆ MSVCRT__SW_DENORMAL

#define MSVCRT__SW_DENORMAL   0x00080000 /* denormal status bit */

Definition at line 744 of file msvcrt.h.

◆ MSVCRT__SW_INEXACT

#define MSVCRT__SW_INEXACT   0x00000001 /* inexact (precision) */

Definition at line 733 of file msvcrt.h.

◆ MSVCRT__SW_INVALID

#define MSVCRT__SW_INVALID   0x00000010 /* invalid */

Definition at line 737 of file msvcrt.h.

◆ MSVCRT__SW_OVERFLOW

#define MSVCRT__SW_OVERFLOW   0x00000004 /* overflow */

Definition at line 735 of file msvcrt.h.

◆ MSVCRT__SW_SQRTNEG

#define MSVCRT__SW_SQRTNEG   0x00000080 /* square root of a neg number */

Definition at line 740 of file msvcrt.h.

◆ MSVCRT__SW_STACKOVERFLOW

#define MSVCRT__SW_STACKOVERFLOW   0x00000200 /* FP stack overflow */

Definition at line 741 of file msvcrt.h.

◆ MSVCRT__SW_STACKUNDERFLOW

#define MSVCRT__SW_STACKUNDERFLOW   0x00000400 /* FP stack underflow */

Definition at line 742 of file msvcrt.h.

◆ MSVCRT__SW_UNDERFLOW

#define MSVCRT__SW_UNDERFLOW   0x00000002 /* underflow */

Definition at line 734 of file msvcrt.h.

◆ MSVCRT__SW_UNEMULATED

#define MSVCRT__SW_UNEMULATED   0x00000040 /* unemulated instruction */

Definition at line 739 of file msvcrt.h.

◆ MSVCRT__SW_ZERODIVIDE

#define MSVCRT__SW_ZERODIVIDE   0x00000008 /* zero divide */

Definition at line 736 of file msvcrt.h.

◆ MSVCRT__TRUNCATE

#define MSVCRT__TRUNCATE   ((MSVCRT_size_t)-1)

Definition at line 833 of file msvcrt.h.

◆ MSVCRT__TWO_DIGIT_EXPONENT

#define MSVCRT__TWO_DIGIT_EXPONENT   0x1

Definition at line 842 of file msvcrt.h.

◆ MSVCRT__UNDERFLOW

#define MSVCRT__UNDERFLOW   4

Definition at line 962 of file msvcrt.h.

◆ MSVCRT__UPPER

#define MSVCRT__UPPER   0x0001 /* C1_UPPER */

Definition at line 675 of file msvcrt.h.

◆ MSVCRT__USEDENTRY

#define MSVCRT__USEDENTRY   1

Definition at line 667 of file msvcrt.h.

◆ MSVCRT__wfinddata_t

#define MSVCRT__wfinddata_t   MSVCRT__wfinddata32_t

Definition at line 572 of file msvcrt.h.

◆ MSVCRT__wfinddatai64_t

#define MSVCRT__wfinddatai64_t   MSVCRT__wfinddata32i64_t

Definition at line 573 of file msvcrt.h.

◆ MSVCRT__WRITE_ABORT_MSG

#define MSVCRT__WRITE_ABORT_MSG   1

Definition at line 838 of file msvcrt.h.

◆ MSVCRT_BUFSIZ

#define MSVCRT_BUFSIZ   512

Definition at line 582 of file msvcrt.h.

◆ MSVCRT_CHECK_PMT

#define MSVCRT_CHECK_PMT (   x)    ((x) || (MSVCRT_INVALID_PMT(0),FALSE))

Definition at line 941 of file msvcrt.h.

◆ MSVCRT_CLOCKS_PER_SEC

#define MSVCRT_CLOCKS_PER_SEC   1000

Definition at line 785 of file msvcrt.h.

◆ MSVCRT_DIR_MAX

#define MSVCRT_DIR_MAX   256

Definition at line 596 of file msvcrt.h.

◆ MSVCRT_DRIVE_MAX

#define MSVCRT_DRIVE_MAX   3

Definition at line 594 of file msvcrt.h.

◆ MSVCRT_E2BIG

#define MSVCRT_E2BIG   7

Definition at line 615 of file msvcrt.h.

◆ MSVCRT_EACCES

#define MSVCRT_EACCES   13

Definition at line 621 of file msvcrt.h.

◆ MSVCRT_EAGAIN

#define MSVCRT_EAGAIN   11

Definition at line 619 of file msvcrt.h.

◆ MSVCRT_EBADF

#define MSVCRT_EBADF   9

Definition at line 617 of file msvcrt.h.

◆ MSVCRT_EBUSY

#define MSVCRT_EBUSY   16

Definition at line 623 of file msvcrt.h.

◆ MSVCRT_ECHILD

#define MSVCRT_ECHILD   10

Definition at line 618 of file msvcrt.h.

◆ MSVCRT_EDEADLK

#define MSVCRT_EDEADLK   36

Definition at line 641 of file msvcrt.h.

◆ MSVCRT_EDEADLOCK

#define MSVCRT_EDEADLOCK   MSVCRT_EDEADLK

Definition at line 642 of file msvcrt.h.

◆ MSVCRT_EDOM

#define MSVCRT_EDOM   33

Definition at line 639 of file msvcrt.h.

◆ MSVCRT_EEXIST

#define MSVCRT_EEXIST   17

Definition at line 624 of file msvcrt.h.

◆ MSVCRT_EFAULT

#define MSVCRT_EFAULT   14

Definition at line 622 of file msvcrt.h.

◆ MSVCRT_EFBIG

#define MSVCRT_EFBIG   27

Definition at line 633 of file msvcrt.h.

◆ MSVCRT_EILSEQ

#define MSVCRT_EILSEQ   42

Definition at line 647 of file msvcrt.h.

◆ MSVCRT_EINTR

#define MSVCRT_EINTR   4

Definition at line 612 of file msvcrt.h.

◆ MSVCRT_EINVAL

#define MSVCRT_EINVAL   22

Definition at line 629 of file msvcrt.h.

◆ MSVCRT_EIO

#define MSVCRT_EIO   5

Definition at line 613 of file msvcrt.h.

◆ MSVCRT_EISDIR

#define MSVCRT_EISDIR   21

Definition at line 628 of file msvcrt.h.

◆ MSVCRT_EMFILE

#define MSVCRT_EMFILE   24

Definition at line 631 of file msvcrt.h.

◆ MSVCRT_EMLINK

#define MSVCRT_EMLINK   31

Definition at line 637 of file msvcrt.h.

◆ MSVCRT_ENAMETOOLONG

#define MSVCRT_ENAMETOOLONG   38

Definition at line 643 of file msvcrt.h.

◆ MSVCRT_ENFILE

#define MSVCRT_ENFILE   23

Definition at line 630 of file msvcrt.h.

◆ MSVCRT_ENODEV

#define MSVCRT_ENODEV   19

Definition at line 626 of file msvcrt.h.

◆ MSVCRT_ENOENT

#define MSVCRT_ENOENT   2

Definition at line 610 of file msvcrt.h.

◆ MSVCRT_ENOEXEC

#define MSVCRT_ENOEXEC   8

Definition at line 616 of file msvcrt.h.

◆ MSVCRT_ENOLCK

#define MSVCRT_ENOLCK   39

Definition at line 644 of file msvcrt.h.

◆ MSVCRT_ENOMEM

#define MSVCRT_ENOMEM   12

Definition at line 620 of file msvcrt.h.

◆ MSVCRT_ENOSPC

#define MSVCRT_ENOSPC   28

Definition at line 634 of file msvcrt.h.

◆ MSVCRT_ENOSYS

#define MSVCRT_ENOSYS   40

Definition at line 645 of file msvcrt.h.

◆ MSVCRT_ENOTDIR

#define MSVCRT_ENOTDIR   20

Definition at line 627 of file msvcrt.h.

◆ MSVCRT_ENOTEMPTY

#define MSVCRT_ENOTEMPTY   41

Definition at line 646 of file msvcrt.h.

◆ MSVCRT_ENOTTY

#define MSVCRT_ENOTTY   25

Definition at line 632 of file msvcrt.h.

◆ MSVCRT_ENXIO

#define MSVCRT_ENXIO   6

Definition at line 614 of file msvcrt.h.

◆ MSVCRT_EOF

#define MSVCRT_EOF   (-1)

Definition at line 579 of file msvcrt.h.

◆ MSVCRT_EPERM

#define MSVCRT_EPERM   1

Definition at line 609 of file msvcrt.h.

◆ MSVCRT_EPIPE

#define MSVCRT_EPIPE   32

Definition at line 638 of file msvcrt.h.

◆ MSVCRT_ERANGE

#define MSVCRT_ERANGE   34

Definition at line 640 of file msvcrt.h.

◆ MSVCRT_EROFS

#define MSVCRT_EROFS   30

Definition at line 636 of file msvcrt.h.

◆ MSVCRT_ESPIPE

#define MSVCRT_ESPIPE   29

Definition at line 635 of file msvcrt.h.

◆ MSVCRT_ESRCH

#define MSVCRT_ESRCH   3

Definition at line 611 of file msvcrt.h.

◆ MSVCRT_EXDEV

#define MSVCRT_EXDEV   18

Definition at line 625 of file msvcrt.h.

◆ MSVCRT_EXT_MAX

#define MSVCRT_EXT_MAX   256

Definition at line 597 of file msvcrt.h.

◆ MSVCRT_FILENAME_MAX

#define MSVCRT_FILENAME_MAX   260

Definition at line 593 of file msvcrt.h.

◆ MSVCRT_FNAME_MAX

#define MSVCRT_FNAME_MAX   256

Definition at line 595 of file msvcrt.h.

◆ MSVCRT_I64_MAX

#define MSVCRT_I64_MAX   (((__int64)0x7fffffff << 32) | 0xffffffff)

Definition at line 46 of file msvcrt.h.

◆ MSVCRT_I64_MIN

#define MSVCRT_I64_MIN   (-MSVCRT_I64_MAX-1)

Definition at line 47 of file msvcrt.h.

◆ MSVCRT_INVALID_PMT

#define MSVCRT_INVALID_PMT (   x)    MSVCRT__invalid_parameter(NULL, NULL, NULL, 0, 0)

Definition at line 940 of file msvcrt.h.

◆ MSVCRT_LC_ALL

#define MSVCRT_LC_ALL   0

Definition at line 650 of file msvcrt.h.

◆ MSVCRT_LC_COLLATE

#define MSVCRT_LC_COLLATE   1

Definition at line 651 of file msvcrt.h.

◆ MSVCRT_LC_CTYPE

#define MSVCRT_LC_CTYPE   2

Definition at line 652 of file msvcrt.h.

◆ MSVCRT_LC_MAX

#define MSVCRT_LC_MAX   MSVCRT_LC_TIME

Definition at line 657 of file msvcrt.h.

◆ MSVCRT_LC_MIN

#define MSVCRT_LC_MIN   MSVCRT_LC_ALL

Definition at line 656 of file msvcrt.h.

◆ MSVCRT_LC_MONETARY

#define MSVCRT_LC_MONETARY   3

Definition at line 653 of file msvcrt.h.

◆ MSVCRT_LC_NUMERIC

#define MSVCRT_LC_NUMERIC   4

Definition at line 654 of file msvcrt.h.

◆ MSVCRT_LC_TIME

#define MSVCRT_LC_TIME   5

Definition at line 655 of file msvcrt.h.

◆ MSVCRT_LONG_MAX

#define MSVCRT_LONG_MAX   0x7fffffffL

Definition at line 44 of file msvcrt.h.

◆ MSVCRT_NSIG

#define MSVCRT_NSIG   (MSVCRT_SIGABRT + 1)

Definition at line 795 of file msvcrt.h.

◆ MSVCRT_PATH_MAX

#define MSVCRT_PATH_MAX   260

Definition at line 598 of file msvcrt.h.

◆ MSVCRT_RAND_MAX

#define MSVCRT_RAND_MAX   0x7fff

Definition at line 581 of file msvcrt.h.

◆ MSVCRT_SIG_DFL

#define MSVCRT_SIG_DFL   ((MSVCRT___sighandler_t)0)

Definition at line 799 of file msvcrt.h.

◆ MSVCRT_SIG_ERR

#define MSVCRT_SIG_ERR   ((MSVCRT___sighandler_t)-1)

Definition at line 801 of file msvcrt.h.

◆ MSVCRT_SIG_IGN

#define MSVCRT_SIG_IGN   ((MSVCRT___sighandler_t)1)

Definition at line 800 of file msvcrt.h.

◆ MSVCRT_SIGABRT

#define MSVCRT_SIGABRT   22

Definition at line 794 of file msvcrt.h.

◆ MSVCRT_SIGBREAK

#define MSVCRT_SIGBREAK   21

Definition at line 793 of file msvcrt.h.

◆ MSVCRT_SIGFPE

#define MSVCRT_SIGFPE   8

Definition at line 790 of file msvcrt.h.

◆ MSVCRT_SIGILL

#define MSVCRT_SIGILL   4

Definition at line 789 of file msvcrt.h.

◆ MSVCRT_SIGINT

#define MSVCRT_SIGINT   2

Definition at line 788 of file msvcrt.h.

◆ MSVCRT_SIGSEGV

#define MSVCRT_SIGSEGV   11

Definition at line 791 of file msvcrt.h.

◆ MSVCRT_SIGTERM

#define MSVCRT_SIGTERM   15

Definition at line 792 of file msvcrt.h.

◆ MSVCRT_stderr

#define MSVCRT_stderr   (MSVCRT__iob+MSVCRT_STDERR_FILENO)

Definition at line 601 of file msvcrt.h.

◆ MSVCRT_STDERR_FILENO

#define MSVCRT_STDERR_FILENO   2

Definition at line 586 of file msvcrt.h.

◆ MSVCRT_stdin

#define MSVCRT_stdin   (MSVCRT__iob+MSVCRT_STDIN_FILENO)

Definition at line 599 of file msvcrt.h.

◆ MSVCRT_STDIN_FILENO

#define MSVCRT_STDIN_FILENO   0

Definition at line 584 of file msvcrt.h.

◆ MSVCRT_stdout

#define MSVCRT_stdout   (MSVCRT__iob+MSVCRT_STDOUT_FILENO)

Definition at line 600 of file msvcrt.h.

◆ MSVCRT_STDOUT_FILENO

#define MSVCRT_STDOUT_FILENO   1

Definition at line 585 of file msvcrt.h.

◆ MSVCRT_STRUNCATE

#define MSVCRT_STRUNCATE   80

Definition at line 648 of file msvcrt.h.

◆ MSVCRT_TMP_MAX

#define MSVCRT_TMP_MAX   0x7fff

Definition at line 580 of file msvcrt.h.

◆ MSVCRT_UI64_MAX

#define MSVCRT_UI64_MAX   (((unsigned __int64)0xffffffff << 32) | 0xffffffff)

Definition at line 48 of file msvcrt.h.

◆ MSVCRT_ULONG_MAX

#define MSVCRT_ULONG_MAX   0xffffffffUL

Definition at line 45 of file msvcrt.h.

◆ MSVCRT_WEOF

#define MSVCRT_WEOF   (MSVCRT_wint_t)(0xFFFF)

Definition at line 578 of file msvcrt.h.

Typedef Documentation

◆ args_clbk

typedef printf_arg(* args_clbk) (void *, int, int, __ms_va_list *)

Definition at line 954 of file msvcrt.h.

◆ DECLSPEC_ALIGN

typedef __int64 DECLSPEC_ALIGN(8) MSVCRT_fpos_t

Definition at line 75 of file msvcrt.h.

◆ free_func_t

typedef void(__cdecl * free_func_t) (void *)

Definition at line 228 of file msvcrt.h.

◆ malloc_func_t

typedef void *(__cdecl * malloc_func_t) (MSVCRT_size_t)

Definition at line 227 of file msvcrt.h.

◆ MSVCRT___sighandler_t

typedef void(__cdecl * MSVCRT___sighandler_t) (int)

Definition at line 797 of file msvcrt.h.

◆ MSVCRT___time32_t

Definition at line 74 of file msvcrt.h.

◆ MSVCRT__beginthread_start_routine_t

typedef void(__cdecl * MSVCRT__beginthread_start_routine_t) (void *)

Definition at line 84 of file msvcrt.h.

◆ MSVCRT__beginthreadex_start_routine_t

typedef unsigned int(__stdcall * MSVCRT__beginthreadex_start_routine_t) (void *)

Definition at line 85 of file msvcrt.h.

◆ MSVCRT__dev_t

Definition at line 71 of file msvcrt.h.

◆ MSVCRT__fsize_t

Definition at line 59 of file msvcrt.h.

◆ MSVCRT__ino_t

Definition at line 58 of file msvcrt.h.

◆ MSVCRT__locale_t

◆ MSVCRT__locale_tstruct

◆ MSVCRT__off_t

typedef int MSVCRT__off_t

Definition at line 72 of file msvcrt.h.

◆ MSVCRT__onexit_t

typedef int(__cdecl * MSVCRT__onexit_t) (void)

Definition at line 86 of file msvcrt.h.

◆ MSVCRT__se_translator_function

typedef void(__cdecl * MSVCRT__se_translator_function) (unsigned int code, struct _EXCEPTION_POINTERS *info)

Definition at line 83 of file msvcrt.h.

◆ MSVCRT_clock_t

Definition at line 73 of file msvcrt.h.

◆ MSVCRT_div_t

◆ MSVCRT_FILE

Definition at line 311 of file msvcrt.h.

◆ MSVCRT_intptr_t

Definition at line 68 of file msvcrt.h.

◆ MSVCRT_invalid_parameter_handler

typedef void(__cdecl * MSVCRT_invalid_parameter_handler) (const MSVCRT_wchar_t *, const MSVCRT_wchar_t *, const MSVCRT_wchar_t *, unsigned, MSVCRT_uintptr_t)

Definition at line 87 of file msvcrt.h.

◆ MSVCRT_LC_ID

◆ MSVCRT_ldiv_t

◆ MSVCRT_long

typedef int MSVCRT_long

Definition at line 60 of file msvcrt.h.

◆ MSVCRT_LPLC_ID

◆ MSVCRT_mbstate_t

Definition at line 77 of file msvcrt.h.

◆ MSVCRT_pthreadlocinfo

◆ MSVCRT_pthreadmbcinfo

Definition at line 148 of file msvcrt.h.

◆ MSVCRT_purecall_handler

typedef void(__cdecl * MSVCRT_purecall_handler) (void)

Definition at line 88 of file msvcrt.h.

◆ MSVCRT_security_error_handler

typedef void(__cdecl * MSVCRT_security_error_handler) (int, void *)

Definition at line 89 of file msvcrt.h.

◆ MSVCRT_size_t

Definition at line 67 of file msvcrt.h.

◆ MSVCRT_terminate_function

typedef void(__cdecl * MSVCRT_terminate_function) (void)

Definition at line 80 of file msvcrt.h.

◆ MSVCRT_terminate_handler

typedef void(__cdecl * MSVCRT_terminate_handler) (void)

Definition at line 79 of file msvcrt.h.

◆ MSVCRT_threadlocinfo

◆ MSVCRT_threadmbcinfo

◆ MSVCRT_uintptr_t

Definition at line 69 of file msvcrt.h.

◆ MSVCRT_ulong

Definition at line 61 of file msvcrt.h.

◆ MSVCRT_unexpected_function

typedef void(__cdecl * MSVCRT_unexpected_function) (void)

Definition at line 82 of file msvcrt.h.

◆ MSVCRT_unexpected_handler

typedef void(__cdecl * MSVCRT_unexpected_handler) (void)

Definition at line 81 of file msvcrt.h.

◆ MSVCRT_wchar_t

Definition at line 55 of file msvcrt.h.

◆ MSVCRT_wctype_t

Definition at line 57 of file msvcrt.h.

◆ MSVCRT_wint_t

Definition at line 56 of file msvcrt.h.

◆ printf_arg

typedef union _printf_arg printf_arg

◆ puts_clbk_a

typedef int(* puts_clbk_a) (void *, int, const char *)

Definition at line 945 of file msvcrt.h.

◆ puts_clbk_w

typedef int(* puts_clbk_w) (void *, int, const MSVCRT_wchar_t *)

Definition at line 946 of file msvcrt.h.

◆ thread_data_t

Definition at line 196 of file msvcrt.h.

Function Documentation

◆ __p___mb_cur_max()

int *__cdecl __p___mb_cur_max ( void  )

Definition at line 189 of file mbcs.c.

190{
191 return &get_locinfo()->mb_cur_max;
192}
#define get_locinfo()
Definition: winesup.h:25

◆ __p__fmode()

unsigned int *__cdecl __p__fmode ( void  )

Definition at line 269 of file data.c.

269{ return &MSVCRT__fmode; }
int MSVCRT__fmode
Definition: data.c:34

◆ __unDName()

char *__cdecl __unDName ( char buffer,
const char mangled,
int  buflen,
malloc_func_t  memget,
free_func_t  memfree,
unsigned short int  flags 
)

Definition at line 1783 of file undname.c.

1786{
1787 return __unDNameEx(buffer, mangled, buflen, memget, memfree, NULL, flags);
1788}
#define NULL
Definition: types.h:112
char *CDECL __unDNameEx(char *buffer, const char *mangled, int buflen, malloc_func_t memget, free_func_t memfree, void *unknown, unsigned short int flags)
Definition: undname.c:1736
GLuint buffer
Definition: glext.h:5915
GLbitfield flags
Definition: glext.h:7161

◆ __unDNameEx()

char *__cdecl __unDNameEx ( char buffer,
const char mangled,
int  buflen,
malloc_func_t  memget,
free_func_t  memfree,
void unknown,
unsigned short int  flags 
)

Definition at line 1736 of file undname.c.

1739{
1740 struct parsed_symbol sym;
1741 const char* result;
1742
1743 TRACE("(%p,%s,%d,%p,%p,%p,%x)\n",
1744 buffer, debugstr_a(mangled), buflen, memget, memfree, unknown, flags);
1745
1746 /* The flags details is not documented by MS. However, it looks exactly
1747 * like the UNDNAME_ manifest constants from imagehlp.h and dbghelp.h
1748 * So, we copied those (on top of the file)
1749 */
1750 memset(&sym, 0, sizeof(struct parsed_symbol));
1755
1756 sym.flags = flags;
1757 sym.mem_alloc_ptr = memget;
1758 sym.mem_free_ptr = memfree;
1759 sym.current = mangled;
1760 str_array_init( &sym.names );
1761 str_array_init( &sym.stack );
1762
1763 result = symbol_demangle(&sym) ? sym.result : mangled;
1764 if (buffer && buflen)
1765 {
1766 lstrcpynA( buffer, result, buflen);
1767 }
1768 else
1769 {
1770 buffer = memget(strlen(result) + 1);
1771 if (buffer) strcpy(buffer, result);
1772 }
1773
1774 und_free_all(&sym);
1775
1776 return buffer;
1777}
#define UNDNAME_NO_ALLOCATION_LANGUAGE
Definition: dbghelp.h:1256
#define UNDNAME_NO_FUNCTION_RETURNS
Definition: dbghelp.h:1254
#define UNDNAME_NO_ACCESS_SPECIFIERS
Definition: dbghelp.h:1260
#define UNDNAME_NO_MEMBER_TYPE
Definition: dbghelp.h:1262
static WCHAR unknown[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1605
#define lstrcpynA
Definition: compat.h:751
#define UNDNAME_NAME_ONLY
Definition: compat.h:1017
_ACRTIMP size_t __cdecl strlen(const char *)
Definition: string.c:1592
static void und_free_all(struct parsed_symbol *sym)
Definition: undname.c:146
static BOOL symbol_demangle(struct parsed_symbol *sym)
Definition: undname.c:1475
static void str_array_init(struct array *a)
Definition: undname.c:163
#define UNDNAME_NO_COMPLEX_TYPE
Definition: undname.c:51
GLuint64EXT * result
Definition: glext.h:11304
#define debugstr_a
Definition: kernel32.h:31
strcpy
Definition: string.h:131
#define memset(x, y, z)
Definition: compat.h:39
#define TRACE(s)
Definition: solgame.cpp:4

Referenced by __unDName().

◆ _amsg_exit()

void __cdecl _amsg_exit ( int  errnum)

Definition at line 233 of file exit.c.

234{
235 TRACE("(%d)\n", errnum);
236
239 {
240 char text[32];
241 sprintf(text, "Error: R60%d",errnum);
242 DoMessageBox("Runtime error!", text);
243 }
244 else
245 _cprintf("\nruntime error R60%d\n",errnum);
246 _aexit_rtn(255);
247}
aexit_t _aexit_rtn
Definition: amsg.c:39
const WCHAR * text
Definition: package.c:1794
int WINAPIV _cprintf(const char *format,...)
Definition: console.c:563
static void DoMessageBox(const char *lead, const char *message)
Definition: exit.c:220
int MSVCRT_app_type
Definition: data.c:59
static int MSVCRT_error_mode
Definition: exit.c:58
#define _OUT_TO_MSGBOX
Definition: stdlib.h:75
#define _OUT_TO_DEFAULT
Definition: stdlib.h:73
#define sprintf
Definition: sprintf.c:45

◆ _control87()

unsigned int __cdecl _control87 ( unsigned int  newval,
unsigned int  mask 
)

Definition at line 1265 of file math.c.

1266{
1267 unsigned int flags = 0;
1268#if defined(__i386__) && (_MSVCR_VER == 0 || _MSVCR_VER >= 80)
1269 unsigned int sse2_cw;
1270
1271 __control87_2( newval, mask, &flags, &sse2_cw );
1272
1273 if (sse2_supported)
1274 {
1275 if ((flags ^ sse2_cw) & (_MCW_EM | _MCW_RC)) flags |= _EM_AMBIGUOUS;
1276 flags |= sse2_cw;
1277 }
1278#else
1279 flags = newval;
1280 _setfp(&flags, mask, NULL, 0);
1281#endif
1282 return flags;
1283}
#define _MCW_EM
Definition: float.h:64
#define _MCW_RC
Definition: float.h:66
#define _EM_AMBIGUOUS
Definition: float.h:90
BOOL sse2_supported
Definition: math.c:71
static void _setfp(unsigned int *cw, unsigned int cw_mask, unsigned int *sw, unsigned int sw_mask)
Definition: math.c:842
GLenum GLint GLuint mask
Definition: glext.h:6028

Referenced by _controlfp().

◆ _cprintf()

int __cdecl _cprintf ( const char format,
  ... 
)

Definition at line 563 of file console.c.

564{
565 int retval;
567
570 va_end(valist);
571
572 return retval;
573}
int CDECL _vcprintf(const char *format, va_list valist)
Definition: console.c:538
#define va_end(v)
Definition: stdarg.h:28
#define va_start(v, l)
Definition: stdarg.h:26
char * va_list
Definition: vadefs.h:50
static va_list valist
Definition: printf.c:46
Definition: format.c:58
int retval
Definition: wcstombs.cpp:91

Referenced by _amsg_exit().

◆ _cputs()

int __cdecl _cputs ( const char str)

Definition at line 78 of file console.c.

79{
81 int len, retval = -1;
82
83 if (!MSVCRT_CHECK_PMT(str != NULL)) return -1;
84 len = strlen(str);
85
88 && count == len)
89 retval = 0;
91 return retval;
92}
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleA(IN HANDLE hConsoleOutput, IN CONST VOID *lpBuffer, IN DWORD nNumberOfCharsToWrite, OUT LPDWORD lpNumberOfCharsWritten, LPVOID lpReserved)
Definition: readwrite.c:1468
#define LOCK_CONSOLE
Definition: console.c:33
static HANDLE msvcrt_output_console(void)
Definition: console.c:55
#define UNLOCK_CONSOLE
Definition: console.c:34
#define MSVCRT_CHECK_PMT(x)
Definition: msvcrt.h:378
unsigned long DWORD
Definition: ntddk_ex.h:95
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLenum GLsizei len
Definition: glext.h:6722
const WCHAR * str

Referenced by _cgets(), abort(), and gl_getpass().

◆ _cwprintf()

int __cdecl _cwprintf ( const MSVCRT_wchar_t format,
  ... 
)

Definition at line 610 of file console.c.

611{
612 int retval;
614
617 va_end(valist);
618
619 return retval;
620}
int CDECL _vcwprintf(const wchar_t *format, va_list valist)
Definition: console.c:587

◆ _getch()

int __cdecl _getch ( void  )

Definition at line 218 of file console.c.

219{
220 int ret;
221
223 ret = _getch_nolock();
225 return ret;
226}
int CDECL _getch_nolock(void)
Definition: console.c:164
return ret
Definition: mutex.c:146

◆ _ismbblead()

int __cdecl _ismbblead ( unsigned int  c)

Definition at line 2077 of file mbcs.c.

2078{
2079 return _ismbblead_l(c, NULL);
2080}
#define _ismbblead_l(_c, p)
const GLubyte * c
Definition: glext.h:8905

Referenced by _ismbslead(), _mbsnbcpy_s_l(), and _mbsninc().

◆ _ismbstrail()

int __cdecl _ismbstrail ( const unsigned char start,
const unsigned char str 
)

Definition at line 2179 of file mbcs.c.

2180{
2181 return _ismbstrail_l(start, str, NULL);
2182}
GLuint start
Definition: gl.h:1545
int CDECL _ismbstrail_l(const unsigned char *start, const unsigned char *str, _locale_t locale)
Definition: mbcs.c:2164

◆ _purecall()

void __cdecl _purecall ( void  )

Definition at line 494 of file exit.c.

495{
496 TRACE("(void)\n");
497
500 _amsg_exit( 25 );
501}
static _purecall_handler purecall_handler
Definition: exit.c:35
void CDECL _amsg_exit(int errnum)
Definition: exit.c:233

◆ _setmbcp()

int __cdecl _setmbcp ( int  cp)

Definition at line 400 of file mbcs.c.

401{
403 threadmbcinfo *mbcinfo;
404
405 mbcinfo = create_mbcinfo(cp, -1, get_mbcinfo());
406 if(!mbcinfo)
407 {
408 *_errno() = EINVAL;
409 return -1;
410 }
411
412 if(data->locale_flags & LOCALE_THREAD)
413 {
414 if(data->locale_flags & LOCALE_FREE)
415 free_mbcinfo(data->mbcinfo);
416 data->mbcinfo = mbcinfo;
417 }
418 else
419 {
421 free_mbcinfo(MSVCRT_locale->mbcinfo);
422 MSVCRT_locale->mbcinfo = mbcinfo;
423 memcpy(MSVCRT_mbctype, MSVCRT_locale->mbcinfo->mbctype, sizeof(MSVCRT_mbctype));
425 }
426 return 0;
427}
int *CDECL _errno(void)
Definition: errno.c:215
#define EINVAL
Definition: errno.h:44
void free_mbcinfo(pthreadmbcinfo mbcinfo)
Definition: locale.c:1138
pthreadmbcinfo CDECL get_mbcinfo(void)
Definition: locale.c:642
void CDECL _lock(int locknum)
Definition: lock.c:85
void CDECL _unlock(int locknum)
Definition: lock.c:114
thread_data_t *CDECL msvcrt_get_thread_data(void)
Definition: thread.c:45
#define LOCALE_FREE
Definition: msvcrt.h:172
#define LOCALE_THREAD
Definition: msvcrt.h:173
#define _MB_CP_LOCK
Definition: mtdll.h:49
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
POINT cp
Definition: magnifier.c:59
unsigned char MSVCRT_mbctype[257]
Definition: mbcs.c:38
threadmbcinfo * create_mbcinfo(int cp, LCID lcid, threadmbcinfo *old_mbcinfo)
Definition: mbcs.c:219
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
#define MSVCRT_locale
Definition: locale.h:80

◆ _setmbcp_l()

int _setmbcp_l ( int  cp,
LCID  lcid,
MSVCRT_pthreadmbcinfo  mbcinfo 
)

Definition at line 52 of file _setmbcp.c.

53{
54 const char format[] = ".%d";
55
56 int newcp;
57 CPINFO cpi;
58 BYTE *bytes;
59 WORD chartypes[256];
60 char bufA[256];
61 WCHAR bufW[256];
62 int charcount;
63 int ret;
64 int i;
65
66 if(!mbcinfo)
67 mbcinfo = get_mbcinfo();
68
69 switch (cp)
70 {
71 case _MB_CP_ANSI:
72 newcp = GetACP();
73 break;
74 case _MB_CP_OEM:
75 newcp = GetOEMCP();
76 break;
77 case _MB_CP_LOCALE:
78 newcp = get_locinfo()->lc_codepage;
79 if(newcp)
80 break;
81 /* fall through (C locale) */
82 case _MB_CP_SBCS:
83 newcp = 20127; /* ASCII */
84 break;
85 default:
86 newcp = cp;
87 break;
88 }
89
90 if(lcid == -1) {
91 sprintf(bufA, format, newcp);
92 mbcinfo->mblcid = MSVCRT_locale_to_LCID(bufA, NULL);
93 } else {
94 mbcinfo->mblcid = lcid;
95 }
96
97 if(mbcinfo->mblcid == -1)
98 {
99 WARN("Can't assign LCID to codepage (%d)\n", mbcinfo->mblcid);
100 mbcinfo->mblcid = 0;
101 }
102
103 if (!GetCPInfo(newcp, &cpi))
104 {
105 WARN("Codepage %d not found\n", newcp);
106 *_errno() = EINVAL;
107 return -1;
108 }
109
110 /* setup the _mbctype */
111 memset(mbcinfo->mbctype, 0, sizeof(unsigned char[257]));
112 memset(mbcinfo->mbcasemap, 0, sizeof(unsigned char[256]));
113
114 bytes = cpi.LeadByte;
115 while (bytes[0] || bytes[1])
116 {
117 for (i = bytes[0]; i <= bytes[1]; i++)
118 mbcinfo->mbctype[i + 1] |= _M1;
119 bytes += 2;
120 }
121
122 if (cpi.MaxCharSize > 1)
123 {
124 /* trail bytes not available through kernel32 but stored in a structure in msvcrt */
125 struct cp_extra_info_t *cpextra = g_cpextrainfo;
126
127 mbcinfo->ismbcodepage = 1;
128 while (TRUE)
129 {
130 if (cpextra->cp == 0 || cpextra->cp == newcp)
131 {
132 if (cpextra->cp == 0)
133 FIXME("trail bytes data not available for DBCS codepage %d - assuming all bytes\n", newcp);
134
135 bytes = cpextra->TrailBytes;
136 while (bytes[0] || bytes[1])
137 {
138 for (i = bytes[0]; i <= bytes[1]; i++)
139 mbcinfo->mbctype[i + 1] |= _M2;
140 bytes += 2;
141 }
142 break;
143 }
144 cpextra++;
145 }
146 }
147 else
148 mbcinfo->ismbcodepage = 0;
149
150 /* we can't use GetStringTypeA directly because we don't have a locale - only a code page
151 */
152 charcount = 0;
153 for (i = 0; i < 256; i++)
154 if (!(mbcinfo->mbctype[i + 1] & _M1))
155 bufA[charcount++] = i;
156
157 ret = MultiByteToWideChar(newcp, 0, bufA, charcount, bufW, charcount);
158 if (ret != charcount)
159 ERR("MultiByteToWideChar of chars failed for cp %d, ret=%d (exp %d), error=%d\n", newcp, ret, charcount, GetLastError());
160
161 GetStringTypeW(CT_CTYPE1, bufW, charcount, chartypes);
162
163 charcount = 0;
164 for (i = 0; i < 256; i++)
165 if (!(mbcinfo->mbctype[i + 1] & _M1))
166 {
167 if (chartypes[charcount] & C1_UPPER)
168 {
169 mbcinfo->mbctype[i + 1] |= _SBUP;
170 bufW[charcount] = tolowerW(bufW[charcount]);
171 }
172 else if (chartypes[charcount] & C1_LOWER)
173 {
174 mbcinfo->mbctype[i + 1] |= _SBLOW;
175 bufW[charcount] = toupperW(bufW[charcount]);
176 }
177 charcount++;
178 }
179
180 ret = WideCharToMultiByte(newcp, 0, bufW, charcount, bufA, charcount, NULL, NULL);
181 if (ret != charcount)
182 ERR("WideCharToMultiByte failed for cp %d, ret=%d (exp %d), error=%d\n", newcp, ret, charcount, GetLastError());
183
184 charcount = 0;
185 for (i = 0; i < 256; i++)
186 {
187 if(!(mbcinfo->mbctype[i + 1] & _M1))
188 {
189 if(mbcinfo->mbctype[i] & (C1_UPPER|C1_LOWER))
190 mbcinfo->mbcasemap[i] = bufA[charcount];
191 charcount++;
192 }
193 }
194
195 if (newcp == 932) /* CP932 only - set _MP and _MS */
196 {
197 /* On Windows it's possible to calculate the _MP and _MS from CT_CTYPE1
198 * and CT_CTYPE3. But as of Wine 0.9.43 we return wrong values what makes
199 * it hard. As this is set only for codepage 932 we hardcode it what gives
200 * also faster execution.
201 */
202 for (i = 161; i <= 165; i++)
203 mbcinfo->mbctype[i + 1] |= _MP;
204 for (i = 166; i <= 223; i++)
205 mbcinfo->mbctype[i + 1] |= _MS;
206 }
207
208 mbcinfo->mbcodepage = newcp;
209 if(global_locale && mbcinfo == MSVCRT_locale->mbcinfo)
210 memcpy(_mbctype, MSVCRT_locale->mbcinfo->mbctype, sizeof(_mbctype));
211
212 return 0;
213}
static struct cp_extra_info_t g_cpextrainfo[]
Definition: _setmbcp.c:38
static unsigned char bytes[4]
Definition: adnsresfilter.c:74
#define FIXME(fmt,...)
Definition: precomp.h:53
#define WARN(fmt,...)
Definition: precomp.h:61
#define ERR(fmt,...)
Definition: precomp.h:57
#define TRUE
Definition: types.h:120
#define WideCharToMultiByte
Definition: compat.h:111
#define MultiByteToWideChar
Definition: compat.h:110
UINT WINAPI GetACP(void)
Definition: locale.c:2023
BOOL WINAPI GetCPInfo(UINT codepage, LPCPINFO cpinfo)
Definition: locale.c:2146
BOOL WINAPI GetStringTypeW(DWORD type, LPCWSTR src, INT count, LPWORD chartype)
Definition: locale.c:3098
UINT WINAPI GetOEMCP(void)
Definition: locale.c:2062
LCID lcid
Definition: locale.c:5656
#define _M2
Definition: mbctype.h:39
#define _MP
Definition: mbctype.h:37
#define _MB_CP_OEM
Definition: mbctype.h:52
#define _MB_CP_ANSI
Definition: mbctype.h:53
#define _MB_CP_LOCALE
Definition: mbctype.h:54
#define _M1
Definition: mbctype.h:38
#define _SBLOW
Definition: mbctype.h:42
#define _SBUP
Definition: mbctype.h:41
#define _MS
Definition: mbctype.h:36
#define _MB_CP_SBCS
Definition: mbctype.h:51
unsigned short WORD
Definition: ntddk_ex.h:93
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define C1_LOWER
Definition: unicode.h:32
#define C1_UPPER
Definition: unicode.h:31
#define for
Definition: utility.h:88
LCID MSVCRT_locale_to_LCID(const char *)
#define _mbctype
Definition: mbctype.h:33
MSVCRT__locale_t global_locale
Definition: locale.c:1497
unsigned char mbcasemap[256]
Definition: msvcrt.h:144
unsigned char mbctype[257]
Definition: msvcrt.h:143
BYTE LeadByte[MAX_LEADBYTES]
Definition: winnls.h:652
UINT MaxCharSize
Definition: winnls.h:650
BYTE TrailBytes[MAX_LEADBYTES]
Definition: mbcs.c:45
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
#define toupperW(n)
Definition: unicode.h:51
#define tolowerW(n)
Definition: unicode.h:50
#define CT_CTYPE1
Definition: winnls.h:255
__wchar_t WCHAR
Definition: xmlstorage.h:180
unsigned char BYTE
Definition: xxhash.c:193

Referenced by MSVCRT__create_locale().

◆ _strset()

char *__cdecl _strset ( char str,
int  value 
)

Definition at line 273 of file string.c.

274{
275 char *ptr = str;
276 while (*ptr)
277 *ptr++ = value;
278
279 return str;
280}
static PVOID ptr
Definition: dispmode.c:27
Definition: pdh_main.c:96

◆ _ungetch()

int __cdecl _ungetch ( int  c)

Definition at line 441 of file console.c.

442{
446 return c;
447}
int CDECL _ungetch_nolock(int c)
Definition: console.c:430
#define c
Definition: ke_i.h:80

Referenced by _cgets().

◆ arg_clbk_valist()

printf_arg arg_clbk_valist ( void ,
int  ,
int  ,
__ms_va_list  
)

◆ free_locinfo()

void free_locinfo ( MSVCRT_pthreadlocinfo  locinfo)

Definition at line 643 of file locale.c.

644{
645 int i;
646
647 if(!locinfo)
648 return;
649
650 if(InterlockedDecrement(&locinfo->refcount))
651 return;
652
653 for(i=MSVCRT_LC_MIN+1; i<=MSVCRT_LC_MAX; i++) {
654 MSVCRT_free(locinfo->lc_category[i].locale);
655 MSVCRT_free(locinfo->lc_category[i].refcount);
656 }
657
658 if(locinfo->lconv) {
659 MSVCRT_free(locinfo->lconv->decimal_point);
660 MSVCRT_free(locinfo->lconv->thousands_sep);
661 MSVCRT_free(locinfo->lconv->grouping);
662 MSVCRT_free(locinfo->lconv->int_curr_symbol);
663 MSVCRT_free(locinfo->lconv->currency_symbol);
664 MSVCRT_free(locinfo->lconv->mon_decimal_point);
665 MSVCRT_free(locinfo->lconv->mon_thousands_sep);
666 MSVCRT_free(locinfo->lconv->mon_grouping);
667 MSVCRT_free(locinfo->lconv->positive_sign);
668 MSVCRT_free(locinfo->lconv->negative_sign);
669 }
670 MSVCRT_free(locinfo->lconv_intl_refcount);
671 MSVCRT_free(locinfo->lconv_num_refcount);
672 MSVCRT_free(locinfo->lconv_mon_refcount);
673 MSVCRT_free(locinfo->lconv);
674
675 MSVCRT_free(locinfo->ctype1_refcount);
676 MSVCRT_free(locinfo->ctype1);
677
678 MSVCRT_free(locinfo->pclmap);
679 MSVCRT_free(locinfo->pcumap);
680
681 MSVCRT_free(locinfo->lc_time_curr);
682
684}
#define InterlockedDecrement
Definition: armddk.h:52
else locinfo
Definition: scanf.h:225
#define MSVCRT_LC_MAX
Definition: msvcrt.h:657
#define MSVCRT_LC_MIN
Definition: msvcrt.h:656
#define MSVCRT_free
Definition: msvcrt.h:152

◆ free_mbcinfo()

void free_mbcinfo ( MSVCRT_pthreadmbcinfo  mbcinfo)

Definition at line 687 of file locale.c.

688{
689 if(!mbcinfo)
690 return;
691
692 if(InterlockedDecrement(&mbcinfo->refcount))
693 return;
694
695 MSVCRT_free(mbcinfo);
696}

◆ get_locinfo()

MSVCRT_pthreadlocinfo get_locinfo ( void  )

Definition at line 635 of file locale.c.

635 {
638 return data->locinfo;
639}
static void update_thread_locale(thread_data_t *data)
Definition: locale.c:609

◆ get_mbcinfo()

MSVCRT_pthreadmbcinfo get_mbcinfo ( void  )

Definition at line 642 of file locale.c.

642 {
645 return data->mbcinfo;
646}

◆ MSVCRT___doserrno()

MSVCRT_ulong *__cdecl MSVCRT___doserrno ( void  )

◆ MSVCRT___p__environ()

char ***__cdecl MSVCRT___p__environ ( void  )

◆ MSVCRT___p__wenviron()

MSVCRT_wchar_t ***__cdecl MSVCRT___p__wenviron ( void  )

◆ MSVCRT__close()

int __cdecl MSVCRT__close ( int  )

◆ MSVCRT__dup()

int __cdecl MSVCRT__dup ( int  )

◆ MSVCRT__dup2()

int __cdecl MSVCRT__dup2 ( int  ,
int   
)

◆ MSVCRT__errno()

int *__cdecl MSVCRT__errno ( void  )

◆ MSVCRT__exit()

void __cdecl MSVCRT__exit ( int  )

◆ MSVCRT__fdopen()

MSVCRT_FILE *__cdecl MSVCRT__fdopen ( int  ,
const char  
)

◆ MSVCRT__free_locale()

void __cdecl MSVCRT__free_locale ( MSVCRT__locale_t  locale)

Definition at line 713 of file locale.c.

714{
715 if (!locale)
716 return;
717
718 free_locinfo(locale->locinfo);
719 free_mbcinfo(locale->mbcinfo);
721}
Definition: _locale.h:75
void free_locinfo(pthreadlocinfo locinfo)
Definition: locale.c:1061

Referenced by DllMain().

◆ MSVCRT__getdrive()

int __cdecl MSVCRT__getdrive ( void  )

◆ MSVCRT__invalid_parameter()

void __cdecl MSVCRT__invalid_parameter ( const MSVCRT_wchar_t expr,
const MSVCRT_wchar_t func,
const MSVCRT_wchar_t file,
unsigned int  line,
MSVCRT_uintptr_t  arg 
)

◆ MSVCRT__iob_func()

MSVCRT_FILE *__cdecl MSVCRT__iob_func ( void  )

◆ MSVCRT__isleadbyte_l()

int __cdecl MSVCRT__isleadbyte_l ( int  ,
MSVCRT__locale_t   
)

◆ MSVCRT__lock_file()

void __cdecl MSVCRT__lock_file ( MSVCRT_FILE )

◆ MSVCRT__pipe()

int __cdecl MSVCRT__pipe ( int ,
unsigned int  ,
int   
)

◆ MSVCRT__scprintf()

int __cdecl MSVCRT__scprintf ( const char ,
  ... 
)

◆ MSVCRT__searchenv()

void __cdecl MSVCRT__searchenv ( const char ,
const char ,
char  
)

◆ MSVCRT__set_new_mode()

int __cdecl MSVCRT__set_new_mode ( int  mode)

◆ MSVCRT__snwprintf()

int __cdecl MSVCRT__snwprintf ( MSVCRT_wchar_t ,
unsigned int  ,
const MSVCRT_wchar_t ,
  ... 
)

◆ MSVCRT__spawnve()

MSVCRT_intptr_t __cdecl MSVCRT__spawnve ( int  ,
const char ,
const char *const ,
const char *const  
)

◆ MSVCRT__spawnvpe()

MSVCRT_intptr_t __cdecl MSVCRT__spawnvpe ( int  ,
const char ,
const char *const ,
const char *const  
)

◆ MSVCRT__strdate()

char *__cdecl MSVCRT__strdate ( char date)

◆ MSVCRT__strdup()

char *__cdecl MSVCRT__strdup ( const char )

◆ MSVCRT__strnset()

char *__cdecl MSVCRT__strnset ( char ,
int  ,
MSVCRT_size_t   
)

◆ MSVCRT__strtime()

char *__cdecl MSVCRT__strtime ( char date)

◆ MSVCRT__time32()

◆ MSVCRT__time64()

MSVCRT___time64_t __cdecl MSVCRT__time64 ( MSVCRT___time64_t *  )

◆ MSVCRT__tolower_l()

int __cdecl MSVCRT__tolower_l ( int  ,
MSVCRT__locale_t   
)

◆ MSVCRT__toupper_l()

int __cdecl MSVCRT__toupper_l ( int  ,
MSVCRT__locale_t   
)

◆ MSVCRT__unlock_file()

void __cdecl MSVCRT__unlock_file ( MSVCRT_FILE )

◆ MSVCRT__wcsdup()

MSVCRT_wchar_t *__cdecl MSVCRT__wcsdup ( const MSVCRT_wchar_t )

◆ MSVCRT__wfdopen()

MSVCRT_FILE *__cdecl MSVCRT__wfdopen ( int  ,
const MSVCRT_wchar_t  
)

◆ MSVCRT__wgetenv()

MSVCRT_wchar_t *__cdecl MSVCRT__wgetenv ( const MSVCRT_wchar_t )

◆ MSVCRT__write()

int __cdecl MSVCRT__write ( int  ,
const void ,
unsigned int   
)

◆ MSVCRT__wsearchenv()

void __cdecl MSVCRT__wsearchenv ( const MSVCRT_wchar_t ,
const MSVCRT_wchar_t ,
MSVCRT_wchar_t  
)

◆ MSVCRT__wspawnve()

◆ MSVCRT__wspawnvpe()

◆ MSVCRT_abort()

void __cdecl MSVCRT_abort ( void  )

◆ MSVCRT_calloc()

void *__cdecl MSVCRT_calloc ( MSVCRT_size_t  ,
MSVCRT_size_t   
)

◆ MSVCRT_clock()

MSVCRT_clock_t __cdecl MSVCRT_clock ( void  )

◆ msvcrt_create_io_inherit_block()

unsigned msvcrt_create_io_inherit_block ( WORD size,
BYTE **  block 
)

Definition at line 675 of file file.c.

676{
677 int fd, last_fd;
678 char* wxflag_ptr;
679 HANDLE* handle_ptr;
680 ioinfo* fdinfo;
681
682 for (last_fd=MSVCRT_MAX_FILES-1; last_fd>=0; last_fd--)
684 break;
685 last_fd++;
686
687 *size = sizeof(unsigned) + (sizeof(char) + sizeof(HANDLE)) * last_fd;
688 *block = calloc(1, *size);
689 if (!*block)
690 {
691 *size = 0;
692 return FALSE;
693 }
694 wxflag_ptr = (char*)*block + sizeof(unsigned);
695 handle_ptr = (HANDLE*)(wxflag_ptr + last_fd);
696
697 *(unsigned*)*block = last_fd;
698 for (fd = 0; fd < last_fd; fd++)
699 {
700 /* to be inherited, we need it to be open, and that DONTINHERIT isn't set */
701 fdinfo = get_ioinfo_nolock(fd);
702 if ((fdinfo->wxflag & (WX_OPEN | WX_DONTINHERIT)) == WX_OPEN)
703 {
704 *wxflag_ptr = fdinfo->wxflag;
705 *handle_ptr = fdinfo->handle;
706 }
707 else
708 {
709 *wxflag_ptr = 0;
710 *handle_ptr = INVALID_HANDLE_VALUE;
711 }
712 wxflag_ptr++; handle_ptr++;
713 }
714 return TRUE;
715}
#define FALSE
Definition: types.h:117
#define INVALID_HANDLE_VALUE
Definition: compat.h:731
#define WX_OPEN
Definition: file.c:80
#define MSVCRT_MAX_FILES
Definition: file.c:125
static ioinfo * get_ioinfo_nolock(int fd)
Definition: file.c:394
GLsizeiptr size
Definition: glext.h:5919
static unsigned(__cdecl *hash_bstr)(bstr_t s)
#define calloc
Definition: rosglue.h:14
#define WX_DONTINHERIT
Definition: file.c:97
static int fd
Definition: io.c:51
Definition: file.c:128
unsigned char wxflag
Definition: file.c:130
HANDLE handle
Definition: file.c:129
PVOID HANDLE
Definition: typedefs.h:73
static unsigned int block
Definition: xmlmemory.c:101

◆ MSVCRT_fclose()

int __cdecl MSVCRT_fclose ( MSVCRT_FILE )

◆ MSVCRT_fgetc()

int __cdecl MSVCRT_fgetc ( MSVCRT_FILE )

◆ MSVCRT_fgetwc()

MSVCRT_wint_t __cdecl MSVCRT_fgetwc ( MSVCRT_FILE )

◆ MSVCRT_free()

void __cdecl MSVCRT_free ( void )

◆ msvcrt_free_args()

void msvcrt_free_args ( void  )

Definition at line 462 of file data.c.

463{
464 /* FIXME: more things to free */
469}
#define GetProcessHeap()
Definition: compat.h:736
#define HeapFree(x, y, z)
Definition: compat.h:735
char * MSVCRT__pgmptr
Definition: data.c:60
char ** MSVCRT___argv
Definition: data.c:50
WCHAR * MSVCRT__wpgmptr
Definition: data.c:61
static wchar_t ** wargv_expand
Definition: data.c:52

◆ msvcrt_free_console()

void msvcrt_free_console ( void  )

Definition at line 68 of file console.c.

69{
70 TRACE(":Closing console handles\n");
73}
#define CloseHandle
Definition: compat.h:739
static HANDLE MSVCRT_console_out
Definition: console.c:37
static HANDLE MSVCRT_console_in
Definition: console.c:36

◆ msvcrt_free_io()

void msvcrt_free_io ( void  )

Definition at line 1392 of file file.c.

1393{
1394 unsigned int i;
1395 int j;
1396
1397 _flushall();
1398 _fcloseall();
1399
1400 for(i=0; i<ARRAY_SIZE(MSVCRT___pioinfo); i++)
1401 {
1402 if(!MSVCRT___pioinfo[i])
1403 continue;
1404
1405 for(j=0; j<MSVCRT_FD_BLOCK_SIZE; j++)
1406 {
1409 }
1411 }
1412
1413 for(j=0; j<MSVCRT_stream_idx; j++)
1414 {
1417
1418 if(cs)
1419 {
1420 cs->DebugInfo->Spare[0] = 0;
1422 }
1423 }
1424
1425 for(i=0; i<ARRAY_SIZE(MSVCRT_fstream); i++)
1427}
#define ARRAY_SIZE(A)
Definition: main.h:20
#define free
Definition: debug_ros.c:5
static file_crit * MSVCRT_fstream[MSVCRT_MAX_FILES/MSVCRT_FD_BLOCK_SIZE]
Definition: file.c:278
ioinfo * MSVCRT___pioinfo[MSVCRT_MAX_FILES/MSVCRT_FD_BLOCK_SIZE]
Definition: file.c:155
static BOOL ioinfo_is_crit_init(ioinfo *info)
Definition: file.c:201
int CDECL _fcloseall(void)
Definition: file.c:1373
static FILE * msvcrt_get_file(int i)
Definition: file.c:520
static CRITICAL_SECTION * file_get_cs(FILE *f)
Definition: file.c:270
int CDECL _flushall(void)
Definition: file.c:1174
#define MSVCRT_FD_BLOCK_SIZE
Definition: file.c:126
static int MSVCRT_stream_idx
Definition: file.c:279
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
Definition: glfuncs.h:250
#define cs
Definition: i386-dis.c:442
Definition: fci.c:127
void WINAPI DeleteCriticalSection(PCRITICAL_SECTION)

◆ msvcrt_free_mt_locks()

void msvcrt_free_mt_locks ( void  )

Definition at line 77 of file lock.c.

78{
79 int i;
80
81 TRACE(": uninitializing all mtlocks\n" );
82
83 /* Uninitialize the table */
84 for( i=0; i < _TOTAL_LOCKS; i++ )
85 {
86 if( lock_table[ i ].bInit )
87 {
89 }
90 }
91}
static LOCKTABLEENTRY lock_table[_TOTAL_LOCKS]
Definition: lock.c:38
static void msvcrt_uninitialize_mlock(int locknum)
Definition: lock.c:52
#define _TOTAL_LOCKS
Definition: mtdll.h:59

Referenced by DllMain().

◆ msvcrt_free_signals()

void msvcrt_free_signals ( void  )

Definition at line 640 of file except.c.

641{
643}
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleCtrlHandler(PHANDLER_ROUTINE HandlerRoutine, BOOL Add)
Definition: console.c:2111
static BOOL WINAPI msvcrt_console_handler(DWORD ctrlType)
Definition: except.c:507

◆ msvcrt_get_thread_data()

thread_data_t * msvcrt_get_thread_data ( void  )

Definition at line 45 of file thread.c.

46{
48 DWORD err = GetLastError(); /* need to preserve last error */
49
51 {
52 if (!(ptr = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*ptr) )))
55 ptr->tid = GetCurrentThreadId();
56 ptr->handle = INVALID_HANDLE_VALUE;
57 ptr->random_seed = 1;
58 ptr->locinfo = MSVCRT_locale->locinfo;
59 ptr->mbcinfo = MSVCRT_locale->mbcinfo;
60 ptr->cached_locale[0] = 'C';
61 ptr->cached_locale[1] = 0;
62#if _MSVCR_VER >= 140
63 ptr->module = NULL;
64#endif
65 }
67 return ptr;
68}
#define SetLastError(x)
Definition: compat.h:752
#define HeapAlloc
Definition: compat.h:733
#define HEAP_ZERO_MEMORY
Definition: compat.h:134
LPVOID WINAPI TlsGetValue(IN DWORD Index)
Definition: thread.c:1240
BOOL WINAPI TlsSetValue(IN DWORD Index, IN LPVOID Value)
Definition: thread.c:1276
DWORD msvcrt_tls_index
Definition: main.c:29
#define _RT_THREAD
Definition: msvcrt.h:308
#define err(...)
DWORD WINAPI GetCurrentThreadId(void)
Definition: thread.c:459

◆ MSVCRT_getenv()

char *__cdecl MSVCRT_getenv ( const char )

◆ msvcrt_init_args()

void msvcrt_init_args ( void  )

Definition at line 404 of file data.c.

405{
407
414
415 TRACE("got %s, wide = %s argc=%d\n", debugstr_a(MSVCRT__acmdln),
417
425 TRACE( "winver %08x winmajor %08x winminor %08x osver %08x\n",
427#ifdef _CRTDLL
431#endif
432
436#ifndef __REACTOS__
438#endif
439
441
443 if (MSVCRT__pgmptr)
444 {
446 MSVCRT__pgmptr[0] = '\0';
447 else
448 MSVCRT__pgmptr[MAX_PATH - 1] = '\0';
449 }
450
452 if (MSVCRT__wpgmptr)
453 {
455 MSVCRT__wpgmptr[0] = '\0';
456 else
457 MSVCRT__wpgmptr[MAX_PATH - 1] = '\0';
458 }
459}
#define _strdup
Definition: debug_ros.c:7
#define _O_TEXT
Definition: cabinet.h:50
unsigned int CRTDLL__baseminor_dll
Definition: dllmain.c:38
unsigned int CRTDLL__basemajor_dll
Definition: dllmain.c:37
unsigned int CRTDLL__baseversion_dll
Definition: dllmain.c:39
#define MAX_PATH
Definition: compat.h:34
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
Definition: loader.c:600
DWORD WINAPI GetModuleFileNameA(HINSTANCE hModule, LPSTR lpFilename, DWORD nSize)
Definition: loader.c:539
BOOL WINAPI GetVersionExW(IN LPOSVERSIONINFOW lpVersionInformation)
Definition: version.c:37
LPWSTR WINAPI GetCommandLineW(void)
Definition: process.c:1338
LPSTR WINAPI GetCommandLineA(void)
Definition: process.c:1329
DWORD WINAPI GetVersion(void)
Definition: version.c:1458
unsigned int MSVCRT__winmajor
Definition: data.c:37
wchar_t ** MSVCRT___wargv
Definition: data.c:51
unsigned int MSVCRT__osplatform
Definition: data.c:36
unsigned int MSVCRT___unguarded_readlc_active
Definition: data.c:48
unsigned int MSVCRT___setlc_active
Definition: data.c:47
unsigned int MSVCRT__osver
Definition: data.c:35
static char ** build_argv(WCHAR **wargv)
Definition: data.c:63
static WCHAR ** cmdline_to_argv(const WCHAR *src, int *ret_argc)
Definition: data.c:85
static int initial_argc
Definition: data.c:30
unsigned int MSVCRT__winminor
Definition: data.c:38
double MSVCRT__HUGE
Definition: data.c:49
static WCHAR ** initial_wargv
Definition: data.c:29
unsigned int MSVCRT__winver
Definition: data.c:39
int MSVCRT___argc
Definition: data.c:31
wchar_t * MSVCRT__wcmdln
Definition: data.c:54
char * MSVCRT__acmdln
Definition: data.c:53
int env_init(BOOL unicode, BOOL modif)
Definition: environ.c:30
_ACRTIMP wchar_t *__cdecl _wcsdup(const wchar_t *) __WINE_DEALLOC(free) __WINE_MALLOC
Definition: wcs.c:81
#define HUGE_VAL
Definition: math.h:274
#define debugstr_w
Definition: kernel32.h:32
ULONG dwPlatformId
Definition: rtltypes.h:241
ULONG dwOSVersionInfoSize
Definition: rtltypes.h:237
ULONG dwMajorVersion
Definition: rtltypes.h:238
ULONG dwBuildNumber
Definition: rtltypes.h:240
ULONG dwMinorVersion
Definition: rtltypes.h:239
OSVERSIONINFO osvi
Definition: ver.c:28
struct _OSVERSIONINFOW OSVERSIONINFOW

◆ msvcrt_init_console()

void msvcrt_init_console ( void  )

◆ msvcrt_init_io()

void msvcrt_init_io ( void  )

Definition at line 720 of file file.c.

721{
722 STARTUPINFOA si;
723 int i;
724 ioinfo *fdinfo;
725
726 GetStartupInfoA(&si);
727 if (si.cbReserved2 >= sizeof(unsigned int) && si.lpReserved2 != NULL)
728 {
729 BYTE* wxflag_ptr;
730 HANDLE* handle_ptr;
731 unsigned int count;
732
733 count = *(unsigned*)si.lpReserved2;
734 wxflag_ptr = si.lpReserved2 + sizeof(unsigned);
735 handle_ptr = (HANDLE*)(wxflag_ptr + count);
736
737 count = min(count, (si.cbReserved2 - sizeof(unsigned)) / (sizeof(HANDLE) + 1));
739 for (i = 0; i < count; i++)
740 {
741 if ((*wxflag_ptr & WX_OPEN) && GetFileType(*handle_ptr) != FILE_TYPE_UNKNOWN)
742 {
743 fdinfo = get_ioinfo_alloc_fd(i);
744 if(fdinfo != &MSVCRT___badioinfo)
745 msvcrt_set_fd(fdinfo, *handle_ptr, *wxflag_ptr);
746 release_ioinfo(fdinfo);
747 }
748
749 wxflag_ptr++; handle_ptr++;
750 }
751 }
752
754 if (!(fdinfo->wxflag & WX_OPEN) || fdinfo->handle == INVALID_HANDLE_VALUE) {
758
759 if (type == FILE_TYPE_UNKNOWN) {
761 flags |= WX_TTY;
762 } else if ((type & 0xf) == FILE_TYPE_CHAR) {
763 flags |= WX_TTY;
764 } else if ((type & 0xf) == FILE_TYPE_PIPE) {
765 flags |= WX_PIPE;
766 }
767
768 msvcrt_set_fd(fdinfo, h, flags);
769 }
770 release_ioinfo(fdinfo);
771
773 if (!(fdinfo->wxflag & WX_OPEN) || fdinfo->handle == INVALID_HANDLE_VALUE) {
777
778 if (type == FILE_TYPE_UNKNOWN) {
780 flags |= WX_TTY;
781 } else if ((type & 0xf) == FILE_TYPE_CHAR) {
782 flags |= WX_TTY;
783 } else if ((type & 0xf) == FILE_TYPE_PIPE) {
784 flags |= WX_PIPE;
785 }
786
787 msvcrt_set_fd(fdinfo, h, flags);
788 }
789 release_ioinfo(fdinfo);
790
792 if (!(fdinfo->wxflag & WX_OPEN) || fdinfo->handle == INVALID_HANDLE_VALUE) {
796
797 if (type == FILE_TYPE_UNKNOWN) {
799 flags |= WX_TTY;
800 } else if ((type & 0xf) == FILE_TYPE_CHAR) {
801 flags |= WX_TTY;
802 } else if ((type & 0xf) == FILE_TYPE_PIPE) {
803 flags |= WX_PIPE;
804 }
805
806 msvcrt_set_fd(fdinfo, h, flags);
807 }
808 release_ioinfo(fdinfo);
809
810 TRACE(":handles (%p)(%p)(%p)\n", get_ioinfo_nolock(STDIN_FILENO)->handle,
813
814 for (i = 0; i < 3; i++)
815 {
816 FILE *f = iob_get_file(i);
818
819 /* FILE structs for stdin/out/err are static and never deleted */
822 f->_tmpfname = NULL;
823 f->_flag = (i == 0) ? _IOREAD : _IOWRT;
824
825 if (cs)
826 {
828 cs->DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": file_crit.crit");
829 }
830 }
832}
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition: console.c:203
DWORD WINAPI GetFileType(HANDLE hFile)
Definition: fileinfo.c:269
VOID WINAPI GetStartupInfoA(IN LPSTARTUPINFOA lpStartupInfo)
Definition: proc.c:1320
BOOL WINAPI InitializeCriticalSectionEx(OUT LPCRITICAL_SECTION lpCriticalSection, IN DWORD dwSpinCount, IN DWORD flags)
Definition: sync.c:107
static ioinfo * get_ioinfo_alloc_fd(int fd)
Definition: file.c:467
ioinfo MSVCRT___badioinfo
Definition: file.c:148
#define WX_TTY
Definition: file.c:86
static void msvcrt_set_fd(ioinfo *fdinfo, HANDLE hand, int flag)
Definition: file.c:576
static FILE * iob_get_file(int i)
Definition: file.c:265
#define WX_PIPE
Definition: file.c:83
static void release_ioinfo(ioinfo *info)
Definition: file.c:514
#define WX_TEXT
Definition: file.c:87
#define _IOWRT
Definition: stdio.h:16
#define _IOREAD
Definition: stdio.h:15
#define STDOUT_FILENO
Definition: stdio.h:25
#define STDERR_FILENO
Definition: stdio.h:26
#define STDIN_FILENO
Definition: stdio.h:24
#define MSVCRT_NO_CONSOLE_FD
Definition: msvcrt.h:327
#define MSVCRT_NO_CONSOLE
Definition: msvcrt.h:328
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GLfloat f
Definition: glext.h:7540
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723
#define min(a, b)
Definition: monoChain.cc:55
#define DWORD_PTR
Definition: treelist.c:76
#define STD_OUTPUT_HANDLE
Definition: winbase.h:292
#define STD_INPUT_HANDLE
Definition: winbase.h:291
#define FILE_TYPE_UNKNOWN
Definition: winbase.h:282
#define STD_ERROR_HANDLE
Definition: winbase.h:293
#define FILE_TYPE_CHAR
Definition: winbase.h:284
#define FILE_TYPE_PIPE
Definition: winbase.h:285
#define RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
Definition: winnt_old.h:1146

◆ msvcrt_init_locale()

BOOL msvcrt_init_locale ( void  )

Definition at line 2151 of file locale.c.

2152{
2153 int i;
2154
2155 _lock_locales();
2156 MSVCRT_locale = _create_locale(0, "C");
2158 if(!MSVCRT_locale)
2159 return FALSE;
2160
2165 for(i=LC_MIN; i<=LC_MAX; i++)
2168 return TRUE;
2169}
#define LC_MAX
Definition: locale.h:32
#define LC_MIN
Definition: locale.h:31
_ACRTIMP int __cdecl _setmbcp(int)
Definition: mbcs.c:400
unsigned short * MSVCRT__pctype
Definition: locale.c:44
int MSVCRT___lc_collate_cp
Definition: locale.c:46
unsigned int MSVCRT___lc_codepage
Definition: locale.c:45
void CDECL _lock_locales(void)
Definition: locale.c:574
_locale_t CDECL _create_locale(int category, const char *locale)
Definition: locale.c:1981
LCID MSVCRT___lc_handle[LC_MAX - LC_MIN+1]
Definition: locale.c:47
int MSVCRT___mb_cur_max
Definition: locale.c:48
void CDECL _unlock_locales(void)
Definition: locale.c:582
_locale_t MSVCRT_locale
Definition: locale.c:43
pthreadlocinfo locinfo
Definition: corecrt.h:260
unsigned int lc_collate_cp
Definition: corecrt.h:285
unsigned int lc_codepage
Definition: corecrt.h:278
unsigned short * pctype
Definition: corecrt.h:276
__msvcrt_ulong lc_handle[6]
Definition: corecrt.h:286

◆ msvcrt_init_math()

void msvcrt_init_math ( void  )

Referenced by DllMain().

◆ msvcrt_init_mt_locks()

void msvcrt_init_mt_locks ( void  )

Definition at line 66 of file lock.c.

67{
68 int i;
69
70 TRACE( "initializing mtlocks\n" );
71
72 /* Initialize the table */
73 for( i=0; i < _TOTAL_LOCKS; i++ )
74 {
76 }
77
78 /* Initialize our lock table lock */
80}
static void msvcrt_mlock_set_entry_initialized(int locknum, BOOL initialized)
Definition: lock.c:40
static void msvcrt_initialize_mlock(int locknum)
Definition: lock.c:45
#define _LOCKTAB_LOCK
Definition: mtdll.h:41

◆ msvcrt_init_signals()

void msvcrt_init_signals ( void  )

Definition at line 635 of file except.c.

◆ MSVCRT_isleadbyte()

int __cdecl MSVCRT_isleadbyte ( int  )

◆ MSVCRT_iswalpha()

int __cdecl MSVCRT_iswalpha ( MSVCRT_wint_t  )

◆ MSVCRT_iswdigit()

int __cdecl MSVCRT_iswdigit ( MSVCRT_wint_t  )

◆ MSVCRT_iswspace()

int __cdecl MSVCRT_iswspace ( MSVCRT_wint_t  )

◆ MSVCRT_locale_to_LCID()

LCID MSVCRT_locale_to_LCID ( const char )

Referenced by _setmbcp_l().

◆ MSVCRT_malloc()

void *__cdecl MSVCRT_malloc ( MSVCRT_size_t  )

◆ MSVCRT_mbstowcs()

MSVCRT_size_t __cdecl MSVCRT_mbstowcs ( MSVCRT_wchar_t ,
const char ,
MSVCRT_size_t   
)

◆ MSVCRT_operator_delete()

void __cdecl MSVCRT_operator_delete ( void )

◆ MSVCRT_operator_new()

void *__cdecl MSVCRT_operator_new ( MSVCRT_size_t  )

◆ MSVCRT_raise()

int __cdecl MSVCRT_raise ( int  sig)

◆ MSVCRT_realloc()

void *__cdecl MSVCRT_realloc ( void ,
MSVCRT_size_t   
)

◆ msvcrt_set_errno()

void msvcrt_set_errno ( int  err)

Definition at line 132 of file errno.c.

133{
134 int *errno_ptr = _errno();
135 __msvcrt_ulong *doserrno = __doserrno();
136
137 *doserrno = err;
138
139 switch(err)
140 {
141#define ERR_CASE(oserr) case oserr:
142#define ERR_MAPS(oserr, crterr) case oserr: *errno_ptr = crterr; break
185 default:
186 /* Remaining cases map to EINVAL */
187 /* FIXME: may be missing some errors above */
188 *errno_ptr = EINVAL;
189 }
190}
#define ERROR_BUSY
Definition: dderror.h:12
#define ERROR_OUTOFMEMORY
Definition: deptool.c:13
#define ERROR_INVALID_HANDLE
Definition: compat.h:98
#define ERROR_ACCESS_DENIED
Definition: compat.h:97
#define ERR_MAPS(oserr, crterr)
__msvcrt_ulong *CDECL __doserrno(void)
Definition: errno.c:223
#define ERR_CASE(oserr)
unsigned long __msvcrt_ulong
Definition: corecrt.h:168
#define ENOENT
Definition: errno.h:25
#define ENOSPC
Definition: errno.h:49
#define EEXIST
Definition: errno.h:39
#define ECHILD
Definition: errno.h:33
#define ENOEXEC
Definition: errno.h:31
#define EDEADLK
Definition: errno.h:56
#define EPIPE
Definition: errno.h:53
#define EMFILE
Definition: errno.h:46
#define ENOMEM
Definition: errno.h:35
#define EIO
Definition: errno.h:28
#define EBUSY
Definition: errno.h:38
#define ENOTEMPTY
Definition: errno.h:61
#define ENODEV
Definition: errno.h:41
#define E2BIG
Definition: errno.h:30
#define EACCES
Definition: errno.h:36
#define EBADF
Definition: errno.h:32
#define EAGAIN
Definition: errno.h:34
#define ERROR_ALREADY_EXISTS
Definition: disk.h:80
#define ERROR_FILE_NOT_FOUND
Definition: disk.h:79
#define ERROR_BAD_NETPATH
Definition: winerror.h:267
#define ERROR_NOT_ENOUGH_QUOTA
Definition: winerror.h:1480
#define ERROR_CURRENT_DIRECTORY
Definition: winerror.h:241
#define ERROR_IO_DEVICE
Definition: winerror.h:977
#define ERROR_NESTING_NOT_ALLOWED
Definition: winerror.h:392
#define ERROR_BAD_ENVIRONMENT
Definition: winerror.h:235
#define ERROR_SHARING_VIOLATION
Definition: winerror.h:257
#define ERROR_POSSIBLE_DEADLOCK
Definition: winerror.h:991
#define ERROR_TOO_MANY_OPEN_FILES
Definition: winerror.h:229
#define ERROR_INVALID_BLOCK
Definition: winerror.h:234
#define ERROR_PATH_NOT_FOUND
Definition: winerror.h:228
#define ERROR_BAD_PATHNAME
Definition: winerror.h:355
#define ERROR_NO_PROC_SLOTS
Definition: winerror.h:295
#define ERROR_DISK_FULL
Definition: winerror.h:308
#define ERROR_BROKEN_PIPE
Definition: winerror.h:305
#define ERROR_NOT_LOCKED
Definition: winerror.h:352
#define ERROR_CHILD_NOT_COMPLETE
Definition: winerror.h:323
#define ERROR_DIR_NOT_EMPTY
Definition: winerror.h:339
#define ERROR_FILE_EXISTS
Definition: winerror.h:287
#define ERROR_LOCK_VIOLATION
Definition: winerror.h:258
#define ERROR_SEEK_ON_DEVICE
Definition: winerror.h:326
#define ERROR_CANNOT_MAKE
Definition: winerror.h:288
#define ERROR_FAIL_I24
Definition: winerror.h:289
#define ERROR_NO_MORE_FILES
Definition: winerror.h:243
#define ERROR_WAIT_NO_CHILDREN
Definition: winerror.h:322
#define ERROR_BAD_FORMAT
Definition: winerror.h:236
#define ERROR_FILENAME_EXCED_RANGE
Definition: winerror.h:385
#define ERROR_DRIVE_LOCKED
Definition: winerror.h:304
#define ERROR_LOCK_FAILED
Definition: winerror.h:358
#define ERROR_MAX_THRDS_REACHED
Definition: winerror.h:357
#define ERROR_INVALID_ACCESS
Definition: winerror.h:237
#define ERROR_NETWORK_ACCESS_DENIED
Definition: winerror.h:279
#define ERROR_ARENA_TRASHED
Definition: winerror.h:232
#define ERROR_INVALID_DRIVE
Definition: winerror.h:240
#define ERROR_BAD_NET_NAME
Definition: winerror.h:281
#define ERROR_BAD_DEVICE
Definition: winerror.h:1032

◆ msvcrt_SnapshotOfEnvironmentA()

char ** msvcrt_SnapshotOfEnvironmentA ( char **  )

◆ msvcrt_SnapshotOfEnvironmentW()

MSVCRT_wchar_t ** msvcrt_SnapshotOfEnvironmentW ( MSVCRT_wchar_t **  )

◆ MSVCRT_sprintf()

int __cdecl MSVCRT_sprintf ( char ,
const char ,
  ... 
)

◆ MSVCRT_terminate()

void __cdecl MSVCRT_terminate ( void  )

◆ MSVCRT_ungetc()

int __cdecl MSVCRT_ungetc ( int  ,
MSVCRT_FILE  
)

◆ MSVCRT_ungetwc()

MSVCRT_wint_t __cdecl MSVCRT_ungetwc ( MSVCRT_wint_t  ,
MSVCRT_FILE  
)

◆ MSVCRT_vsnprintf()

int __cdecl MSVCRT_vsnprintf ( char str,
MSVCRT_size_t  len,
const char format,
__ms_va_list  valist 
)

◆ MSVCRT_vsnwprintf()

int __cdecl MSVCRT_vsnwprintf ( MSVCRT_wchar_t str,
MSVCRT_size_t  len,
const MSVCRT_wchar_t format,
__ms_va_list  valist 
)

◆ msvcrt_wstrdupa()

MSVCRT_wchar_t * msvcrt_wstrdupa ( const char str)

Definition at line 373 of file data.c.

374{
375 const unsigned int len = strlen(str) + 1 ;
376 wchar_t *wstr = malloc(len* sizeof (wchar_t));
377 if (!wstr)
378 return NULL;
380 return wstr;
381}
#define malloc
Definition: debug_ros.c:4
#define CP_ACP
Definition: compat.h:109
#define MB_PRECOMPOSED
Definition: winnls.h:299

◆ MSVRT__spawnvpe()

MSVCRT_intptr_t __cdecl MSVRT__spawnvpe ( int  ,
const char ,
const char *const ,
const char *const  
)

◆ pf_printf_a()

int pf_printf_a ( puts_clbk_a  ,
void ,
const char ,
MSVCRT__locale_t  ,
BOOL  ,
BOOL  ,
args_clbk  ,
void ,
__ms_va_list  
)

◆ pf_printf_w()

int pf_printf_w ( puts_clbk_w  ,
void ,
const MSVCRT_wchar_t ,
MSVCRT__locale_t  ,
BOOL  ,
BOOL  ,
args_clbk  ,
void ,
__ms_va_list  
)

Variable Documentation

◆ MSVCRT___lc_codepage

int MSVCRT___lc_codepage
extern

Definition at line 45 of file locale.c.

◆ MSVCRT___lc_collate_cp

int MSVCRT___lc_collate_cp
extern

Definition at line 46 of file locale.c.

◆ MSVCRT__ctype

WORD MSVCRT__ctype[257]
extern

Definition at line 34 of file ctype.c.

◆ MSVCRT__environ

char** MSVCRT__environ
extern

Definition at line 55 of file data.c.

◆ MSVCRT__wenviron

MSVCRT_wchar_t** MSVCRT__wenviron
extern

Definition at line 56 of file data.c.

◆ MSVCRT_locale

◆ msvcrt_tls_index

DWORD msvcrt_tls_index
extern