ReactOS 0.4.15-dev-7788-g1ad9096
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 MB_LEN_MAX   5
 
#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)
 
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_ 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)
 
_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)
 
_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_ unsigned int __cdecl _rotr (_In_ unsigned int _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)
 
__MINGW_EXTENSION _Check_return_ lldiv_t __cdecl lldiv (_In_ long long, _In_ long long)
 
__MINGW_EXTENSION _Check_return_ __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

◆ __max

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

Definition at line 101 of file stdlib.h.

◆ __min

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

Definition at line 102 of file stdlib.h.

◆ _CALL_REPORTFAULT

#define _CALL_REPORTFAULT   0x2

Definition at line 116 of file stdlib.h.

◆ _countof

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

Definition at line 216 of file stdlib.h.

◆ _CRT_ABS_DEFINED

#define _CRT_ABS_DEFINED

Definition at line 249 of file stdlib.h.

◆ _CRT_ALGO_DEFINED

#define _CRT_ALGO_DEFINED

Definition at line 306 of file stdlib.h.

◆ _CRT_ALLOCATION_DEFINED

#define _CRT_ALLOCATION_DEFINED

Definition at line 678 of file stdlib.h.

◆ _CRT_ATOF_DEFINED

#define _CRT_ATOF_DEFINED

Definition at line 260 of file stdlib.h.

◆ _CRT_DOUBLE_DEC

#define _CRT_DOUBLE_DEC

Definition at line 50 of file stdlib.h.

◆ _CRT_PERROR_DEFINED

#define _CRT_PERROR_DEFINED

Definition at line 1170 of file stdlib.h.

◆ _CRT_SYSTEM_DEFINED

#define _CRT_SYSTEM_DEFINED

Definition at line 632 of file stdlib.h.

◆ _CRT_TERMINATE_DEFINED

#define _CRT_TERMINATE_DEFINED

Definition at line 227 of file stdlib.h.

◆ _CRT_WPERROR_DEFINED

#define _CRT_WPERROR_DEFINED

Definition at line 1271 of file stdlib.h.

◆ _CRT_WSYSTEM_DEFINED

#define _CRT_WSYSTEM_DEFINED

Definition at line 913 of file stdlib.h.

◆ _CVTBUFSIZE

#define _CVTBUFSIZE   (309+40)

Definition at line 1050 of file stdlib.h.

◆ _DIV_T_DEFINED

#define _DIV_T_DEFINED

Definition at line 36 of file stdlib.h.

◆ _doserrno

#define _doserrno   (*__doserrno())

Definition at line 131 of file stdlib.h.

◆ _MAX_DIR

#define _MAX_DIR   256

Definition at line 106 of file stdlib.h.

◆ _MAX_DRIVE

#define _MAX_DRIVE   3

Definition at line 105 of file stdlib.h.

◆ _MAX_ENV

#define _MAX_ENV   32767

Definition at line 118 of file stdlib.h.

◆ _MAX_EXT

#define _MAX_EXT   256

Definition at line 108 of file stdlib.h.

◆ _MAX_FNAME

#define _MAX_FNAME   256

Definition at line 107 of file stdlib.h.

◆ _MAX_PATH

#define _MAX_PATH   260

Definition at line 104 of file stdlib.h.

◆ _ONEXIT_T_DEFINED

#define _ONEXIT_T_DEFINED

Definition at line 26 of file stdlib.h.

◆ _OUT_TO_DEFAULT

#define _OUT_TO_DEFAULT   0

Definition at line 110 of file stdlib.h.

◆ _OUT_TO_MSGBOX

#define _OUT_TO_MSGBOX   2

Definition at line 112 of file stdlib.h.

◆ _OUT_TO_STDERR

#define _OUT_TO_STDERR   1

Definition at line 111 of file stdlib.h.

◆ _PTR_LD

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

Definition at line 58 of file stdlib.h.

◆ _REPORT_ERRMODE

#define _REPORT_ERRMODE   3

Definition at line 113 of file stdlib.h.

◆ _WRITE_ABORT_MSG

#define _WRITE_ABORT_MSG   0x1

Definition at line 115 of file stdlib.h.

◆ _WSTDLIB_DEFINED

#define _WSTDLIB_DEFINED

Definition at line 816 of file stdlib.h.

◆ _WSTDLIBP_DEFINED

#define _WSTDLIBP_DEFINED

Definition at line 1249 of file stdlib.h.

◆ environ

#define environ   _environ

Definition at line 1348 of file stdlib.h.

◆ EXIT_FAILURE

