ReactOS  r76032
stdlib.h File Reference
#include <crtdefs.h>
#include <limits.h>
#include <errno.h>
#include <sec_api/stdlib_s.h>
Include dependency graph for stdlib.h:

Go to the source code of this file.

Classes

struct  _div_t
 
struct  _ldiv_t
 
struct  _LDOUBLE
 
struct  _CRT_DOUBLE
 
struct  _CRT_FLOAT
 
struct  _LONGDOUBLE
 
struct  _LDBL12
 
struct  lldiv_t
 

Macros

#define NULL   ((void *)0)
 
#define EXIT_SUCCESS   0
 
#define EXIT_FAILURE   1
 
#define _ONEXIT_T_DEFINED
 
#define onexit_t   _onexit_t
 
#define _DIV_T_DEFINED
 
#define _CRT_DOUBLE_DEC
 
#define _PTR_LD(x)   ((unsigned char *)(&(x)->ld))
 
#define RAND_MAX   0x7fff
 
#define MB_CUR_MAX   ___mb_cur_max_func()
 
#define __max(a, b)   (((a) > (b)) ? (a) : (b))
 
#define __min(a, b)   (((a) < (b)) ? (a) : (b))
 
#define _MAX_PATH   260
 
#define _MAX_DRIVE   3
 
#define _MAX_DIR   256
 
#define _MAX_FNAME   256
 
#define _MAX_EXT   256
 
#define _OUT_TO_DEFAULT   0
 
#define _OUT_TO_STDERR   1
 
#define _OUT_TO_MSGBOX   2
 
#define _REPORT_ERRMODE   3
 
#define _WRITE_ABORT_MSG   0x1
 
#define _CALL_REPORTFAULT   0x2
 
#define _MAX_ENV   32767
 
#define _doserrno   (*__doserrno())
 
#define _countof(_Array)   (sizeof(_Array) / sizeof(_Array[0]))
 
#define _CRT_TERMINATE_DEFINED
 
#define _CRT_ABS_DEFINED
 
#define _CRT_ATOF_DEFINED
 
#define _CRT_ALGO_DEFINED
 
#define _CRT_SYSTEM_DEFINED
 
#define _CRT_ALLOCATION_DEFINED
 
#define _WSTDLIB_DEFINED
 
#define _CRT_WSYSTEM_DEFINED
 
#define _CVTBUFSIZE   (309+40)
 
#define _CRT_PERROR_DEFINED
 
#define _WSTDLIBP_DEFINED
 
#define _CRT_WPERROR_DEFINED
 
#define sys_errlist   _sys_errlist
 
#define sys_nerr   _sys_nerr
 
#define environ   _environ
 

Typedefs

typedef int(__cdecl_onexit_t )(void)
 
typedef struct _div_t div_t
 
typedef struct _ldiv_t ldiv_t
 
typedef void(__cdecl_purecall_handler )(void)
 
typedef void(__cdecl_invalid_parameter_handler )(const wchar_t *, const wchar_t *, const wchar_t *, unsigned int, uintptr_t)
 

Functions

_CRTIMP int __cdecl ___mb_cur_max_func (void)
 
_CRTIMP int __cdecl ___mb_cur_max_l_func (_locale_t)
 
_CRTIMP _purecall_handler __cdecl _set_purecall_handler (_In_opt_ _purecall_handler _Handler)
 
_CRTIMP _purecall_handler __cdecl _get_purecall_handler (void)
 
_invalid_parameter_handler __cdecl _set_invalid_parameter_handler (_In_opt_ _invalid_parameter_handler _Handler)
 
_invalid_parameter_handler __cdecl _get_invalid_parameter_handler (void)
 
_CRTIMP unsigned long *__cdecl __doserrno (void)
 
errno_t __cdecl _set_doserrno (_In_ unsigned long _Value)
 
errno_t __cdecl _get_doserrno (_Out_ unsigned long *_Value)
 
_CRTIMP int *__cdecl __p___argc ()
 
_CRTIMP char ***__cdecl __p___argv ()
 
_CRTIMP wchar_t ***__cdecl __p___wargv ()
 
_CRTIMP char ***__cdecl __p__environ ()
 
_CRTIMP wchar_t ***__cdecl __p__wenviron ()
 
_CRTIMP char **__cdecl __p__pgmptr ()
 
_CRTIMP wchar_t **__cdecl __p__wpgmptr ()
 
_CRTIMP errno_t __cdecl _get_environ (_Out_ char ***)
 
_CRTIMP errno_t __cdecl _get_wenviron (_Out_ wchar_t ***)
 
_CRTIMP errno_t __cdecl _get_pgmptr (_Outptr_result_z_ char **_Value)
 
_CRTIMP errno_t __cdecl _get_wpgmptr (_Outptr_result_z_ wchar_t **_Value)
 
_CRTIMP errno_t __cdecl _set_fmode (_In_ int _Mode)
 
_CRTIMP errno_t __cdecl _get_fmode (_Out_ int *_PMode)
 
errno_t __cdecl _get_osplatform (_Out_ unsigned int *_Value)
 
errno_t __cdecl _get_osver (_Out_ unsigned int *_Value)
 
errno_t __cdecl _get_winver (_Out_ unsigned int *_Value)
 
errno_t __cdecl _get_winmajor (_Out_ unsigned int *_Value)
 
errno_t __cdecl _get_winminor (_Out_ unsigned int *_Value)
 
 __declspec (noreturn) void __cdecl exit(_In_ int _Code)
 
__CRT_INLINE void __cdecl _Exit (int status)
 
_CRTIMP unsigned int __cdecl _set_abort_behavior (_In_ unsigned int _Flags, _In_ unsigned int _Mask)
 
int __cdecl abs (_In_ int _X)
 
long __cdecl labs (_In_ long _X)
 
__MINGW_EXTENSION __int64 __cdecl _abs64 (__int64)
 
int __cdecl atexit (void(__cdecl *)(void))
 
_Check_return_ double __cdecl atof (_In_z_ const char *_String)
 
_Check_return_ double __cdecl _atof_l (_In_z_ const char *_String, _In_opt_ _locale_t _Locale)
 
_Check_return_ int __cdecl atoi (_In_z_ const char *_Str)
 
_Check_return_ _CRTIMP int __cdecl _atoi_l (_In_z_ const char *_Str, _In_opt_ _locale_t _Locale)
 
_Check_return_ long __cdecl atol (_In_z_ const char *_Str)
 
_Check_return_ _CRTIMP long __cdecl _atol_l (_In_z_ const char *_Str, _In_opt_ _locale_t _Locale)
 
_Check_return_ void *__cdecl bsearch (_In_ const void *_Key, _In_reads_bytes_(_NumOfElements *_SizeOfElements) const void *_Base, _In_ size_t _NumOfElements, _In_ size_t _SizeOfElements, _In_ int(__cdecl *_PtFuncCompare)(const void *, const void *))
 
void __cdecl qsort (_Inout_updates_bytes_(_NumOfElements *_SizeOfElements) _Post_readable_byte_size_(_NumOfElements *_SizeOfElements) void *_Base, _In_ size_t _NumOfElements, _In_ size_t _SizeOfElements, _In_ int(__cdecl *_PtFuncCompare)(const void *, const void *))
 
_Check_return_ unsigned short
__cdecl 
_byteswap_ushort (_In_ unsigned short _Short)
 
_Check_return_ unsigned long
__cdecl 
_byteswap_ulong (_In_ unsigned long _Long)
 
_Check_return_
__MINGW_EXTENSION unsigned
__int64 __cdecl 
_byteswap_uint64 (_In_ unsigned __int64 _Int64)
 
_Check_return_ div_t __cdecl div (_In_ int _Numerator, _In_ int _Denominator)
 
_Check_return_ char *__cdecl getenv (_In_z_ const char *_VarName)
 
_CRTIMP char *__cdecl _itoa (_In_ int _Value, _Pre_notnull_ _Post_z_ char *_Dest, _In_ int _Radix)
 
__MINGW_EXTENSION _CRTIMP char
*__cdecl 
_i64toa (_In_ __int64 _Val, _Pre_notnull_ _Post_z_ char *_DstBuf, _In_ int _Radix)
 
__MINGW_EXTENSION _CRTIMP char
*__cdecl 
_ui64toa (_In_ unsigned __int64 _Val, _Pre_notnull_ _Post_z_ char *_DstBuf, _In_ int _Radix)
 
_Check_return_
__MINGW_EXTENSION _CRTIMP
__int64 __cdecl 
_atoi64 (_In_z_ const char *_String)
 
_Check_return_
__MINGW_EXTENSION _CRTIMP
__int64 __cdecl 
_atoi64_l (_In_z_ const char *_String, _In_opt_ _locale_t _Locale)
 
_Check_return_
__MINGW_EXTENSION _CRTIMP
__int64 __cdecl 
_strtoi64 (_In_z_ const char *_String, _Out_opt_ _Deref_post_z_ char **_EndPtr, _In_ int _Radix)
 
_Check_return_
__MINGW_EXTENSION _CRTIMP
__int64 __cdecl 
_strtoi64_l (_In_z_ const char *_String, _Out_opt_ _Deref_post_z_ char **_EndPtr, _In_ int _Radix, _In_opt_ _locale_t _Locale)
 
