@ cdecl __RTDynamicCast(ptr long ptr ptr long) MSVCRT___RTDynamicCast
@ cdecl __RTtypeid(ptr) MSVCRT___RTtypeid
@ cdecl __STRINGTOLD(ptr ptr str long)
-# @ cdecl ___lc_codepage_func()
+@ cdecl ___lc_codepage_func()
# @ cdecl ___lc_collate_cp_func()
-# @ cdecl ___lc_handle_func()
+@ cdecl ___lc_handle_func()
# @ cdecl ___mb_cur_max_func() MSVCRT___mb_cur_max_func
@ cdecl ___setlc_active_func()
@ cdecl ___unguarded_readlc_active_add_func()
@ cdecl __crtCompareStringA(long long str long str long) kernel32.CompareStringA
@ cdecl __crtCompareStringW(long long wstr long wstr long) kernel32.CompareStringW
@ cdecl __crtGetLocaleInfoW(long long ptr long) kernel32.GetLocaleInfo
-@ cdecl __crtGetStringTypeW(long long wstr long ptr) kernel32.GetStringTypeW
+@ cdecl __crtGetStringTypeW(long long wstr long ptr)
@ cdecl __crtLCMapStringA(long long str long ptr long long long)
# stub __crtLCMapStringW
@ cdecl __dllonexit(ptr ptr ptr)
@ cdecl __doserrno() __doserrno
@ cdecl __fpecode()
-@ stub __get_app_type
+@ cdecl __get_app_type()
@ cdecl __getmainargs(ptr ptr ptr long ptr)
@ extern __initenv __initenv
@ cdecl __iob_func() __p__iob
@ cdecl __isascii(long) __isascii
@ cdecl __iscsym(long) __iscsym
@ cdecl __iscsymf(long) __iscsymf
-@ extern __lc_codepage __lc_codepage
-@ stub __lc_collate
-@ extern __lc_collate_cp __lc_collate_cp
-@ extern __lc_handle __lc_handle
+@ extern __lc_codepage MSVCRT___lc_codepage
+# @ stub __lc_collate # not in XP / 7
+@ extern __lc_collate_cp MSVCRT___lc_collate_cp
+@ extern __lc_handle MSVCRT___lc_handle
@ cdecl __lconv_init()
# stub __libm_sse2_acos
# stub __libm_sse2_acosf
@ cdecl -arch=i386 __p__daylight()
@ cdecl -arch=i386 __p__dstbias()
@ cdecl -arch=i386 __p__environ()
-@ stub -arch=i386 __p__fileinfo #()
+@ cdecl -arch=i386 __p__fileinfo()
@ cdecl -arch=i386 __p__fmode()
@ cdecl -arch=i386 __p__iob()
-@ stub -arch=i386 __p__mbcasemap #()
+@ cdecl -arch=i386 __p__mbcasemap()
@ cdecl -arch=i386 __p__mbctype()
@ cdecl -arch=i386 __p__osver()
@ cdecl -arch=i386 __p__pctype() __pctype_func
# stub _aligned_realloc_dbg
@ cdecl _amsg_exit(long)
@ cdecl _assert(str str long)
-@ stub _atodbl #(ptr str)
+@ cdecl _atodbl(ptr str)
# stub _atodbl_l
# @ cdecl _atof_l(str ptr)
# stub _atoflt_l
@ cdecl _fgetchar()
@ cdecl _fgetwchar()
@ cdecl _filbuf(ptr)
-# extern _fileinfo
+@ extern _fileinfo
@ cdecl _filelength(long)
@ cdecl -ret64 _filelengthi64(long)
@ cdecl _fileno(ptr)
# stub _ftime32_s
@ cdecl _ftime64(ptr)
# stub _ftime64_s
-@ cdecl -ret64 _ftol()
-@ cdecl -ret64 _ftol2() _ftol
-@ cdecl -ret64 _ftol2_sse() _ftol #FIXME: SSE variant should be implemented
+@ cdecl -arch=i386 -ret64 _ftol()
+@ cdecl -arch=i386 -ret64 _ftol2() _ftol
+@ cdecl -arch=i386 -ret64 _ftol2_sse() _ftol #FIXME: SSE variant should be implemented
# stub _ftol2_sse_excpt
@ cdecl _fullpath(ptr str long)
# stub _fullpath_dbg
# stub _get_winminor
# stub _get_winver
# stub _get_wpgmptr
-@ stub _get_terminate
-@ stub _get_unexpected
+# @ stub _get_terminate # not in XP / 7
+# @ stub _get_unexpected # not in XP / 7
@ cdecl _getch()
@ cdecl _getche()
@ cdecl _getcwd(str long)
@ cdecl _heapchk()
@ cdecl _heapmin()
@ cdecl _heapset(long)
-@ stub _heapused #(ptr ptr)
+# @ stub _heapused #(ptr ptr) # not in XP / 7
@ cdecl _heapwalk(ptr)
@ cdecl _hypot(double double)
@ cdecl _i64toa(long long ptr long)
# stub _i64tow_s
@ cdecl _initterm(ptr ptr)
# stub _initterm_e
-@ stub _inp #(long) -i386
-@ stub _inpd #(long) -i386
-@ stub _inpw #(long) -i386
-# @ cdecl _invalid_parameter(wstr wstr wstr long long)
+@ cdecl -arch=i386 _inp(long)
+@ cdecl -arch=i386 _inpd(long)
+@ cdecl -arch=i386 _inpw(long)
+@ cdecl _invalid_parameter(wstr wstr wstr long long)
@ extern _iob
# stub _isalnum_l
# stub _isalpha_l
# stub _ismbbkalnum_l
@ cdecl _ismbbkana(long)
# stub _ismbbkana_l
-@ stub _ismbbkprint #(long)
+@ cdecl _ismbbkprint(long)
# stub _ismbbkprint_l
-@ stub _ismbbkpunct #(long)
+@ cdecl _ismbbkpunct(long)
# stub _ismbbkpunct_l
@ cdecl _ismbblead(long)
# stub _ismbblead_l
@ cdecl _ltow(long ptr long)
# stub _ltow_s
@ cdecl _makepath(ptr str str str str)
-# stub _makepath_s
+@ cdecl _makepath_s(ptr long str str str str)
# stub _malloc_dbg
-@ cdecl _matherr(ptr)
@ cdecl _mbbtombc(long)
# stub _mbbtombc_l
@ cdecl _mbbtype(long long)
-# extern _mbcasemap
+@ extern _mbcasemap
@ cdecl _mbccpy (str str)
# stub _mbccpy_l
# stub _mbccpy_s
@ cdecl _onexit(ptr)
@ varargs _open(str long)
@ cdecl _open_osfhandle(long long)
-# stub _osplatform
+@ extern _osplatform _osplatform
@ extern _osver _osver
-@ stub _outp #(long long)
-@ stub _outpd #(long long)
-@ stub _outpw #(long long)
+@ cdecl _outp(long long)
+@ cdecl _outpd(long long)
+@ cdecl _outpw(long long)
@ cdecl _pclose (ptr)
@ extern _pctype _pctype
@ extern _pgmptr _pgmptr
# stub _set_output_format
@ cdecl _set_sbh_threshold(long)
@ cdecl _seterrormode(long)
-@ cdecl -arch=i386,x86_64 -norelay _setjmp(ptr)
+@ cdecl -arch=i386,x86_64 -norelay _setjmp(ptr ptr)
@ cdecl -arch=i386 -norelay _setjmp3(ptr long)
@ cdecl -arch=x86_64 -norelay _setjmpex(ptr ptr)
@ cdecl _setmaxstdio(long)
# stub _winput_s
@ extern _winver
@ cdecl _wmakepath(wstr wstr wstr wstr wstr)
-# stub _wmakepath_s
+@ cdecl _wmakepath_s(ptr long wstr wstr wstr wstr)
@ cdecl _wmkdir(wstr)
@ cdecl _wmktemp(wstr)
# stub _wmktemp_s
@ varargs _wopen(wstr long)
# stub _woutput_s
-@ stub _wperror #(wstr)
+@ cdecl _wperror(wstr)
@ extern _wpgmptr
@ cdecl _wpopen (wstr wstr)
# stub _wprintf_l
# @ cdecl btowc(long)
@ cdecl calloc(long long)
@ cdecl ceil(double)
+@ cdecl -arch=x86_64 ceilf(double)
@ cdecl clearerr(ptr)
# stub clearerr_s
@ cdecl clock()
@ cdecl cos(double)
+@ cdecl -arch=x86_64 cosf(double)
@ cdecl cosh(double)
@ cdecl ctime(ptr)
@ cdecl difftime(long long)
@ cdecl localtime(ptr)
@ cdecl log(double)
@ cdecl log10(double)
+@ cdecl -arch=x86_64 logf(double)
@ cdecl -i386 longjmp(ptr long)
@ cdecl malloc(long)
@ cdecl mblen(ptr long)
@ cdecl memchr(ptr long long)
@ cdecl memcmp(ptr ptr long)
@ cdecl memcpy(ptr ptr long)
-# @ cdecl memcpy_s(ptr long ptr long) memmove_s
+@ cdecl memcpy_s(ptr long ptr long) memmove_s
@ cdecl memmove(ptr ptr long)
-# @ cdecl memmove_s(ptr long ptr long)
+@ cdecl memmove_s(ptr long ptr long)
@ cdecl memset(ptr long long)
@ cdecl mktime(ptr)
@ cdecl modf(double ptr)
# stub qsort_s
@ cdecl raise(long)
@ cdecl rand()
-# @ cdecl rand_s(ptr)
+@ cdecl rand_s(ptr)
@ cdecl realloc(ptr long)
@ cdecl remove(str)
@ cdecl rename(str str)
@ varargs scanf(str)
# @ varargs scanf_s(str)
@ cdecl setbuf(ptr ptr)
-@ cdecl -arch=x86_64 -norelay -private setjmp(ptr)
+@ cdecl -arch=x86_64 -norelay -private setjmp(ptr ptr) _setjmp
@ cdecl setlocale(long str)
@ cdecl setvbuf(ptr str long long)
@ cdecl signal(long long)
@ varargs wscanf(wstr)
# @ varargs wscanf_s(wstr)
+# Functions not exported in native dll:
+@ cdecl _get_invalid_parameter_handler()
+@ cdecl _set_invalid_parameter_handler(ptr)