#define EXIT_FAILURE   1

Definition at line 23 of file stdlib.h.

◆ EXIT_SUCCESS

#define EXIT_SUCCESS   0

Definition at line 22 of file stdlib.h.

◆ MB_CUR_MAX

#define MB_CUR_MAX   ___mb_cur_max_func()

Definition at line 90 of file stdlib.h.

◆ MB_LEN_MAX

#define MB_LEN_MAX   5

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 19 of file stdlib.h.

◆ onexit_t

#define onexit_t   _onexit_t

Definition at line 31 of file stdlib.h.

◆ RAND_MAX

#define RAND_MAX   0x7fff

Definition at line 87 of file stdlib.h.

◆ sys_errlist

#define sys_errlist   _sys_errlist

Definition at line 1346 of file stdlib.h.

◆ sys_nerr

#define sys_nerr   _sys_nerr

Definition at line 1347 of file stdlib.h.

Typedef Documentation

◆ _invalid_parameter_handler

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

Definition at line 125 of file stdlib.h.

◆ _onexit_t

typedef int(__cdecl * _onexit_t) (void)

Definition at line 28 of file stdlib.h.

◆ _purecall_handler

typedef void(__cdecl * _purecall_handler) (void)

Definition at line 120 of file stdlib.h.

◆ div_t

typedef struct _div_t div_t

◆ ldiv_t

Function Documentation

◆ ___mb_cur_max_func()

_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

◆ ___mb_cur_max_l_func()

_CRTIMP int __cdecl ___mb_cur_max_l_func ( _locale_t  )

◆ __declspec()

__declspec ( noreturn  )

Definition at line 19 of file noreturn.cpp.

21{
22 throw 1;
23}

◆ __doserrno()

_CRTIMP unsigned long *__cdecl __doserrno ( void  )

Definition at line 27 of file errno.c.

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

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

◆ __p___argc()

_CRTIMP int *__cdecl __p___argc ( )

Definition at line 475 of file getargs.c.

476{
477 return &__argc;
478}
int __argc
Definition: getargs.c:21

Referenced by Test___argc().

◆ __p___argv()

_CRTIMP char ***__cdecl __p___argv ( )

Definition at line 483 of file getargs.c.

484{
485 return &__argv;
486}
char ** __argv
Definition: getargs.c:18

Referenced by ok_argsA_imp(), and Test___argv().

◆ __p___wargv()

_CRTIMP wchar_t ***__cdecl __p___wargv ( )

Definition at line 491 of file getargs.c.

492{
493 return &__wargv;
494}
wchar_t ** __wargv
Definition: getargs.c:20

Referenced by ok_argsW_imp(), and Test___wargv().

◆ __p__environ()

_CRTIMP char ***__cdecl __p__environ ( )

Definition at line 384 of file environ.c.

385{
386 return &_environ;
387}
char ** _environ
Definition: environ.c:22

Referenced by getenv(), and Test__environ().

◆ __p__pgmptr()

_CRTIMP char **__cdecl __p__pgmptr ( )

Definition at line 454 of file environ.c.

455{
456 return &_pgmptr;
457}
char * _pgmptr
Definition: environ.c:27

Referenced by Test__pgmptr().

◆ __p__wenviron()

_CRTIMP wchar_t ***__cdecl __p__wenviron ( )

Definition at line 392 of file environ.c.

393{
394 return &_wenviron;
395}
wchar_t ** _wenviron
Definition: environ.c:23

Referenced by _wgetenv(), and Test__wenviron().

◆ __p__wpgmptr()

_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

Referenced by Test__wpgmptr().

◆ _aligned_free()

_CRTIMP void __cdecl _aligned_free ( _Pre_maybenull_ _Post_invalid_ void _Memory)

◆ _atodbl()

_Check_return_ _CRTIMP int __cdecl _atodbl ( _Out_ _CRT_DOUBLE _Result,
_In_z_ char _Str 
)

◆ _atodbl_l()

_Check_return_ _CRTIMP int __cdecl _atodbl_l ( _Out_ _CRT_DOUBLE _Result,
_In_z_ char _Str,
_In_opt_ _locale_t  _Locale 
)

◆ _atof_l()

_Check_return_ double __cdecl _atof_l ( _In_z_ const char _String,
_In_opt_ _locale_t  _Locale 
)

◆ _atoflt()

_Check_return_ _CRTIMP int __cdecl _atoflt ( _Out_ _CRT_FLOAT _Result,
_In_z_ char _Str 
)

◆ _atoflt_l()

