crt: msvcr80.def.in: Remove symbols not present in msvcr80.dll library

Symbols __p__fileinfo, _ctype, _fileinfo, _ftime, _futime, _mbscat,
_mbscpy, _mbsdup, _strcmpi, _utime, _wutime, difftime, swprintf, vswprintf,
__buffer_overrun, __security_error_handler, __set_buffer_overrun_handler,
_set_security_error_handler and _wctype are not present in any variant of
msvcr80.dll library. So they are not usable in the current form.

Symbols _ftime, _futime, _utime, _wutime, difftime and _strcmpi can be
defined as aliases to other existing symbols. For I386 time functions is
used 32-bit time_t, for X64 time functions is used 64-bit time_t, like in
other msvcr*.dll libraries.

Functions swprintf() and vswprintf() have already replacement inline
variants defined in header file <swprintf.inl>.

Functions __ms_swprintf() and __ms_vswprintf() are defined without size_t
argument, which corresponds to msvcr80.dll's _swprintf() and _vswprintf()
functions. So add appropriate aliases.

But remaining symbols __p__fileinfo, _ctype, _fileinfo, _mbscat, _mbscpy,
_mbsdup and _wctype do not have replacement, so completely remove them from
msvcr80.def.in files.

Also I386 symbols __buffer_overrun, __security_error_handler,
__set_buffer_overrun_handler and _set_security_error_handler do not have
any replacement, so remove them too.

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Pali Rohár 2024-04-08 19:38:23 +02:00 committed by Martin Storsjö
parent e0426704cc
commit 90bc2fcd42
2 changed files with 16 additions and 36 deletions

View File

@ -208,7 +208,6 @@ __p__commode
__p__daylight
__p__dstbias
__p__environ
__p__fileinfo
__p__fmode
__p__iob
__p__mbctype
@ -285,7 +284,6 @@ _cprintf
_cputs
_creat
_cscanf
_ctype DATA
_cwait
_daylight DATA
_difftime32
@ -317,7 +315,6 @@ _fdopen
_fgetchar
_fgetwchar
_filbuf
_fileinfo DATA
_filelength
_filelengthi64
_fileno
@ -346,10 +343,10 @@ _fstati64 == _fstat32i64
_fstat32i64
_fstat64
_fstat64i32
_ftime
_ftime == _ftime32
_ftol
_fullpath
_futime
_futime == _futime32
_gcvt
_get_osfhandle
_get_sbh_threshold
@ -449,14 +446,11 @@ _mbctombb
_mbctoupper
_mbctype DATA
_mbsbtype
_mbscat
_mbschr
_mbscmp
_mbscoll
_mbscpy
_mbscspn
_mbsdec
_mbsdup
_mbsicmp
_mbsicoll
_mbsinc
@ -559,7 +553,7 @@ _stat32i64
_stat64
_stat64i32
_statusfp
_strcmpi
_strcmpi == _stricmp
_strdate
_strdup
_strerror
@ -596,7 +590,7 @@ _unlink
_unloaddll
_unlock
_unlock_file
_utime
_utime == _utime32
_vsnprintf
_vsnwprintf
_waccess
@ -686,7 +680,7 @@ _wtoi
_wtoi64
_wtol
_wunlink
_wutime
_wutime == _wutime32
_y0
_y1
_yn
@ -735,7 +729,7 @@ cos DATA
cosh
_ctime32
ctime == _ctime32
difftime
difftime == _difftime32
div
exit
exp DATA
@ -882,8 +876,6 @@ strtok
strtol
strtoul
strxfrm
swprintf
__ms_swprintf == swprintf
swscanf
__ms_swscanf == swscanf
system
@ -908,8 +900,6 @@ vprintf
__ms_vprintf == vprintf
vsprintf
__ms_vsprintf == vsprintf
vswprintf
__ms_vswprintf == vswprintf
vwprintf
__ms_vwprintf == vwprintf
wcscat
@ -960,7 +950,6 @@ _wfindfirst64
_wfindnext64
_wutime64
; msvcr70.dll amd later
__buffer_overrun
__CxxDetectRethrow
__CxxExceptionFilter
__CxxQueryExceptionSize
@ -968,8 +957,6 @@ __CxxRegisterExceptionObject
__CxxUnregisterExceptionObject
__DestructExceptionObject
__lc_clike
__security_error_handler
__set_buffer_overrun_handler
__uncaught_exception
__wcserror
_aligned_free
@ -988,7 +975,6 @@ _putwch
_resetstkoflw
_scprintf
_scwprintf
_set_security_error_handler
_snscanf
_snwscanf
_strtoi64
@ -1004,7 +990,6 @@ _wassert
_wcserror
_wcstoi64
_wcstoui64
_wctype
_wtof
___lc_codepage_func
___lc_collate_cp_func
@ -1428,6 +1413,7 @@ _strupr_s
_strupr_s_l
_strxfrm_l
_swprintf
__ms_swprintf == _swprintf
_swprintf_c
_swprintf_p
_swprintf_p_l
@ -1487,6 +1473,7 @@ _vsprintf_p
_vsprintf_p_l
_vsprintf_s_l
_vswprintf
__ms_vswprintf == _vswprintf
_vswprintf_c
_vswprintf_c_l
_vswprintf_l