_Check_return_
__MINGW_EXTENSION _CRTIMP
unsigned __int64 __cdecl 
_strtoui64 (_In_z_ const char *_String, _Out_opt_ _Deref_post_z_ char **_EndPtr, _In_ int _Radix)
 
_Check_return_
__MINGW_EXTENSION _CRTIMP
unsigned __int64 __cdecl 
_strtoui64_l (_In_z_ const char *_String, _Out_opt_ _Deref_post_z_ char **_EndPtr, _In_ int _Radix, _In_opt_ _locale_t _Locale)
 
_Check_return_ ldiv_t __cdecl ldiv (_In_ long _Numerator, _In_ long _Denominator)
 
_CRTIMP char *__cdecl _ltoa (_In_ long _Value, _Pre_notnull_ _Post_z_ char *_Dest, _In_ int _Radix)
 
_Check_return_ int __cdecl mblen (_In_reads_bytes_opt_(_MaxCount) _Pre_opt_z_ const char *_Ch, _In_ size_t _MaxCount)
 
_Check_return_ _CRTIMP int __cdecl _mblen_l (_In_reads_bytes_opt_(_MaxCount) _Pre_opt_z_ const char *_Ch, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale)
 
_Check_return_ _CRTIMP size_t
__cdecl 
_mbstrlen (_In_z_ const char *_Str)
 