_Check_return_ _CRTIMP int __cdecl _atoflt_l ( _Out_ _CRT_FLOAT _Result,
_In_z_ char _Str,
_In_opt_ _locale_t  _Locale 
)

◆ _atoi_l()

_Check_return_ _CRTIMP int __cdecl _atoi_l ( _In_z_ const char _Str,
_In_opt_ _locale_t  _Locale 
)

◆ _atol_l()

_Check_return_ _CRTIMP long __cdecl _atol_l ( _In_z_ const char _Str,
_In_opt_ _locale_t  _Locale 
)

◆ _atoldbl()

_Check_return_ _CRTIMP int __cdecl _atoldbl ( _Out_ _LDOUBLE _Result,
_In_z_ char _Str 
)

◆ _atoldbl_l()

_Check_return_ _CRTIMP int __cdecl _atoldbl_l ( _Out_ _LDOUBLE _Result,
_In_z_ char _Str,
_In_opt_ _locale_t  _Locale 
)

◆ _beep()

_CRTIMP __MINGW_ATTRIB_DEPRECATED void __cdecl _beep ( _In_ unsigned  _Frequency,
_In_ unsigned  _Duration 
)

◆ _byteswap_ulong()

_Check_return_ unsigned long __cdecl _byteswap_ulong ( _In_ unsigned long  _Long)

◆ _byteswap_ushort()

_Check_return_ unsigned short __cdecl _byteswap_ushort ( _In_ unsigned short  _Short)

◆ _ecvt()

_Check_return_ _CRTIMP char *__cdecl _ecvt ( _In_ double  _Val,
_In_ int  _NumOfDigits,
_Out_ int _PtDec,
_Out_ int _PtSign 
)

Referenced by test_xcvt().

◆ _Exit()

__CRT_INLINE void __cdecl _Exit ( int  status)

Definition at line 233 of file stdlib.h.

234 { _exit(status); }
void _exit(int exitcode)
Definition: _exit.c:25
Definition: ps.c:97

◆ _fcvt()

_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().

◆ _fullpath()

_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().

◆ _gcvt()

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

Referenced by test_gcvt().

◆ _get_doserrno()

errno_t __cdecl _get_doserrno ( _Out_ unsigned long _Value)

◆ _get_environ()

_CRTIMP errno_t __cdecl _get_environ ( _Out_ char ***  )

◆ _get_fmode()

_CRTIMP errno_t __cdecl _get_fmode ( _Out_ int _PMode)

◆ _get_invalid_parameter_handler()

_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

◆ _get_osplatform()

errno_t __cdecl _get_osplatform ( _Out_ unsigned int _Value)

◆ _get_osver()

errno_t __cdecl _get_osver ( _Out_ unsigned int _Value)

◆ _get_pgmptr()

_CRTIMP errno_t __cdecl _get_pgmptr ( _Outptr_result_z_ char **  _Value)

◆ _get_purecall_handler()

_CRTIMP _purecall_handler __cdecl _get_purecall_handler ( void  )

◆ _get_wenviron()

_CRTIMP errno_t __cdecl _get_wenviron ( _Out_ wchar_t ***  )

◆ _get_winmajor()

errno_t __cdecl _get_winmajor ( _Out_ unsigned int _Value)

◆ _get_winminor()

errno_t __cdecl _get_winminor ( _Out_ unsigned int _Value)

◆ _get_winver()

errno_t __cdecl _get_winver ( _Out_ unsigned int _Value)

◆ _get_wpgmptr()

_CRTIMP errno_t __cdecl _get_wpgmptr ( _Outptr_result_z_ wchar_t **  _Value)

◆ _itoa()

◆ _itow()

◆ _lrotl()

_Check_return_ unsigned long __cdecl _lrotl ( _In_ unsigned long  _Val,
_In_ int  _Shift 
)

◆ _lrotr()

_Check_return_ unsigned long __cdecl _lrotr ( _In_ unsigned long  _Val,
_In_ int  _Shift 
)

◆ _ltoa()

_CRTIMP char *__cdecl _ltoa ( _In_ long  _Value,
_Pre_notnull_ _Post_z_ char _Dest,
_In_ int  _Radix 
)

◆ _ltow()

_CRTIMP wchar_t *__cdecl _ltow ( _In_ long  _Value,
_Pre_notnull_ _Post_z_ wchar_t _Dest,
_In_ int  _Radix 
)

◆ _makepath()

_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().

◆ _mblen_l()

◆ _mbstowcs_l()

_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 
)

◆ _mbstrlen()

Referenced by test_mbcp().