View File

@ -259,7 +259,6 @@ _creat
_cscanf
_ctime64
ctime == _ctime64
_ctype
_cwait
_cwprintf
_cwscanf
@ -291,7 +290,6 @@ _fdopen
_fgetchar
_fgetwchar
_filbuf
_fileinfo DATA
_filelength
_filelengthi64
_fileno
@ -323,10 +321,10 @@ _fstati64 == _fstat64
_fstat64
_fstat32i64
_fstat64i32
_ftime
_ftime == _ftime64
_ftime64
_fullpath
_futime
_futime == _futime64
_futime64
_gcvt
_get_heap_handle
@ -432,14 +430,11 @@ _mbctombb
_mbctoupper
_mbctype DATA
_mbsbtype
_mbscat
_mbschr
_mbscmp
_mbscoll
_mbscpy
_mbscspn
_mbsdec
_mbsdup
_mbsicmp
_mbsicoll
_mbsinc
@ -547,7 +542,7 @@ _stat64
_stat32i64
_stat64i32
_statusfp
_strcmpi
_strcmpi == _stricmp
_strdate
_strdup
_strerror
@ -593,7 +588,7 @@ _unlink
_unloaddll
_unlock
_unlock_file
_utime
_utime == _utime64
_utime64
_vscprintf
_vscwprintf
@ -695,7 +690,7 @@ _wtoi
_wtoi64
_wtol
_wunlink
_wutime
_wutime == _wutime64
_wutime64
_y0
_y1
@ -750,7 +745,7 @@ cosf
cosh
coshf
_ctime32
difftime
difftime == _difftime64
div
exit
exp DATA
@ -904,8 +899,6 @@ strtok
strtol
strtoul
strxfrm
swprintf
__ms_swprintf == swprintf
swscanf
__ms_swscanf == swscanf
system
@ -929,8 +922,6 @@ vprintf
__ms_vprintf == vprintf
vsprintf
__ms_vsprintf == vsprintf
vswprintf
__ms_vswprintf == vswprintf
vwprintf
__ms_vwprintf == vwprintf
wcscat
@ -1374,6 +1365,7 @@ _strupr_s
_strupr_s_l
_strxfrm_l
_swprintf
__ms_swprintf == _swprintf
_swprintf_c
_swprintf_p
_swprintf_p_l
@ -1433,6 +1425,7 @@ _vsprintf_p
_vsprintf_p_l
_vsprintf_s_l
_vswprintf
__ms_vswprintf == _vswprintf
_vswprintf_c
_vswprintf_c_l
_vswprintf_l