_Check_return_ _CRTIMP size_t
__cdecl 
_mbstrlen_l (_In_z_ const char *_Str, _In_opt_ _locale_t _Locale)
 
 _Success_ (return >0) _Check_return_ _CRTIMP size_t __cdecl _mbstrnlen(_In_z_ const char *_Str
 
_Check_return_ _CRTIMP size_t
__cdecl 
_mbstrnlen_l (_In_z_ const char *_Str, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale)
 
int __cdecl mbtowc (_Pre_notnull_ _Post_z_ wchar_t *_DstCh, _In_reads_bytes_opt_(_SrcSizeInBytes) _Pre_opt_z_ const char *_SrcCh, _In_ size_t _SrcSizeInBytes)
 
_CRTIMP int __cdecl _mbtowc_l (_Pre_notnull_ _Post_z_ wchar_t *_DstCh, _In_reads_bytes_opt_(_SrcSizeInBytes) _Pre_opt_z_ const char *_SrcCh, _In_ size_t _SrcSizeInBytes, _In_opt_ _locale_t _Locale)
 
size_t __cdecl mbstowcs (_Out_writes_opt_z_(_MaxCount) wchar_t *_Dest, _In_z_ const char *_Source, _In_ size_t _MaxCount)
 
_CRTIMP size_t __cdecl _mbstowcs_l (_Out_writes_opt_z_(_MaxCount) wchar_t *_Dest, _In_z_ const char *_Source, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale)
 
_Check_return_ int __cdecl rand (void)
 
_Check_return_opt_ _CRTIMP int
__cdecl 
_set_error_mode (_In_ int _Mode)
 
void __cdecl srand (_In_ unsigned int _Seed)
 
_Check_return_ double __cdecl strtod (_In_z_ const char *_Str, _Out_opt_ _Deref_post_z_ char **_EndPtr)
 
float __cdecl strtof (const char *nptr, char **endptr)
 
long double __cdecl strtold (const char *__restrict__, char **__restrict__)
 
_Check_return_ _CRTIMP double
__cdecl 
_strtod_l (_In_z_ const char *_Str, _Out_opt_ _Deref_post_z_ char **_EndPtr, _In_opt_ _locale_t _Locale)
 
_Check_return_ long __cdecl strtol (_In_z_ const char *_Str, _Out_opt_ _Deref_post_z_ char **_EndPtr, _In_ int _Radix)
 
_Check_return_ _CRTIMP long __cdecl _strtol_l (_In_z_ const char *_Str, _Out_opt_ _Deref_post_z_ char **_EndPtr, _In_ int _Radix, _In_opt_ _locale_t _Locale)
 
_Check_return_ unsigned long
__cdecl 
strtoul (_In_z_ const char *_Str, _Out_opt_ _Deref_post_z_ char **_EndPtr, _In_ int _Radix)
 
_Check_return_ _CRTIMP
unsigned long __cdecl 
_strtoul_l (_In_z_ const char *_Str, _Out_opt_ _Deref_post_z_ char **_EndPtr, _In_ int _Radix, _In_opt_ _locale_t _Locale)
 
int __cdecl system (_In_opt_z_ const char *_Command)
 
_CRTIMP char *__cdecl _ultoa (_In_ unsigned long _Value, _Pre_notnull_ _Post_z_ char *_Dest, _In_ int _Radix)
 
int __cdecl wctomb (_Out_writes_opt_z_(MB_LEN_MAX) char *_MbCh, _In_ wchar_t _WCh)
 
_CRTIMP int __cdecl _wctomb_l (_Pre_maybenull_ _Post_z_ char *_MbCh, _In_ wchar_t _WCh, _In_opt_ _locale_t _Locale)
 
size_t __cdecl wcstombs (_Out_writes_opt_z_(_MaxCount) char *_Dest, _In_z_ const wchar_t *_Source, _In_ size_t _MaxCount)
 
_CRTIMP size_t __cdecl _wcstombs_l (_Out_writes_opt_z_(_MaxCount) char *_Dest, _In_z_ const wchar_t *_Source, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale)
 
_Check_return_ _Ret_maybenull_ _Post_writable_byte_size_ (_NumOfElements *_SizeOfElements) void *__cdecl calloc(_In_ size_t _NumOfElements
 
void __cdecl free (_Pre_maybenull_ _Post_invalid_ void *_Memory)
 
_Check_return_ _Ret_maybenull_ _Post_writable_byte_size_ (_Size) void *__cdecl malloc(_In_ size_t _Size)
 
 _Success_ (return!=0) _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_NewSize) void *__cdecl realloc(_Pre_maybenull_ _Post_invalid_ void *_Memory
 
_CRTIMP void __cdecl _aligned_free (_Pre_maybenull_ _Post_invalid_ void *_Memory)
 
_Check_return_ _Ret_maybenull_ _Post_writable_byte_size_ (_Count *_Size) _CRTIMP void *__cdecl _aligned_offset_recalloc(_Pre_maybenull_ _Post_invalid_ void *_Memory
 
_CRTIMP wchar_t *__cdecl _itow (_In_ int _Value, _Pre_notnull_ _Post_z_ wchar_t *_Dest, _In_ int _Radix)
 
_CRTIMP wchar_t *__cdecl _ltow (_In_ long _Value, _Pre_notnull_ _Post_z_ wchar_t *_Dest, _In_ int _Radix)
 
_CRTIMP wchar_t *__cdecl _ultow (_In_ unsigned long _Value, _Pre_notnull_ _Post_z_ wchar_t *_Dest, _In_ int _Radix)
 
_Check_return_ double __cdecl wcstod (_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr)
 
float __cdecl wcstof (const wchar_t *nptr, wchar_t **endptr)
 
long double __cdecl wcstold (const wchar_t *__restrict__, wchar_t **__restrict__)
 
_Check_return_ _CRTIMP double
__cdecl 
_wcstod_l (_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_opt_ _locale_t _Locale)
 
_Check_return_ long __cdecl wcstol (_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix)
 
_Check_return_ _CRTIMP long __cdecl _wcstol_l (_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix, _In_opt_ _locale_t _Locale)
 
_Check_return_ unsigned long
__cdecl 
wcstoul (_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix)
 
_Check_return_ _CRTIMP
unsigned long __cdecl 
_wcstoul_l (_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix, _In_opt_ _locale_t _Locale)
 
_Check_return_ _CRTIMP wchar_t
*__cdecl 
_wgetenv (_In_z_ const wchar_t *_VarName)
 
_CRTIMP int __cdecl _wsystem (_In_opt_z_ const wchar_t *_Command)
 
_Check_return_ _CRTIMP double
__cdecl 
_wtof (_In_z_ const wchar_t *_Str)
 
_Check_return_ _CRTIMP double
__cdecl 
_wtof_l (_In_z_ const wchar_t *_Str, _In_opt_ _locale_t _Locale)
 
_Check_return_ _CRTIMP int __cdecl _wtoi (_In_z_ const wchar_t *_Str)
 
_Check_return_ _CRTIMP int __cdecl _wtoi_l (_In_z_ const wchar_t *_Str, _In_opt_ _locale_t _Locale)
 
_Check_return_ _CRTIMP long __cdecl _wtol (_In_z_ const wchar_t *_Str)
 
_Check_return_ _CRTIMP long __cdecl _wtol_l (_In_z_ const wchar_t *_Str, _In_opt_ _locale_t _Locale)
 
__MINGW_EXTENSION _CRTIMP
wchar_t *__cdecl 
_i64tow (_In_ __int64 _Val, _Pre_notnull_ _Post_z_ wchar_t *_DstBuf, _In_ int _Radix)
 
__MINGW_EXTENSION _CRTIMP
wchar_t *__cdecl 
_ui64tow (_In_ unsigned __int64 _Val, _Pre_notnull_ _Post_z_ wchar_t *_DstBuf, _In_ int _Radix)
 
_Check_return_
__MINGW_EXTENSION _CRTIMP
__int64 __cdecl 
_wtoi64 (_In_z_ const wchar_t *_Str)
 
_Check_return_
__MINGW_EXTENSION _CRTIMP
__int64 __cdecl 
_wtoi64_l (_In_z_ const wchar_t *_Str, _In_opt_ _locale_t _Locale)
 
_Check_return_
__MINGW_EXTENSION _CRTIMP
__int64 __cdecl 
_wcstoi64 (_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix)
 
_Check_return_
__MINGW_EXTENSION _CRTIMP
__int64 __cdecl 
_wcstoi64_l (_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix, _In_opt_ _locale_t _Locale)
 
_Check_return_
__MINGW_EXTENSION _CRTIMP
unsigned __int64 __cdecl 
_wcstoui64 (_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix)
 
_Check_return_
__MINGW_EXTENSION _CRTIMP
unsigned __int64 __cdecl 
_wcstoui64_l (_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix, _In_opt_ _locale_t _Locale)
 
_Check_return_ _CRTIMP char
*__cdecl 
_fullpath (_Out_writes_opt_z_(_SizeInBytes) char *_FullPath, _In_z_ const char *_Path, _In_ size_t _SizeInBytes)
 
_Check_return_ _CRTIMP char
*__cdecl 
_ecvt (_In_ double _Val, _In_ int _NumOfDigits, _Out_ int *_PtDec, _Out_ int *_PtSign)
 
_Check_return_ _CRTIMP char
*__cdecl 
_fcvt (_In_ double _Val, _In_ int _NumOfDec, _Out_ int *_PtDec, _Out_ int *_PtSign)
 
_CRTIMP char *__cdecl _gcvt (_In_ double _Val, _In_ int _NumOfDigits, _Pre_notnull_ _Post_z_ char *_DstBuf)
 
_Check_return_ _CRTIMP int __cdecl _atodbl (_Out_ _CRT_DOUBLE *_Result, _In_z_ char *_Str)
 
_Check_return_ _CRTIMP int __cdecl _atoldbl (_Out_ _LDOUBLE *_Result, _In_z_ char *_Str)
 
_Check_return_ _CRTIMP int __cdecl _atoflt (_Out_ _CRT_FLOAT *_Result, _In_z_ char *_Str)
 
_Check_return_ _CRTIMP int __cdecl _atodbl_l (_Out_ _CRT_DOUBLE *_Result, _In_z_ char *_Str, _In_opt_ _locale_t _Locale)
 
_Check_return_ _CRTIMP int __cdecl _atoldbl_l (_Out_ _LDOUBLE *_Result, _In_z_ char *_Str, _In_opt_ _locale_t _Locale)
 
_Check_return_ _CRTIMP int __cdecl _atoflt_l (_Out_ _CRT_FLOAT *_Result, _In_z_ char *_Str, _In_opt_ _locale_t _Locale)
 
_Check_return_ unsigned long
__cdecl 
_lrotl (_In_ unsigned long _Val, _In_ int _Shift)
 
_Check_return_ unsigned long
__cdecl 
_lrotr (_In_ unsigned long _Val, _In_ int _Shift)
 
_CRTIMP void __cdecl _makepath (_Pre_notnull_ _Post_z_ char *_Path, _In_opt_z_ const char *_Drive, _In_opt_z_ const char *_Dir, _In_opt_z_ const char *_Filename, _In_opt_z_ const char *_Ext)
 
_onexit_t __cdecl _onexit (_In_opt_ _onexit_t _Func)
 
void __cdecl perror (_In_opt_z_ const char *_ErrMsg)
 
_Check_return_ _CRTIMP int __cdecl _putenv (_In_z_ const char *_EnvString)
 
_Check_return_ unsigned int __cdecl _rotl (_In_ unsigned int _Val, _In_ int _Shift)
 
_Check_return_
__MINGW_EXTENSION unsigned
__int64 __cdecl 
_rotl64 (_In_ unsigned __int64 _Val, _In_ int _Shift)
 
_Check_return_ unsigned int __cdecl _rotr (_In_ unsigned int _Val, _In_ int _Shift)
 
_Check_return_
__MINGW_EXTENSION unsigned
__int64 __cdecl 
_rotr64 (_In_ unsigned __int64 _Val, _In_ int _Shift)
 
_CRTIMP void __cdecl _searchenv (_In_z_ const char *_Filename, _In_z_ const char *_EnvVar, _Pre_notnull_ _Post_z_ char *_ResultPath)
 
_CRTIMP void __cdecl _splitpath (_In_z_ const char *_FullPath, _Pre_maybenull_ _Post_z_ char *_Drive, _Pre_maybenull_ _Post_z_ char *_Dir, _Pre_maybenull_ _Post_z_ char *_Filename, _Pre_maybenull_ _Post_z_ char *_Ext)
 
_CRTIMP void __cdecl _swab (_Inout_updates_(_SizeInBytes) _Post_readable_size_(_SizeInBytes) char *_Buf1, _Inout_updates_(_SizeInBytes) _Post_readable_size_(_SizeInBytes) char *_Buf2, int _SizeInBytes)
 
_Check_return_ _CRTIMP wchar_t
*__cdecl 
_wfullpath (_Out_writes_opt_z_(_SizeInWords) wchar_t *_FullPath, _In_z_ const wchar_t *_Path, _In_ size_t _SizeInWords)
 
_CRTIMP void __cdecl _wmakepath (_Pre_notnull_ _Post_z_ wchar_t *_ResultPath, _In_opt_z_ const wchar_t *_Drive, _In_opt_z_ const wchar_t *_Dir, _In_opt_z_ const wchar_t *_Filename, _In_opt_z_ const wchar_t *_Ext)
 
_CRTIMP void __cdecl _wperror (_In_opt_z_ const wchar_t *_ErrMsg)
 
_Check_return_ _CRTIMP int __cdecl _wputenv (_In_z_ const wchar_t *_EnvString)
 
_CRTIMP void __cdecl _wsearchenv (_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_EnvVar, _Pre_notnull_ _Post_z_ wchar_t *_ResultPath)
 
_CRTIMP void __cdecl _wsplitpath (_In_z_ const wchar_t *_FullPath, _Pre_maybenull_ _Post_z_ wchar_t *_Drive, _Pre_maybenull_ _Post_z_ wchar_t *_Dir, _Pre_maybenull_ _Post_z_ wchar_t *_Filename, _Pre_maybenull_ _Post_z_ wchar_t *_Ext)
 
_CRTIMP
__MINGW_ATTRIB_DEPRECATED void
__cdecl 
_beep (_In_ unsigned _Frequency, _In_ unsigned _Duration)
 
_CRTIMP
__MINGW_ATTRIB_DEPRECATED void
__cdecl 
_seterrormode (_In_ int _Mode)
 
_CRTIMP
__MINGW_ATTRIB_DEPRECATED void
__cdecl 
_sleep (_In_ unsigned long _Duration)
 
_Check_return_ _CRTIMP char
*__cdecl 
ecvt (_In_ double _Val, _In_ int _NumOfDigits, _Out_ int *_PtDec, _Out_ int *_PtSign)
 
_Check_return_ _CRTIMP char
*__cdecl 
fcvt (_In_ double _Val, _In_ int _NumOfDec, _Out_ int *_PtDec, _Out_ int *_PtSign)
 
_CRTIMP char *__cdecl gcvt (_In_ double _Val, _In_ int _NumOfDigits, _Pre_notnull_ _Post_z_ char *_DstBuf)
 
_CRTIMP char *__cdecl itoa (_In_ int _Val, _Pre_notnull_ _Post_z_ char *_DstBuf, _In_ int _Radix)
 
_CRTIMP char *__cdecl ltoa (_In_ long _Val, _Pre_notnull_ _Post_z_ char *_DstBuf, _In_ int _Radix)
 
_Check_return_ _CRTIMP int __cdecl putenv (_In_z_ const char *_EnvString)
 
_CRTIMP void __cdecl swab (_Inout_updates_z_(_SizeInBytes) char *_Buf1, _Inout_updates_z_(_SizeInBytes) char *_Buf2, _In_ int _SizeInBytes)
 
_CRTIMP char *__cdecl ultoa (_In_ unsigned long _Val, _Pre_notnull_ _Post_z_ char *_Dstbuf, _In_ int _Radix)
 
onexit_t __cdecl onexit (_In_opt_ onexit_t _Func)
 
_Check_return_
__MINGW_EXTENSION lldiv_t
__cdecl 
lldiv (_In_ long long, _In_ long long)
 
__MINGW_EXTENSION __CRT_INLINE
long long __cdecl 
llabs (_In_ long long _j)
 
__MINGW_EXTENSION long long __cdecl strtoll (const char *__restrict__, char **__restrict, int)
 
__MINGW_EXTENSION unsigned
long long __cdecl 
strtoull (const char *__restrict__, char **__restrict__, int)
 
__MINGW_EXTENSION long long __cdecl atoll (const char *)
 
__MINGW_EXTENSION long long __cdecl wtoll (const wchar_t *)
 
__MINGW_EXTENSION char *__cdecl lltoa (long long, char *, int)
 
__MINGW_EXTENSION char *__cdecl ulltoa (unsigned long long, char *, int)
 
__MINGW_EXTENSION wchar_t *__cdecl lltow (long long, wchar_t *, int)
 
__MINGW_EXTENSION wchar_t *__cdecl ulltow (unsigned long long, wchar_t *, int)
 

Variables

_CRTIMP int __mb_cur_max
 
_CRTIMP char_sys_errlist []
 
_CRTIMP int _sys_nerr
 
_CRTIMP int __argc
 
_CRTIMP char ** __argv
 
_CRTIMP wchar_t ** __wargv
 
_CRTIMP char ** _environ
 
_CRTIMP wchar_t ** _wenviron
 
_CRTIMP char_pgmptr
 
_CRTIMP wchar_t_wpgmptr
 
_CRTIMP int _fmode
 
_CRTIMP unsigned int _osplatform
 
_CRTIMP unsigned int _osver
 
_CRTIMP unsigned int _winver
 
_CRTIMP unsigned int _winmajor
 
_CRTIMP unsigned int _winminor
 
_In_ size_t _MaxCount
 
_Check_return_ _Ret_maybenull_
_In_ size_t 
_SizeOfElements
 
_In_ size_t _NewSize
 
_In_ size_t _Count
 
_In_ size_t _In_ size_t _Size
 
_Check_return_ _Ret_maybenull_
_In_ size_t 
_Alignment
 
_Check_return_ _Ret_maybenull_
_In_ size_t _In_ size_t 
_Offset
 

Macro Definition Documentation

#define __max (   a,
  b 
)    (((a) > (b)) ? (a) : (b))

Definition at line 113 of file stdlib.h.

Referenced by codecvt< _InternT, _ExternT, _StateT >::do_length().

#define __min (   a,
  b 
)    (((a) < (b)) ? (a) : (b))

Definition at line 114 of file stdlib.h.

#define _CALL_REPORTFAULT   0x2

Definition at line 128 of file stdlib.h.

Referenced by abort().

#define _countof (   _Array)    (sizeof(_Array) / sizeof(_Array[0]))

Definition at line 228 of file stdlib.h.

#define _CRT_ABS_DEFINED

Definition at line 261 of file stdlib.h.

#define _CRT_ALGO_DEFINED

Definition at line 318 of file stdlib.h.

#define _CRT_ALLOCATION_DEFINED

Definition at line 690 of file stdlib.h.

#define _CRT_ATOF_DEFINED

Definition at line 272 of file stdlib.h.

#define _CRT_DOUBLE_DEC

Definition at line 62 of file stdlib.h.

#define _CRT_PERROR_DEFINED

Definition at line 1182 of file stdlib.h.

#define _CRT_SYSTEM_DEFINED

Definition at line 644 of file stdlib.h.

#define _CRT_TERMINATE_DEFINED

Definition at line 239 of file stdlib.h.

#define _CRT_WPERROR_DEFINED

Definition at line 1283 of file stdlib.h.

#define _CRT_WSYSTEM_DEFINED

Definition at line 925 of file stdlib.h.

#define _CVTBUFSIZE   (309+40)

Definition at line 1062 of file stdlib.h.

#define _DIV_T_DEFINED

Definition at line 48 of file stdlib.h.

#define _doserrno   (*__doserrno())

Definition at line 143 of file stdlib.h.

Referenced by test__get_doserrno(), and test__set_doserrno().

#define _MAX_DIR   256

Definition at line 118 of file stdlib.h.

#define _MAX_DRIVE   3

Definition at line 117 of file stdlib.h.

#define _MAX_ENV   32767

Definition at line 130 of file stdlib.h.

#define _MAX_EXT   256

Definition at line 120 of file stdlib.h.

#define _MAX_FNAME   256

Definition at line 119 of file stdlib.h.

#define _MAX_PATH   260

Definition at line 116 of file stdlib.h.

#define _ONEXIT_T_DEFINED

Definition at line 38 of file stdlib.h.

#define _OUT_TO_DEFAULT   0

Definition at line 122 of file stdlib.h.

Referenced by _assert(), and abort().

#define _OUT_TO_MSGBOX   2

Definition at line 124 of file stdlib.h.

Referenced by abort().

#define _OUT_TO_STDERR   1

Definition at line 123 of file stdlib.h.

Referenced by _assert().

#define _PTR_LD (   x)    ((unsigned char *)(&(x)->ld))

Definition at line 70 of file stdlib.h.

#define _REPORT_ERRMODE   3

Definition at line 125 of file stdlib.h.

#define _WRITE_ABORT_MSG   0x1

Definition at line 127 of file stdlib.h.

Referenced by abort().

#define _WSTDLIB_DEFINED

Definition at line 828 of file stdlib.h.

#define _WSTDLIBP_DEFINED

Definition at line 1261 of file stdlib.h.

#define environ   _environ

Definition at line 1360 of file stdlib.h.

#define EXIT_FAILURE   1

Definition at line 35 of file stdlib.h.

#define EXIT_SUCCESS   0

Definition at line 34 of file stdlib.h.

#define MB_CUR_MAX   ___mb_cur_max_func()

Definition at line 102 of file stdlib.h.

#define NULL   ((void *)0)

This file has no copyright assigned and is placed in the Public Domain. This file is part of the w64 mingw-runtime package. No warranty is given; refer to the file DISCLAIMER within this package.

Definition at line 26 of file stdlib.h.

#define onexit_t   _onexit_t

Definition at line 43 of file stdlib.h.

#define RAND_MAX   0x7fff

Definition at line 99 of file stdlib.h.

Referenced by CMathTest::import_checks(), InitGL(), initrand(), rand(), render(), and CardStack::Shuffle().

#define sys_errlist   _sys_errlist

Definition at line 1358 of file stdlib.h.

#define sys_nerr   _sys_nerr

Definition at line 1359 of file stdlib.h.

Typedef Documentation

typedef void(__cdecl * _invalid_parameter_handler)(const wchar_t *, const wchar_t *, const wchar_t *, unsigned int, uintptr_t)

Definition at line 137 of file stdlib.h.

typedef int(__cdecl * _onexit_t)(void)

Definition at line 40 of file stdlib.h.

typedef void(__cdecl * _purecall_handler)(void)

Definition at line 132 of file stdlib.h.

typedef struct _div_t div_t

Function Documentation

_CRTIMP int __cdecl ___mb_cur_max_func ( void  )

Definition at line 438 of file environ.c.

439 {
440  return get_locinfo()->mb_cur_max;
441 }
#define get_locinfo()
Definition: winesup.h:25
_CRTIMP int __cdecl ___mb_cur_max_l_func ( _locale_t  )
__declspec ( noreturn  )

Definition at line 52 of file thread.c.

57 {
58  /* Attempt to call the Thread Start Address */
59  _SEH2_TRY
60  {
61  /* Legacy check which is still used today for Win32 threads */
62  if (NtCurrentTeb()->NtTib.Version == (30 << 8)) // OS/2 V3.0 ("Cruiser")
63  {
64  /* This registers the termination port with CSRSS */
66  }
67 
68  /* Get the exit code from the Thread Start */
69  ExitThread((lpStartAddress)((PVOID)lpParameter));
70  }
72  {
73  /* Get the Exit code from the SEH Handler */
75  {
76  /* Kill the whole process, usually */
78  }
79  else
80  {
81  /* If running inside CSRSS, kill just this thread */
83  }
84  }
85  _SEH2_END;
86 }
DWORD *typedef PVOID
Definition: winlogon.h:52
VOID WINAPI ExitProcess(IN UINT uExitCode)
Definition: proc.c:1532
#define _SEH2_END
Definition: pseh2_64.h:7
#define _SEH2_GetExceptionInformation()
Definition: pseh2_64.h:11
VOID WINAPI ExitThread(IN DWORD uExitCode)
Definition: thread.c:349
static LONG BaseThreadExceptionFilter(EXCEPTION_POINTERS *ExceptionInfo)
Definition: thread.c:30
BOOLEAN BaseRunningInServerProcess
Definition: dllmain.c:20
LPVOID lpParameter
Definition: kernel32.h:232
NTSTATUS NTAPI CsrNewThread(VOID)
Definition: api.c:27
FORCEINLINE struct _TEB * NtCurrentTeb(VOID)
Definition: psfuncs.h:420
#define _SEH2_TRY
Definition: pseh2_64.h:5
#define _SEH2_EXCEPT(...)
Definition: pseh2_64.h:6
#define _SEH2_GetExceptionCode()
Definition: pseh2_64.h:12
_CRTIMP unsigned long* __cdecl __doserrno ( void  )

Definition at line 27 of file errno.c.

Referenced by _cwait(), _get_doserrno(), _set_doserrno(), fdtoh(), and msvcrt_init_fp().

28 {
29  return &(msvcrt_get_thread_data()->thread_doserrno);
30 }
thread_data_t * msvcrt_get_thread_data(void)
Definition: tls.c:31
_CRTIMP int* __cdecl __p___argc ( )

Definition at line 450 of file getargs.c.

451 {
452  return &__argc;
453 }
int __argc
Definition: getargs.c:21
_CRTIMP char*** __cdecl __p___argv ( )

Definition at line 458 of file getargs.c.

Referenced by ok_argsA_imp().

459 {
460  return &__argv;
461 }
char ** __argv
Definition: getargs.c:18
_CRTIMP wchar_t*** __cdecl __p___wargv ( )

Definition at line 466 of file getargs.c.

Referenced by ok_argsW_imp().

467 {
468  return &__wargv;
469 }
wchar_t ** __wargv
Definition: getargs.c:20
_CRTIMP char*** __cdecl __p__environ ( )

Definition at line 384 of file environ.c.

Referenced by getenv().

385 {
386  return &_environ;
387 }
char ** _environ
Definition: environ.c:22
_CRTIMP char** __cdecl __p__pgmptr ( )

Definition at line 454 of file environ.c.

455 {
456  return &_pgmptr;
457 }
char * _pgmptr
Definition: environ.c:27
_CRTIMP wchar_t*** __cdecl __p__wenviron ( )

Definition at line 392 of file environ.c.

Referenced by _wgetenv().

393 {
394  return &_wenviron;
395 }
wchar_t ** _wenviron
Definition: environ.c:23
_CRTIMP wchar_t** __cdecl __p__wpgmptr ( )

Definition at line 477 of file environ.c.

478 {
479  return &_wpgmptr;
480 }
wchar_t * _wpgmptr
Definition: environ.c:29
_CRTIMP void __cdecl _aligned_free ( _Pre_maybenull_ _Post_invalid_ void _Memory)

Referenced by _mesa_align_free().

_Check_return_ _CRTIMP int __cdecl _atodbl ( _Out_ _CRT_DOUBLE _Result,
_In_z_ char _Str 
)
_Check_return_ _CRTIMP int __cdecl _atodbl_l ( _Out_ _CRT_DOUBLE _Result,
_In_z_ char _Str,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ double __cdecl _atof_l ( _In_z_ const char _String,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ _CRTIMP int __cdecl _atoflt ( _Out_ _CRT_FLOAT _Result,
_In_z_ char _Str 
)
_Check_return_ _CRTIMP int __cdecl _atoflt_l ( _Out_ _CRT_FLOAT _Result,
_In_z_ char _Str,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ _CRTIMP int __cdecl _atoi_l ( _In_z_ const char _Str,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ _CRTIMP long __cdecl _atol_l ( _In_z_ const char _Str,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ _CRTIMP int __cdecl _atoldbl ( _Out_ _LDOUBLE _Result,
_In_z_ char _Str 
)
_Check_return_ _CRTIMP int __cdecl _atoldbl_l ( _Out_ _LDOUBLE _Result,
_In_z_ char _Str,
_In_opt_ _locale_t  _Locale 
)
_CRTIMP __MINGW_ATTRIB_DEPRECATED void __cdecl _beep ( _In_ unsigned  _Frequency,
_In_ unsigned  _Duration 
)
_Check_return_ __MINGW_EXTENSION unsigned __int64 __cdecl _byteswap_uint64 ( _In_ unsigned __int64  _Int64)
_Check_return_ unsigned long __cdecl _byteswap_ulong ( _In_ unsigned long  _Long)
_Check_return_ unsigned short __cdecl _byteswap_ushort ( _In_ unsigned short  _Short)
_Check_return_ _CRTIMP char* __cdecl _ecvt ( _In_ double  _Val,
_In_ int  _NumOfDigits,
_Out_ int _PtDec,
_Out_ int _PtSign 
)

Referenced by test_xcvt().

__CRT_INLINE void __cdecl _Exit ( int  status)

Definition at line 245 of file stdlib.h.

246  { _exit(status); }
void _exit(int exitcode)
Definition: _exit.c:25
Definition: ps.c:97
_Check_return_ _CRTIMP char* __cdecl _fcvt ( _In_ double  _Val,
_In_ int  _NumOfDec,
_Out_ int _PtDec,
_Out_ int _PtSign 
)

Referenced by test_fcvt(), and test_xcvt().

_Check_return_ _CRTIMP char* __cdecl _fullpath ( _Out_writes_opt_z_(_SizeInBytes) char _FullPath,
_In_z_ const char _Path,
_In_ size_t  _SizeInBytes 
)

Referenced by test_fullpath().

_CRTIMP char* __cdecl _gcvt ( _In_ double  _Val,
_In_ int  _NumOfDigits,
_Pre_notnull_ _Post_z_ char _DstBuf 
)

Referenced by test_gcvt().

errno_t __cdecl _get_doserrno ( _Out_ unsigned long _Value)
_CRTIMP errno_t __cdecl _get_environ ( _Out_ char ***  )
_CRTIMP errno_t __cdecl _get_fmode ( _Out_ int _PMode)
_invalid_parameter_handler __cdecl _get_invalid_parameter_handler ( void  )

Definition at line 151 of file errno.c.

152 {
153  TRACE("\n");
155 }
static _invalid_parameter_handler invalid_parameter_handler
Definition: errno.c:14
#define TRACE(s)
Definition: solgame.cpp:4
errno_t __cdecl _get_osplatform ( _Out_ unsigned int _Value)
errno_t __cdecl _get_osver ( _Out_ unsigned int _Value)
_CRTIMP errno_t __cdecl _get_pgmptr ( _Outptr_result_z_ char **  _Value)
_CRTIMP _purecall_handler __cdecl _get_purecall_handler ( void  )
_CRTIMP errno_t __cdecl _get_wenviron ( _Out_ wchar_t ***  )
errno_t __cdecl _get_winmajor ( _Out_ unsigned int _Value)
errno_t __cdecl _get_winminor ( _Out_ unsigned int _Value)
errno_t __cdecl _get_winver ( _Out_ unsigned int _Value)
_CRTIMP errno_t __cdecl _get_wpgmptr ( _Outptr_result_z_ wchar_t **  _Value)
__MINGW_EXTENSION _CRTIMP char* __cdecl _i64toa ( _In_ __int64  _Val,
_Pre_notnull_ _Post_z_ char _DstBuf,
_In_ int  _Radix 
)

Referenced by lltoa().

__MINGW_EXTENSION _CRTIMP wchar_t* __cdecl _i64tow ( _In_ __int64  _Val,
_Pre_notnull_ _Post_z_ wchar_t _DstBuf,
_In_ int  _Radix 
)

Referenced by format_size(), lltow(), and TimeToMsString().

_Check_return_ unsigned long __cdecl _lrotl ( _In_ unsigned long  _Val,
_In_ int  _Shift 
)
_Check_return_ unsigned long __cdecl _lrotr ( _In_ unsigned long  _Val,
_In_ int  _Shift 
)
_CRTIMP char* __cdecl _ltoa ( _In_ long  _Value,
_Pre_notnull_ _Post_z_ char _Dest,
_In_ int  _Radix 
)
_CRTIMP wchar_t* __cdecl _ltow ( _In_ long  _Value,
_Pre_notnull_ _Post_z_ wchar_t _Dest,
_In_ int  _Radix 
)
_CRTIMP void __cdecl _makepath ( _Pre_notnull_ _Post_z_ char _Path,
_In_opt_z_ const char _Drive,
_In_opt_z_ const char _Dir,
_In_opt_z_ const char _Filename,
_In_opt_z_ const char _Ext 
)

Referenced by test_makepath().

_CRTIMP size_t __cdecl _mbstowcs_l ( _Out_writes_opt_z_(_MaxCount) wchar_t _Dest,
_In_z_ const char _Source,
_In_ size_t  _MaxCount,
_In_opt_ _locale_t  _Locale 
)

Referenced by test_mbcp().

_Check_return_ _CRTIMP size_t __cdecl _mbstrlen_l ( _In_z_ const char _Str,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ _CRTIMP size_t __cdecl _mbstrnlen_l ( _In_z_ const char _Str,
_In_ size_t  _MaxCount,
_In_opt_ _locale_t  _Locale 
)
_CRTIMP int __cdecl _mbtowc_l ( _Pre_notnull_ _Post_z_ wchar_t _DstCh,
_In_reads_bytes_opt_(_SrcSizeInBytes) _Pre_opt_z_ const char _SrcCh,
_In_ size_t  _SrcSizeInBytes,
_In_opt_ _locale_t  _Locale 
)
_onexit_t __cdecl _onexit ( _In_opt_ _onexit_t  _Func)

Referenced by mingw_onexit().

_Check_return_ _Ret_maybenull_ _Post_writable_byte_size_ ( _NumOfElements *  _SizeOfElements)
_Check_return_ _Ret_maybenull_ _Post_writable_byte_size_ ( _Size  )
_Check_return_ _Ret_maybenull_ _Post_writable_byte_size_ ( _Count _Size)
_Check_return_ unsigned int __cdecl _rotl ( _In_ unsigned int  _Val,
_In_ int  _Shift 
)
_Check_return_ __MINGW_EXTENSION unsigned __int64 __cdecl _rotl64 ( _In_ unsigned __int64  _Val,
_In_ int  _Shift 
)
_Check_return_ unsigned int __cdecl _rotr ( _In_ unsigned int  _Val,
_In_ int  _Shift 
)
_Check_return_ __MINGW_EXTENSION unsigned __int64 __cdecl _rotr64 ( _In_ unsigned __int64  _Val,
_In_ int  _Shift 
)
_CRTIMP void __cdecl _searchenv ( _In_z_ const char _Filename,
_In_z_ const char _EnvVar,
_Pre_notnull_ _Post_z_ char _ResultPath 
)

Referenced by TConfig::keyfile_init().

_CRTIMP unsigned int __cdecl _set_abort_behavior ( _In_ unsigned int  _Flags,
_In_ unsigned int  _Mask 
)

Referenced by _assert().

errno_t __cdecl _set_doserrno ( _In_ unsigned long  _Value)
_Check_return_opt_ _CRTIMP int __cdecl _set_error_mode ( _In_ int  _Mode)
_CRTIMP errno_t __cdecl _set_fmode ( _In_ int  _Mode)
_invalid_parameter_handler __cdecl _set_invalid_parameter_handler ( _In_opt_ _invalid_parameter_handler  _Handler)
_CRTIMP _purecall_handler __cdecl _set_purecall_handler ( _In_opt_ _purecall_handler  _Handler)
_CRTIMP __MINGW_ATTRIB_DEPRECATED void __cdecl _sleep ( _In_ unsigned long  _Duration)
_CRTIMP void __cdecl _splitpath ( _In_z_ const char _FullPath,
_Pre_maybenull_ _Post_z_ char _Drive,
_Pre_maybenull_ _Post_z_ char _Dir,
_Pre_maybenull_ _Post_z_ char _Filename,
_Pre_maybenull_ _Post_z_ char _Ext 
)

Referenced by START_TEST(), and test_splitpath().

_Check_return_ _CRTIMP double __cdecl _strtod_l ( _In_z_ const char _Str,
_Out_opt_ _Deref_post_z_ char **  _EndPtr,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ __MINGW_EXTENSION _CRTIMP __int64 __cdecl _strtoi64_l ( _In_z_ const char _String,
_Out_opt_ _Deref_post_z_ char **  _EndPtr,
_In_ int  _Radix,
_In_opt_ _locale_t  _Locale 
)

Referenced by _strtoul_l().

_Check_return_ _CRTIMP long __cdecl _strtol_l ( _In_z_ const char _Str,
_Out_opt_ _Deref_post_z_ char **  _EndPtr,
_In_ int  _Radix,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ __MINGW_EXTENSION _CRTIMP unsigned __int64 __cdecl _strtoui64 ( _In_z_ const char _String,
_Out_opt_ _Deref_post_z_ char **  _EndPtr,
_In_ int  _Radix 
)
_Check_return_ __MINGW_EXTENSION _CRTIMP unsigned __int64 __cdecl _strtoui64_l ( _In_z_ const char _String,
_Out_opt_ _Deref_post_z_ char **  _EndPtr,
_In_ int  _Radix,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ _CRTIMP unsigned long __cdecl _strtoul_l ( _In_z_ const char _Str,
_Out_opt_ _Deref_post_z_ char **  _EndPtr,
_In_ int  _Radix,
_In_opt_ _locale_t  _Locale 
)
_Success_ ( return  ,
 
) const
_Success_ ( return!  = 0)
Initial value:
== REG_SZ), _At_((PSTR) PropertyBuffer, _Post_valid_))
_In_ DWORD PropertyBufferSize,
#define _Out_writes_bytes_to_opt_(size, count)
Definition: no_sal2.h:375
DWORD DWORD
Definition: winlogon.h:75
_In_ DWORD _Out_opt_ PDWORD _In_ DWORD PropertyBufferSize
Definition: setupapi.h:1548
#define REG_MULTI_SZ
Definition: nt_native.h:1501
#define _At_(target, annos)
Definition: no_sal2.h:11
_Inout_ PRTL_BUFFER _In_ SIZE_T RequiredSize
#define _Out_opt_
Definition: no_sal2.h:339
unsigned int BOOL
Definition: ntddk_ex.h:94
PVOID HDEVINFO
Definition: setupapi.h:664
#define _Post_valid_
Definition: no_sal2.h:466
BOOL WINAPI SetupDiGetDeviceRegistryPropertyA(HDEVINFO DeviceInfoSet, PSP_DEVINFO_DATA DeviceInfoData, DWORD Property, PDWORD PropertyRegDataType, PBYTE PropertyBuffer, DWORD PropertyBufferSize, PDWORD RequiredSize)
Definition: devinst.c:3277
#define WINAPI
Definition: msvc.h:20
#define _In_
Definition: no_sal2.h:204
signed char * PSTR
Definition: retypes.h:7
_NullNull_terminated_ CHAR * PZZSTR
Definition: ntbasedef.h:398
#define _When_(expr, annos)
Definition: no_sal2.h:639
DWORD * PDWORD
Definition: pedump.c:68
_In_ DWORD _Out_opt_ PDWORD PropertyRegDataType
Definition: setupapi.h:1545
#define WINSETUPAPI
Definition: setupapi.h:15
IN OUT PSP_DEVINFO_DATA DeviceInfoData
Definition: devinst.c:49
BYTE * PBYTE
Definition: pedump.c:66
#define REG_SZ
Definition: layer.c:22

Definition at line 279 of file mapping.c.

289 {
291  PENGSECTION pSection;
292 
293  /* Check parameter */
294  if (cjSize == 0) return NULL;
295 
296  /* Allocate a section object */
297  pSection = EngCreateSectionHack(fl, cjSize, ulTag);
298  if (!pSection)
299  {
300  *ppvSection = NULL;
301  return NULL;
302  }
303 
304  /* Map the section in session space */
305  Status = MmMapViewInSessionSpace(pSection->pvSectionObject,
306  &pSection->pvMappedBase,
307  &pSection->cjViewSize);
308  if (!NT_SUCCESS(Status))
309  {
310  DPRINT1("Failed to map a section Status=0x%x\n", Status);
311  *ppvSection = NULL;
312  EngFreeSectionMem(pSection, NULL);
313  return NULL;
314  }
315 
316  if (fl & FL_ZERO_MEMORY)
317  {
318  RtlZeroMemory(pSection->pvMappedBase, cjSize);
319  }
320 
321  /* Set section pointer and return base address */
322  *ppvSection = pSection;
323  return pSection->pvMappedBase;
324 }
PVOID pvSectionObject
Definition: mapping.h:4
_In_ FLONG fl
Definition: winddi.h:1279
smooth NULL
Definition: ftsmooth.c:557
BOOL APIENTRY EngFreeSectionMem(_In_opt_ PVOID pvSection, _In_opt_ PVOID pvMappedBase)
Definition: mapping.c:246
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:24
SIZE_T cjViewSize
Definition: mapping.h:6
PVOID NTAPI EngCreateSectionHack(_In_ ULONG fl, _In_ SIZE_T cjSize, _In_ ULONG ulTag)
Definition: mapping.c:132
#define FL_ZERO_MEMORY
Definition: polytest.cpp:58
Status
Definition: gdiplustypes.h:24
_In_ ULONG _In_ ULONG ulTag
Definition: winddi.h:3941
LONG NTSTATUS
Definition: DriverTester.h:11
#define DPRINT1
Definition: precomp.h:8
_In_ ULONG cjSize
Definition: winddi.h:3634
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:261
NTSTATUS NTAPI MmMapViewInSessionSpace(IN PVOID Section, OUT PVOID *MappedBase, IN OUT PSIZE_T ViewSize)
Definition: section.c:2989
PVOID pvMappedBase
Definition: mapping.h:5
__MINGW_EXTENSION _CRTIMP char* __cdecl _ui64toa ( _In_ unsigned __int64  _Val,
_Pre_notnull_ _Post_z_ char _DstBuf,
_In_ int  _Radix 
)

Referenced by ulltoa().

__MINGW_EXTENSION _CRTIMP wchar_t* __cdecl _ui64tow ( _In_ unsigned __int64  _Val,
_Pre_notnull_ _Post_z_ wchar_t _DstBuf,
_In_ int  _Radix 
)

Referenced by PerfDataGetText(), and ulltow().

_CRTIMP char* __cdecl _ultoa ( _In_ unsigned long  _Value,
_Pre_notnull_ _Post_z_ char _Dest,
_In_ int  _Radix 
)
_Check_return_ _CRTIMP long __cdecl _wcstol_l ( _In_z_ const wchar_t _Str,
_Out_opt_ _Deref_post_z_ wchar_t **  _EndPtr,
_In_ int  _Radix,
_In_opt_ _locale_t  _Locale 
)
_CRTIMP size_t __cdecl _wcstombs_l ( _Out_writes_opt_z_(_MaxCount) char _Dest,
_In_z_ const wchar_t _Source,
_In_ size_t  _MaxCount,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ __MINGW_EXTENSION _CRTIMP unsigned __int64 __cdecl _wcstoui64 ( _In_z_ const wchar_t _Str,
_Out_opt_ _Deref_post_z_ wchar_t **  _EndPtr,
_In_ int  _Radix 
)
_Check_return_ __MINGW_EXTENSION _CRTIMP unsigned __int64 __cdecl _wcstoui64_l ( _In_z_ const wchar_t _Str,
_Out_opt_ _Deref_post_z_ wchar_t **  _EndPtr,
_In_ int  _Radix,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ _CRTIMP unsigned long __cdecl _wcstoul_l ( _In_z_ const wchar_t _Str,
_Out_opt_ _Deref_post_z_ wchar_t **  _EndPtr,
_In_ int  _Radix,
_In_opt_ _locale_t  _Locale 
)
_CRTIMP int __cdecl _wctomb_l ( _Pre_maybenull_ _Post_z_ char _MbCh,
_In_ wchar_t  _WCh,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ _CRTIMP wchar_t* __cdecl _wfullpath ( _Out_writes_opt_z_(_SizeInWords) wchar_t _FullPath,
_In_z_ const wchar_t _Path,
_In_ size_t  _SizeInWords 
)

Referenced by compat_getenv().

_CRTIMP void __cdecl _wmakepath ( _Pre_notnull_ _Post_z_ wchar_t _ResultPath,
_In_opt_z_ const wchar_t _Drive,
_In_opt_z_ const wchar_t _Dir,
_In_opt_z_ const wchar_t _Filename,
_In_opt_z_ const wchar_t _Ext 
)

Referenced by test_makepath().

_CRTIMP void __cdecl _wperror ( _In_opt_z_ const wchar_t _ErrMsg)
_Check_return_ _CRTIMP int __cdecl _wputenv ( _In_z_ const wchar_t _EnvString)

Referenced by test__wenviron().

_CRTIMP void __cdecl _wsearchenv ( _In_z_ const wchar_t _Filename,
_In_z_ const wchar_t _EnvVar,
_Pre_notnull_ _Post_z_ wchar_t _ResultPath 
)
_CRTIMP int __cdecl _wsystem ( _In_opt_z_ const wchar_t _Command)
_Check_return_ _CRTIMP int __cdecl _wtoi_l ( _In_z_ const wchar_t _Str,
_In_opt_ _locale_t  _Locale 
)
int __cdecl abs ( _In_ int  _X)
int __cdecl atexit ( void(__cdecl *)(void )

Definition at line 56 of file atonexit.c.

Referenced by __do_global_ctors(), main(), and openlog().

57 {
58  return (mingw_onexit((_onexit_t)func) == NULL) ? -1 : 0;
59 }
smooth NULL
Definition: ftsmooth.c:557
_onexit_t(__cdecl *__MINGW_IMP_SYMBOL(_onexit))(_onexit_t func)
_onexit_t __cdecl mingw_onexit(_onexit_t func)
Definition: atonexit.c:33

Referenced by __GetLCIDFromName(), __GetLocaleInfoUsingACP(), __intGetACP(), __intGetOCP(), __rpc_uaddr2taddr_af(), _ecvt(), _Locale_codecvt_create(), _Locale_ctype_create(), _Locale_monetary_create(), _Locale_n_sign_posn(), _Locale_p_sign_posn(), _Locale_strcmp(), _Locale_strxfrm(), _mesa_make_extension_string(), _tmain(), add_widl_version_define(), AddrStrToAddr(), BGStartCmd(), CC_CheckDigitsInEdit(), CmdLineParse(), Telnet::Connect(), CreateExtendedPartitionPage(), CreateLogicalPartitionPage(), CreateOutputFile(), CreatePrimaryPartitionPage(), DebugCmd(), demangle_datatype(), DissectArcPath(), DoSHIFTSTATE(), doWinMain(), DriveMapGetBiosDriveNumber(), DriveMapIsValidDriveString(), Ext2ParseRegistryVolumeParams(), formatopts_proc(), FTP_ParseNextFile(), FTP_ReceiveResponse(), FTPDecodeURL(), FTPQueryFeatures(), get_constant_element_by_name(), get_modified_type(), get_parameter_element_by_name(), get_shell_icon_size(), getline(), GetPortNumber(), GetProtoGetNextEnt(), GetResponse(), GetScreenColumns(), GetSectionName(), GetTimeOut(), gl_init(), handle_escape_cmd(), handle_switch(), HCR_RegGetIconA(), HelpCmd(), InfGetBinaryField(), InfGetIntField(), init(), init_leases_list(), interpret(), iso9660_file_length(), isoname_endsok(), lineGetCountryA(), lineGetTranslateCapsA(), TMapLoader::LoadGlobal(), main(), metricfromreg(), MSVCRT_I10_OUTPUT(), name_to_codepage(), CDFParser::NextToken(), NSP_GetServiceByNameHeapAllocW(), OpenCmd(), OptionMenuCustomBootReactOS(), output_if_debug(), XMLStorage::XPathElement::parse(), ParseCmdline(), ParseFile(), ParseHostLine(), pe_find_section(), ProcessFirewallPrefFile(), processRequest(), puint_t_UserMarshal(), put_resource_id(), read_version_entry(), TConfig::redir_init(), s_square_puint(), s_square_test_us(), s_sum_cpuints(), s_sum_puints(), section_get_dword(), ServiceNameToPortNumber(), TConfig::set_bool(), TConfig::set_value(), SetConnTimeout(), SetCtrlTimeout(), setdebug(), SetLogSize(), SetPassive(), setpeer(), SetRedialDelay(), SetSOBufsize(), setup_dinput_options(), setup_dsound_options(), SetXferTimeout(), spy_init(), START_TEST(), StrToBool(), StrToIntA(), telCommandLine(), test_asyncWAVE(), test_asyncWaveTypeMpegvideo(), test_atoi(), test_AutoOpenWAVE(), test_file_inherit_child(), test_file_inherit_child_no(), test_firstDay(), test_GetCalendarInfo(), test_openCloseWAVE(), test_pipes_child(), test_play(), test_wm_set_get_text(), translate_files(), translate_line(), UnDosLine(), UnLslRLine(), UnMlsT(), us_t_UserMarshal(), UserGetLanguageToggle(), value_get_dword_field(), while(), wined3d_dll_init(), wined3d_parse_gl_version(), and WinLdrSetupEms().

__MINGW_EXTENSION __CRT_INLINE long long __cdecl atoll ( const char _c)

Definition at line 1461 of file stdlib.h.

1461 { return _atoi64 (_c); }
_Check_return_ __MINGW_EXTENSION _CRTIMP __int64 __cdecl _atoi64(_In_z_ const char *_String)
_Check_return_ void* __cdecl bsearch ( _In_ const void _Key,
_In_reads_bytes_(_NumOfElements *_SizeOfElements) const void _Base,
_In_ size_t  _NumOfElements,
_In_ size_t  _SizeOfElements,
_In_   int__cdecl *_PtFuncCompare)(const void *, const void * 
)
_Check_return_ div_t __cdecl div ( _In_ int  _Numerator,
_In_ int  _Denominator 
)
_Check_return_ _CRTIMP char* __cdecl ecvt ( _In_ double  _Val,
_In_ int  _NumOfDigits,
_Out_ int _PtDec,
_Out_ int _PtSign 
)

Referenced by ftoes(), and ftofs().

_Check_return_ _CRTIMP char* __cdecl fcvt ( _In_ double  _Val,
_In_ int  _NumOfDec,
_Out_ int _PtDec,
_Out_ int _PtSign 
)

Referenced by ftofs().

_CRTIMP char* __cdecl gcvt ( _In_ double  _Val,
_In_ int  _NumOfDigits,
_Pre_notnull_ _Post_z_ char _DstBuf 
)

Referenced by for(), and test_gcvt().

long __cdecl labs ( _In_ long  _X)
_Check_return_ ldiv_t __cdecl ldiv ( _In_ long  _Numerator,
_In_ long  _Denominator 
)
__MINGW_EXTENSION __CRT_INLINE long long __cdecl llabs ( _In_ long long  _j)

Definition at line 1444 of file stdlib.h.

1444 { return (_j >= 0 ? _j : -_j); }
__MINGW_EXTENSION __CRT_INLINE char *__cdecl lltoa ( long long  _n,
char _c,
int  _i 
)

Definition at line 1462 of file stdlib.h.

1462 { return _i64toa (_n, _c, _i); }
__MINGW_EXTENSION _CRTIMP char *__cdecl _i64toa(_In_ __int64 _Val, _Pre_notnull_ _Post_z_ char *_DstBuf, _In_ int _Radix)
__MINGW_EXTENSION __CRT_INLINE wchar_t *__cdecl lltow ( long long  _n,
wchar_t _w,
int  _i 
)

Definition at line 1465 of file stdlib.h.

1465 { return _i64tow (_n, _w, _i); }
__MINGW_EXTENSION _CRTIMP wchar_t *__cdecl _i64tow(_In_ __int64 _Val, _Pre_notnull_ _Post_z_ wchar_t *_DstBuf, _In_ int _Radix)
_CRTIMP char* __cdecl ltoa ( _In_ long  _Val,
_Pre_notnull_ _Post_z_ char _DstBuf,
_In_ int  _Radix 
)
int __cdecl mbtowc ( _Pre_notnull_ _Post_z_ wchar_t _DstCh,
_In_reads_bytes_opt_(_SrcSizeInBytes) _Pre_opt_z_ const char _SrcCh,
_In_ size_t  _SrcSizeInBytes 
)
onexit_t __cdecl onexit ( _In_opt_ onexit_t  _Func)
void __cdecl perror ( _In_opt_z_ const char _ErrMsg)
void __cdecl qsort ( _Inout_updates_bytes_(_NumOfElements *_SizeOfElements) _Post_readable_byte_size_(_NumOfElements *_SizeOfElements) void _Base,
_In_ size_t  _NumOfElements,
_In_ size_t  _SizeOfElements,
_In_   int__cdecl *_PtFuncCompare)(const void *, const void * 
)

Definition at line 10 of file rand.c.

Referenced by __random_number(), __xmlRandom(), Airbrush(), arc4random(), BindToEphemeralPortNumber(), cxxrand(), D3DRMVectorRandom(), DoStuff(), UnorderedTest::equal_range(), Fbt_CreateFiber(), Fbt_Yield(), generate_random(), GenerateComputerName(), get_uuid(), GetEnvVarOrSpecial(), CMathTest::import_checks(), InitGL(), main(), OnCreate(), RndShuffleTest::MyRandomGenerator::operator()(), PlaceMines(), randbytes(), random_number(), RandomGuid(), RemoveFile(), render(), RetrieveQuote(), ScreenSaverProc(), send_discover(), send_request(), SetObject(), CardStack::Shuffle(), state_panic(), test__hwrite(), test__lwrite(), test_CryptInstallOssGlobal(), test_qsort_s(), test_rand_s(), urlcache_entry_create(), and UuidCreateSequential().

11 {
13 
14  /* this is the algorithm used by MSVC, according to
15  * http://en.wikipedia.org/wiki/List_of_pseudorandom_number_generators */
16  data->random_seed = data->random_seed * 214013 + 2531011;
17  return (data->random_seed >> 16) & RAND_MAX;
18 }
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
#define RAND_MAX
Definition: stdlib.h:99
thread_data_t * msvcrt_get_thread_data(void)
Definition: tls.c:31
float __cdecl strtof ( const char nptr,
char **  endptr 
)

Referenced by _mesa_strtof().

long double __cdecl strtold ( const char __restrict__,
char **  __restrict__ 
)

Referenced by _atoldbl(), and TRIO_ARGS2().

__MINGW_EXTENSION long long __cdecl strtoll ( const char __restrict__,
char **  __restrict,
int   
)

Referenced by make_number().

_Check_return_ unsigned long __cdecl strtoul ( _In_z_ const char _Str,
_Out_opt_ _Deref_post_z_ char **  _EndPtr,
_In_ int  _Radix 
)
__MINGW_EXTENSION unsigned long long __cdecl strtoull ( const char __restrict__,
char **  __restrict__,
int   
)

Definition at line 5 of file strtoull.c.

6 {
7  const char *s = nptr;
8  unsigned long long acc;
9  int c;
10  unsigned long long cutoff;
11  int neg = 0, any, cutlim;
12 
13  /*
14  * See strtol for comments as to the logic used.
15  */
16  do {
17  c = *s++;
18  } while (isspace(c));
19  if (c == '-')
20  {
21  neg = 1;
22  c = *s++;
23  }
24  else if (c == '+')
25  c = *s++;
26  if ((base == 0 || base == 16) &&
27  c == '0' && (*s == 'x' || *s == 'X'))
28  {
29  c = s[1];
30  s += 2;
31  base = 16;
32  }
33  if (base == 0)
34  base = c == '0' ? 8 : 10;
35  cutoff = (unsigned long long)ULLONG_MAX / (unsigned long long)base;
36  cutlim = (unsigned long long)ULLONG_MAX % (unsigned long long)base;
37  for (acc = 0, any = 0;; c = *s++)
38  {
39  if (isdigit(c))
40  c -= '0';
41  else if (isalpha(c))
42  c -= isupper(c) ? 'A' - 10 : 'a' - 10;
43  else
44  break;
45  if (c >= base)
46  break;
47  if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
48  any = -1;
49  else {
50  any = 1;
51  acc *= base;
52  acc += c;
53  }
54  }
55  if (any < 0)
56  {
57  acc = ULLONG_MAX;
58 #ifndef _LIBCNT_
60 #endif
61  }
62  else if (neg)
63  acc = 0-acc;
64  if (endptr != 0)
65  *endptr = any ? (char *)((size_t)(s - 1)) : (char *)((size_t)nptr);
66  return acc;
67 }
errno_t __cdecl _set_errno(_In_ int _Value)
#define isspace(c)
Definition: acclib.h:69
#define isalpha(c)
Definition: acclib.h:74
const XML_Char int const XML_Char int const XML_Char * base
Definition: expat.h:331
unsigned char
Definition: typeof.h:27
unsigned long
Definition: typeof.h:99
#define isdigit(c)
Definition: acclib.h:68
__kernel_size_t size_t
Definition: linux.h:237
#define isupper(c)
Definition: acclib.h:71
#define ERANGE
Definition: acclib.h:92
#define ULLONG_MAX
Definition: limits.h:47
GLdouble s
Definition: gl.h:2039
#define c
Definition: ke_i.h:80
_CRTIMP void __cdecl swab ( _Inout_updates_z_(_SizeInBytes) char _Buf1,
_Inout_updates_z_(_SizeInBytes) char _Buf2,
_In_ int  _SizeInBytes 
)
int __cdecl system ( _In_opt_z_ const char _Command)
__MINGW_EXTENSION __CRT_INLINE char *__cdecl ulltoa ( unsigned long long  _n,
char _c,
int  _i 
)

Definition at line 1463 of file stdlib.h.

1463 { return _ui64toa (_n, _c, _i); }
__MINGW_EXTENSION _CRTIMP char *__cdecl _ui64toa(_In_ unsigned __int64 _Val, _Pre_notnull_ _Post_z_ char *_DstBuf, _In_ int _Radix)
__MINGW_EXTENSION __CRT_INLINE wchar_t *__cdecl ulltow ( unsigned long long  _n,
wchar_t _w,
int  _i 
)

Definition at line 1466 of file stdlib.h.

1466 { return _ui64tow (_n, _w, _i); }
__MINGW_EXTENSION _CRTIMP wchar_t *__cdecl _ui64tow(_In_ unsigned __int64 _Val, _Pre_notnull_ _Post_z_ wchar_t *_DstBuf, _In_ int _Radix)
_CRTIMP char* __cdecl ultoa ( _In_ unsigned long  _Val,
_Pre_notnull_ _Post_z_ char _Dstbuf,
_In_ int  _Radix 
)

Referenced by _wtof(), and number_from_string().

float __cdecl wcstof ( const wchar_t nptr,
wchar_t **  endptr 
)
long double __cdecl wcstold ( const wchar_t __restrict__,
wchar_t **  __restrict__ 
)
int __cdecl wctomb ( _Out_writes_opt_z_(MB_LEN_MAX) char _MbCh,
_In_ wchar_t  _WCh 
)
__MINGW_EXTENSION __CRT_INLINE long long __cdecl wtoll ( const wchar_t _w)

Definition at line 1464 of file stdlib.h.

1464 { return _wtoi64 (_w); }
_Check_return_ __MINGW_EXTENSION _CRTIMP __int64 __cdecl _wtoi64(_In_z_ const wchar_t *_Str)

Variable Documentation

_CRTIMP int __argc

Definition at line 21 of file getargs.c.

Referenced by __getmainargs(), __p___argc(), __wgetmainargs(), aadd(), and wadd().

_CRTIMP char** __argv

Definition at line 18 of file getargs.c.

Referenced by __getmainargs(), __p___argv(), aadd(), and init_logger_addr().

_CRTIMP int __mb_cur_max

Definition at line 37 of file locale.c.

_CRTIMP wchar_t** __wargv

Definition at line 20 of file getargs.c.

Referenced by __p___wargv(), __wgetmainargs(), and wadd().

Definition at line 757 of file stdlib.h.

Definition at line 733 of file stdlib.h.

_CRTIMP char** _environ

Definition at line 22 of file environ.c.

_CRTIMP int _fmode

This file has no copyright assigned and is placed in the Public Domain. This file is part of the w64 mingw-runtime package. No warranty is given; refer to the file DISCLAIMER.PD within this package.

Definition at line 13 of file txtmode.c.

Referenced by _tpopen(), and main().

_In_ size_t _MaxCount

Definition at line 520 of file stdlib.h.

_In_ size_t _NewSize

Definition at line 722 of file stdlib.h.

_CRTIMP unsigned int _osplatform

Definition at line 10 of file environ.c.

Referenced by _get_osplatform().

_CRTIMP unsigned int _osver

Definition at line 11 of file environ.c.

Referenced by __p__osver().

_CRTIMP char* _pgmptr

Definition at line 27 of file environ.c.

Definition at line 733 of file stdlib.h.

Definition at line 699 of file stdlib.h.

_CRTIMP char* _sys_errlist[]

Definition at line 67 of file strerror.c.

Referenced by __wcserror_s(), _strerror(), _wcserror_s(), perror(), strerror(), and strerror_s().

_CRTIMP int _sys_nerr

Definition at line 79 of file strerror.c.

Referenced by __wcserror_s(), _strerror(), _wcserror_s(), perror(), strerror(), and strerror_s().

_CRTIMP wchar_t** _wenviron

Definition at line 23 of file environ.c.

_CRTIMP unsigned int _winmajor

Definition at line 13 of file environ.c.

Referenced by __p__winmajor().

_CRTIMP unsigned int _winminor

Definition at line 12 of file environ.c.

Referenced by __p__winminor().

_CRTIMP unsigned int _winver

Definition at line 14 of file environ.c.

Referenced by __p__winver().

_CRTIMP wchar_t* _wpgmptr

Definition at line 29 of file environ.c.