◆ _mbstrlen_l()

_Check_return_ _CRTIMP size_t __cdecl _mbstrlen_l ( _In_z_ const char _Str,
_In_opt_ _locale_t  _Locale 
)

◆ _mbstrnlen_l()

_Check_return_ _CRTIMP size_t __cdecl _mbstrnlen_l ( _In_z_ const char _Str,
_In_ size_t  _MaxCount,
_In_opt_ _locale_t  _Locale 
)

◆ _mbtowc_l()

_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()

_onexit_t __cdecl _onexit ( _In_opt_ _onexit_t  _Func)

◆ _Post_writable_byte_size_() [1/3]

_Check_return_ _Ret_maybenull_ _Post_writable_byte_size_ ( _Count _Size)

◆ _Post_writable_byte_size_() [2/3]

_Check_return_ _Ret_maybenull_ _Post_writable_byte_size_ ( _NumOfElements *  _SizeOfElements)

◆ _Post_writable_byte_size_() [3/3]

_Check_return_ _Ret_maybenull_ _Post_writable_byte_size_ ( _Size  )

◆ _putenv()

◆ _rotl()

_Check_return_ unsigned int __cdecl _rotl ( _In_ unsigned int  _Val,
_In_ int  _Shift 
)

◆ _rotr()

_Check_return_ unsigned int __cdecl _rotr ( _In_ unsigned int  _Val,
_In_ int  _Shift 
)

◆ _searchenv()

_CRTIMP void __cdecl _searchenv ( _In_z_ const char _Filename,
_In_z_ const char _EnvVar,
_Pre_notnull_ _Post_z_ char _ResultPath 
)

◆ _set_abort_behavior()

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

Referenced by _assert().

◆ _set_doserrno()

errno_t __cdecl _set_doserrno ( _In_ unsigned long  _Value)

◆ _set_error_mode()

_Check_return_opt_ _CRTIMP int __cdecl _set_error_mode ( _In_ int  _Mode)

◆ _set_fmode()

_CRTIMP errno_t __cdecl _set_fmode ( _In_ int  _Mode)

◆ _set_invalid_parameter_handler()

_invalid_parameter_handler __cdecl _set_invalid_parameter_handler ( _In_opt_ _invalid_parameter_handler  _Handler)

◆ _set_purecall_handler()

_CRTIMP _purecall_handler __cdecl _set_purecall_handler ( _In_opt_ _purecall_handler  _Handler)

◆ _seterrormode()

◆ _sleep()

◆ _splitpath()

_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().

◆ _strtod_l()

_Check_return_ _CRTIMP double __cdecl _strtod_l ( _In_z_ const char _Str,
_Out_opt_ _Deref_post_z_ char **  _EndPtr,
_In_opt_ _locale_t  _Locale 
)

◆ _strtol_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 
)

◆ _strtoul_l()

_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_() [1/2]

_Success_ ( return = 0)

Definition at line 1028 of file fsctrl.c.

3189{
3191
3192 PVPB Vpb = Vcb->Vpb;
3193 PVPB OldVpb;
3194
3195 BOOLEAN Remount = FALSE;
3196
3197 PAGED_CODE();
3198
3199 UNREFERENCED_PARAMETER( IrpContext );
3200
3201 //
3202 // Check whether we are looking for a device only Mvcb.
3203 //
3204
3205 for (Link = CdData.VcbQueue.Flink;
3206 Link != &CdData.VcbQueue;
3207 Link = Link->Flink) {
3208
3209 *OldVcb = CONTAINING_RECORD( Link, VCB, VcbLinks );
3210
3211 //
3212 // Skip ourselves.
3213 //
3214
3215 if (Vcb == *OldVcb) { continue; }
3216
3217 //
3218 // Look at the Vpb and state of the previous Vcb.
3219 //
3220
3221 OldVpb = (*OldVcb)->Vpb;
3222
3223 if ((OldVpb != Vpb) &&
3224 (OldVpb->RealDevice == Vpb->RealDevice) &&
3225 ((*OldVcb)->VcbCondition == VcbNotMounted)) {
3226
3227 //
3228 // If the current disk is a raw disk then it can match a previous music or
3229 // raw disk.
3230 //
3231
3232 if (FlagOn( Vcb->VcbState, VCB_STATE_AUDIO_DISK)) {
3233
3234 if (FlagOn( (*OldVcb)->VcbState, VCB_STATE_AUDIO_DISK )) {
3235
3236 //
3237 // If we have both TOC then fail the remount if the lengths
3238 // are different or they don't match.
3239 //
3240
3241 if ((Vcb->TocLength != (*OldVcb)->TocLength) ||
3242 ((Vcb->TocLength != 0) &&
3243 !RtlEqualMemory( Vcb->CdromToc,
3244 (*OldVcb)->CdromToc,
3245 Vcb->TocLength ))) {
3246
3247 continue;
3248 }
3249
3250 Remount = TRUE;
3251 break;
3252 }
3253
3254 //
3255 // The current disk is not a raw disk. Go ahead and compare
3256 // serial numbers, volume label and TOC.
3257 //
3258
3259 }
3260 else if ((OldVpb->SerialNumber == Vpb->SerialNumber) &&
3261 (Vcb->TocLength == (*OldVcb)->TocLength) &&
3262 ((Vcb->TocLength == 0) || RtlEqualMemory( Vcb->CdromToc,
3263 (*OldVcb)->CdromToc,
3264 Vcb->TocLength )) &&
3265 (Vpb->VolumeLabelLength == OldVpb->VolumeLabelLength) &&
3266 (RtlEqualMemory( OldVpb->VolumeLabel,
3267 Vpb->VolumeLabel,
3268 Vpb->VolumeLabelLength ))) {
3269 //
3270 // Remember the old Vcb. Then set the return value to
3271 // TRUE and break.
3272 //
3273
3274 Remount = TRUE;
3275 break;
3276 }
3277 }
3278 }
3279
3280 return Remount;
3281}
#define PAGED_CODE()
unsigned char BOOLEAN
CD_DATA CdData
Definition: cddata.c:42
#define VCB_STATE_AUDIO_DISK
Definition: cdstruc.h:712
@ VcbNotMounted
Definition: cdstruc.h:490
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define FlagOn(_F, _SF)
Definition: ext2fs.h:179
IN OUT PVCB IN PDEVICE_OBJECT IN PVPB Vpb
Definition: fatprocs.h:1675
#define RtlEqualMemory(a, b, c)
Definition: kdvm.h:18
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define Vcb
Definition: cdprocs.h:1415
LIST_ENTRY VcbQueue
Definition: cdstruc.h:334
Definition: typedefs.h:120
struct _LIST_ENTRY * Flink
Definition: typedefs.h:121
Definition: cdstruc.h:498
Definition: iotypes.h:189
WCHAR VolumeLabel[MAXIMUM_VOLUME_LABEL_LENGTH/sizeof(WCHAR)]
Definition: iotypes.h:198
USHORT VolumeLabelLength
Definition: iotypes.h:193
ULONG SerialNumber
Definition: iotypes.h:196
struct _DEVICE_OBJECT * RealDevice
Definition: iotypes.h:195
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260
static int Link(const char **args)
Definition: vfdcmd.c:2414

◆ _Success_() [2/2]

_Success_ ( return  ,
 
) const

◆ _swab()

◆ _ultoa()

_CRTIMP char *__cdecl _ultoa ( _In_ unsigned long  _Value,
_Pre_notnull_ _Post_z_ char _Dest,
_In_ int  _Radix 
)

◆ _ultow()

◆ _wcstod_l()

◆ _wcstol_l()

_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 
)

◆ _wcstombs_l()

_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 
)

◆ _wcstoul_l()

_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 
)

◆ _wctomb_l()

_CRTIMP int __cdecl _wctomb_l ( _Pre_maybenull_ _Post_z_ char _MbCh,
_In_ wchar_t  _WCh,
_In_opt_ _locale_t  _Locale 
)

◆ _wfullpath()

_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 
)

◆ _wgetenv()

◆ _wmakepath()

_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().

◆ _wperror()

_CRTIMP void __cdecl _wperror ( _In_opt_z_ const wchar_t _ErrMsg)

◆ _wputenv()

_Check_return_ _CRTIMP int __cdecl _wputenv ( _In_z_ const wchar_t _EnvString)

Referenced by test__wenviron().

◆ _wsearchenv()

_CRTIMP void __cdecl _wsearchenv ( _In_z_ const wchar_t _Filename,
_In_z_ const wchar_t _EnvVar,
_Pre_notnull_ _Post_z_ wchar_t _ResultPath 
)

Referenced by test_searchenv().

◆ _wsplitpath()

◆ _wsystem()

_CRTIMP int __cdecl _wsystem ( _In_opt_z_ const wchar_t _Command)

◆ _wtof()

◆ _wtof_l()

◆ _wtoi()

◆ _wtoi_l()

_Check_return_ _CRTIMP int __cdecl _wtoi_l ( _In_z_ const wchar_t _Str,
_In_opt_ _locale_t  _Locale 
)

◆ _wtol()

◆ _wtol_l()

◆ abs()

int __cdecl abs ( _In_ int  _X)

◆ atexit()

int __cdecl atexit ( void(__cdecl *)(void func)

Definition at line 97 of file atonexit.c.

98{
99 return (_onexit((_onexit_t)func) == NULL) ? -1 : 0;
100}
_onexit_t __cdecl _onexit(_onexit_t func)
Definition: atonexit.c:53
#define NULL
Definition: types.h:112
GLenum func
Definition: glext.h:6028
int(__cdecl * _onexit_t)(void)
Definition: stdlib.h:28

Referenced by main(), openlog(), Test_atexit(), and xmlInitParser().

◆ atof()

◆ atoi()

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(), _tmain(), add_widl_version_define(), AddrStrToAddr(), BGStartCmd(), CC_CheckDigitsInEdit(), CmdLineParse(), Telnet::Connect(), CreateOutputFile(), DebugCmd(), demangle_datatype(), DissectArcPath(), DoSHIFTSTATE(), doWinMain(), DriveMapGetBiosDriveNumber(), DriveMapIsValidDriveString(), EditCustomBootReactOS(), 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_switch(), HCR_RegGetIconA(), HelpCmd(), I10_OUTPUT(), InfGetBinaryField(), InfGetIntField(), init(), init_leases_list(), InternetReadFile_test(), interpret(), iso9660_file_length(), isoname_endsok(), lineGetCountryA(), lineGetTranslateCapsA(), TMapLoader::LoadGlobal(), main(), metricfromreg(), name_to_codepage(), CDFParser::NextToken(), NSP_GetServiceByNameHeapAllocW(), OpenCmd(), 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(), TIFFFetchStripThing(), translate_line(), UnDosLine(), UnLslRLine(), UnMlsT(), us_t_UserMarshal(), value_get_dword_field(), wined3d_dll_init(), wined3d_parse_gl_version(), and WinLdrSetupEms().

◆ atol()

◆ atoll()

__MINGW_EXTENSION __CRT_INLINE long long __cdecl atoll ( const char _c)

Definition at line 1451 of file stdlib.h.

1451{ return _atoi64 (_c); }
__int64 CDECL _atoi64(const char *nptr)
Definition: atoi64.c:18

◆ bsearch()

_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 * 
)

◆ div()

_Check_return_ div_t __cdecl div ( _In_ int  _Numerator,
_In_ int  _Denominator 
)

◆ ecvt()

_Check_return_ _CRTIMP char *__cdecl ecvt ( _In_ double  _Val,
_In_ int  _NumOfDigits,
_Out_ int _PtDec,
_Out_ int _PtSign 
)

Referenced by ftoes(), and ftofs().

◆ fcvt()

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

Referenced by ftofs().

◆ free()

◆ gcvt()

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

Referenced by for(), and test_gcvt().

◆ getenv()

◆ itoa()

◆ labs()

long __cdecl labs ( _In_ long  _X)

◆ ldiv()

_Check_return_ ldiv_t __cdecl ldiv ( _In_ long  _Numerator,
_In_ long  _Denominator 
)

Referenced by inter_maxtoabs().

◆ llabs()

Definition at line 1435 of file stdlib.h.

1435{ return (_j >= 0 ? _j : -_j); }

Referenced by compute_location(), and eval_expression().

◆ lldiv()

◆ lltoa()

__MINGW_EXTENSION __CRT_INLINE char *__cdecl lltoa ( long long  _n,
char _c,
int  _i 
)

Definition at line 1452 of file stdlib.h.

1452{ return _i64toa (_n, _c, _i); }
char *CDECL _i64toa(__int64 value, char *string, int radix)
Definition: itoa.c:10

◆ lltow()

__MINGW_EXTENSION __CRT_INLINE wchar_t *__cdecl lltow ( long long  _n,
wchar_t _w,
int  _i 
)

Definition at line 1455 of file stdlib.h.

1455{ return _i64tow (_n, _w, _i); }
wchar_t *CDECL _i64tow(__int64 value, wchar_t *string, int radix)
Definition: itow.c:17

◆ ltoa()

_CRTIMP char *__cdecl ltoa ( _In_ long  _Val,
_Pre_notnull_ _Post_z_ char _DstBuf,
_In_ int  _Radix 
)

◆ mblen()

◆ mbstowcs()

◆ mbtowc()

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()

onexit_t __cdecl onexit ( _In_opt_ onexit_t  _Func)

◆ perror()

void __cdecl perror ( _In_opt_z_ const char _ErrMsg)

◆ putenv()

◆ qsort()

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 * 
)

◆ rand()

◆ srand()

◆ strtod()

◆ strtof()

float __cdecl strtof ( const char nptr,
char **  endptr 
)

◆ strtol()

◆ strtold()

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

Referenced by _atoldbl(), and TRIO_ARGS2().

◆ strtoll()

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

◆ strtoul()

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

◆ strtoull()

__MINGW_EXTENSION unsigned long long __cdecl strtoull ( const char __restrict__,
char **  __restrict__,
int  base 
)

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}
#define isspace(c)
Definition: acclib.h:69
#define isalpha(c)
Definition: acclib.h:74
#define isdigit(c)
Definition: acclib.h:68
#define ERANGE
Definition: acclib.h:92
#define isupper(c)
Definition: acclib.h:71
unsigned char
Definition: typeof.h:29
__kernel_size_t size_t
Definition: linux.h:237
GLdouble s
Definition: gl.h:2039
const GLubyte * c
Definition: glext.h:8905
#define ULLONG_MAX
Definition: limits.h:47
#define c
Definition: ke_i.h:80
#define long
Definition: qsort.c:33
errno_t __cdecl _set_errno(_In_ int _Value)

◆ swab()

_CRTIMP void __cdecl swab ( _Inout_updates_z_(_SizeInBytes) char _Buf1,
_Inout_updates_z_(_SizeInBytes) char _Buf2,
_In_ int  _SizeInBytes 
)

◆ system()

int __cdecl system ( _In_opt_z_ const char _Command)

◆ ulltoa()

__MINGW_EXTENSION __CRT_INLINE char *__cdecl ulltoa ( unsigned long long  _n,
char _c,
int  _i 
)

Definition at line 1453 of file stdlib.h.

1453{ return _ui64toa (_n, _c, _i); }
char *CDECL _ui64toa(unsigned __int64 value, char *string, int radix)
Definition: itoa.c:130

◆ ulltow()

__MINGW_EXTENSION __CRT_INLINE wchar_t *__cdecl ulltow ( unsigned long long  _n,
wchar_t _w,
int  _i 
)

Definition at line 1456 of file stdlib.h.

1456{ return _ui64tow (_n, _w, _i); }
wchar_t *CDECL _ui64tow(unsigned __int64 value, wchar_t *string, int radix)
Definition: itow.c:142

◆ ultoa()

_CRTIMP char *__cdecl ultoa ( _In_ unsigned long  _Val,
_Pre_notnull_ _Post_z_ char _Dstbuf,
_In_ int  _Radix 
)

◆ wcstod()

◆ wcstof()

float __cdecl wcstof ( const wchar_t nptr,
wchar_t **  endptr 
)

◆ wcstol()

_Check_return_ long __cdecl wcstol ( _In_z_ const wchar_t _Str,
_Out_opt_ _Deref_post_z_ wchar_t **  _EndPtr,
_In_ int  _Radix 
)

◆ wcstold()

long double __cdecl wcstold ( const wchar_t __restrict__,
wchar_t **  __restrict__ 
)

◆ wcstombs()

◆ wcstoul()

_Check_return_ unsigned long __cdecl wcstoul ( _In_z_ const wchar_t _Str,
_Out_opt_ _Deref_post_z_ wchar_t **  _EndPtr,
_In_ int  _Radix 
)

Referenced by _LocalOpenPrinterHandle(), AddNewLayout(), ArcGetNextTokenU(), BiEnumerateElements(), cmdAccounts(), cmdUser(), convert_hex_csv_to_hex(), convert_hex_to_dword(), CreateKeyboardLayoutList(), CreateLogicalPartition(), CreatePrimaryPartition(), do_process_key(), ATL::CRegObject::do_process_key(), do_reg_operation(), DoParse(), DosStart(), DWORDfromString(), FontProc(), FontSizeList_GetSelectedFontSize(), GeneralPropertyPageLocalesEnumProc(), get_regdata(), CicProfile::GetCodePageA(), GetDeviceLocationString(), GetDWordValue(), GetHKLSubstitute(), GetLPTTransmissionRetryTimeout(), GetProfiles(), GetSpecialKLID(), GetTimeZoneListIndex(), GetULONG(), GetUsedPorts(), HTTP_HttpQueryInfoW(), HTTP_ParseDateAsAsctime(), HTTP_ParseRfc1123Date(), HTTP_ParseRfc850Date(), HTTP_ParseTime(), HTTP_ProcessExpires(), ImageFile_ParseCmdline(), InitializeDefaultUserLocale(), InitializeGlobalJobList(), InitTTFontCache(), IntLoadKeyboardLayout(), IsLayoutExists(), KLIDFromSpecialHKL(), LoadCurrentLocale(), LocalesEnumProc(), MAIN_LoadSettings(), mciSendStringW(), modify_dword_dlgproc(), NtPathToDiskPartComponents(), ObjectFromLresult(), OLEUTL_ReadRegistryDWORDValue(), parse_data_type(), ParseCmdline(), ParseCmdLine(), ParseCommandLine(), ParseDaysOfMonth(), ParseId(), CConfiguration::ParseParameters(), ParseSetupInf(), ParseTime(), ProcessCommandLine(), ProcessDisplayRegistry(), ProcessKeyboardLayoutRegistry(), ReadSZFlagsFromRegistry(), SampFillUserDisplayCache(), SamrGetAliasMembership(), SelectDisk(), SelectPartition(), SelectVolume(), setid_main(), SortEnumProc(), SortTestEnumProc(), StrToColorref(), Test_KLID(), UnescapeHex(), UnescapeOther(), UniqueIdDisk(), UpdateKBLayout(), UpdateRegistry(), VarDateFromStr(), wmain(), and wWinMain().

◆ wctomb()

int __cdecl wctomb ( _Out_writes_opt_z_(MB_LEN_MAX) char _MbCh,
_In_ wchar_t  _WCh 
)

◆ wtoll()

__MINGW_EXTENSION __CRT_INLINE long long __cdecl wtoll ( const wchar_t _w)

Definition at line 1454 of file stdlib.h.

1454{ return _wtoi64 (_w); }
__int64 CDECL _wtoi64(const wchar_t *str)
Definition: wtoi64.c:34

Variable Documentation

◆ __argc

_CRTIMP int __argc
extern

◆ __argv

_CRTIMP char** __argv
extern

Definition at line 18 of file getargs.c.

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

◆ __mb_cur_max

_CRTIMP int __mb_cur_max
extern

Definition at line 37 of file locale.c.

◆ __wargv

_CRTIMP wchar_t** __wargv
extern

Definition at line 20 of file getargs.c.

Referenced by __p___wargv(), __wgetmainargs(), MainWndProc(), Test___wargv(), wadd(), and wWinMain().

◆ _Alignment

Definition at line 745 of file stdlib.h.

◆ _Count

Definition at line 721 of file stdlib.h.

◆ _environ

_CRTIMP char** _environ
extern

Definition at line 22 of file environ.c.

◆ _fmode

_CRTIMP int _fmode
extern

Definition at line 4 of file fmode.c.

Referenced by __p__fmode(), _tpopen(), main(), and Test__fmode().

◆ _MaxCount

_In_ size_t _MaxCount

Definition at line 508 of file stdlib.h.

◆ _NewSize

_In_ size_t _NewSize

Definition at line 710 of file stdlib.h.

◆ _Offset

◆ _osplatform

_CRTIMP unsigned int _osplatform
extern

Definition at line 10 of file environ.c.

Referenced by _get_osplatform().

◆ _osver

_CRTIMP unsigned int _osver
extern

Definition at line 11 of file environ.c.

Referenced by __p__osver().

◆ _pgmptr

_CRTIMP char* _pgmptr
extern

Definition at line 27 of file environ.c.

Referenced by Test__pgmptr().

◆ _Size

Definition at line 722 of file stdlib.h.

◆ _SizeOfElements

Definition at line 687 of file stdlib.h.

◆ _sys_errlist

_CRTIMP char* _sys_errlist[]
extern

◆ _sys_nerr

_CRTIMP int _sys_nerr
extern

◆ _wenviron

_CRTIMP wchar_t** _wenviron
extern

Definition at line 23 of file environ.c.

◆ _winmajor

_CRTIMP unsigned int _winmajor
extern

Definition at line 13 of file environ.c.

Referenced by __p__winmajor().

◆ _winminor

_CRTIMP unsigned int _winminor
extern

Definition at line 12 of file environ.c.

Referenced by __p__winminor().

◆ _winver

_CRTIMP unsigned int _winver
extern

Definition at line 14 of file environ.c.

Referenced by __p__winver().

◆ _wpgmptr

_CRTIMP wchar_t* _wpgmptr
extern

Definition at line 29 of file environ.c.

Referenced by Test__wpgmptr().