2009-12-03 Jonathan Yong <jon_y@users.sourceforge.net>
* conio.h (_cgets): Warn about security deprecations.
(_cscanf): ditto.
(_cscanf_l): ditto.
(_cgetws): ditto.
(_cwscanf): ditto.
(_cwscanf_l): ditto.
* float.h (_controlfp): Warn about security deprecations.
* io.h (_chsize): Warn about security deprecations.
(_creat): ditto.
(_mktemp): ditto.
(_umask): ditto.
(_open): ditto.
(_sopen): ditto.
(_wcreat): ditto.
(_wmktemp): ditto.
(_wopen): ditto.
(_wsopen): ditto.
* malloc.h (_alloca): Warn about security deprecations.
* mbctype.h (_mbccpy): New, Warn about security deprecations.
(_mbccpy_l): ditto.
* mbstring.h (_mbsnbcat): Warn about security deprecations.
(_mbsnbcat_l): ditto.
(_mbsnbcpy): ditto.
(_mbsnbcpy_l): ditto.
(_mbsnbset): ditto.
(_mbsnbset_l): ditto.
(_mbsncat): ditto.
(_mbsncat_l): ditto.
(_mbsncpy): ditto.
(_mbsncpy_l): ditto.
(_mbsnset): ditto.
(_mbsnset_l): ditto.
(_mbsset): ditto.
(_mbsset_l): ditto.
(_mbstok): ditto.
(_mbstok_l): ditto.
(_mbsupr): ditto.
(_mbsupr_l): ditto.
(_mbccpy): ditto.
(_mbccpy_l): ditto.
* memory.h (memcpy): Warn about security deprecations.
* stdio.h (fopen): Warn about security deprecations.
(freopen): ditto.
(fscanf): ditto.
(_fscanf_l): ditto.
(fseeko64): ditto.
(gets): ditto.
(scanf): ditto.
(_scanf_l): ditto.
(setbuf): ditto.
(sscanf): ditto.
(_sscanf_l): New, Warn about security deprecations.
(_snscanf): Warn about security deprecations.
(_snscanf_l): New, Warn about security deprecations.
(tmpfile): Warn about security deprecations.
(vsnprintf): ditto.
(_snprintf): ditto.
(_snprintf_l): New, Warn about security deprecations.
(_vsnprintf): Warn about security deprecations.
(_vsnprintf_l): New, Warn about security deprecations.
(sprintf): Warn about security deprecations.
(_sprintf_l): New, Warn about security deprecations.
(vsprintf): Warn about security deprecations.
(_getws): Ditto.
(swprintf): Ditto.
(_swprintf_l): New, Warn about security deprecations.
(vswprintf): Warn about security deprecations.
(_snwprintf): Ditto.
(_vsnwprintf): Ditto.
(_vsnwprintf_l): New, Warn about security deprecations.
(snwprintf): Warn about security deprecations.
(vsnwprintf): Ditto.
(_fwprintf_p): New.
(_wprintf_p): New.
(_vfwprintf_p): New.
(_vwprintf_p): New.
(_swprintf_p): New.
(_vswprintf_p): New.
(_scwprintf_p): New.
(_vscwprintf_p): New.
(_wprintf_l): New.
(_wprintf_p_l): New.
(_vwprintf_l): New.
(_vwprintf_p_l): New.
(_fwprintf_l): New.
(_fwprintf_p_l): New.
(_vfwprintf_l): New.
(_vfwprintf_p_l): New.
(_swprintf_c_l): New.
(_swprintf_p_l): New.
(_vswprintf_c_l): New.
(_vswprintf_p_l): New.
(_scwprintf_l): New.
(_scwprintf_p_l): New.
(_vscwprintf_p_l): New.
(_snwprintf_l): New.
(_vsnwprintf_l): New.
(__swprintf_l): New.
(_vswprintf_l): New.
(_vscwprintf_l): New.
(fwscanf): Warn about security deprecations.
(_fwscanf_l): New, Warn about security deprecations.
(swscanf): Warn about security deprecations.
(_swscanf_l): New, Warn about security deprecations.
(_snwscanf_l): Ditto.
(wscanf): Warn about security deprecations.
(_wfopen): Ditto.
(_wfreopen): Ditto.
* stdlib.h (getenv): Warn about security deprecations.
(_i64toa): Ditto.
(_ui64toa): Ditto.
(_ltoa): Ditto.
(_ultoa): Ditto.
(wctomb): Ditto.
(_wctomb_l): Ditto.
(wcstombs): Ditto.
(_wcstombs_l): Ditto.
(_itow): Ditto.
(_ltow): Ditto.
(_ultow): Ditto.
(_wgetenv): Ditto.
(_i64tow): Ditto.
(_ui64tow): Ditto.
(_ecvt): Ditto.
(_fcvt): Ditto.
(_gcvt): Ditto.
(_searchenv): Ditto.
(_splitpath): Ditto.
(_wsearchenv): Ditto.
(_wsplitpath): Ditto.
* string.h (memcpy): Warn about security deprecations.
(_strset): Ditto.
(_strset_l): New, Warn about security deprecations.
(memmove): Warn about security deprecations.
(_strerror): Ditto.
(strerror): Ditto.
(_strlwr): Ditto.
(strlwr_l): Ditto.
(strncat): Ditto.
(strncpy): Ditto.
(_strnset): Ditto.
(_strnset_l): New, Warn about security deprecations.
(strtok): Warn about security deprecations.
(_strupr): Ditto.
(_strupr_l): Ditto.
(wcscat): Ditto.
(wcscpy): Ditto.
(wcsncat): Ditto.
(_wcsncpy_l): New, Warn about security deprecations.
(wcstok): Warn about security deprecations.
(_wcserror): Ditto.
(__wcserror): Ditto.
(_wcsnset): Ditto.
(_wcsset): Ditto.
(_wcslwr): Ditto.
(_wcslwr_l): Ditto.
(_wcsupr): Ditto.
(_wcsupr_l): Ditto.
* time.h (asctime): Warn about security deprecations.
(_ctime32): Ditto.
(_gmtime32): Ditto.
(_localtime32): Ditto.
(_strdate): Ditto.
(_strtime): Ditto.
(_ctime64): Ditto.
(_gmtime64): Ditto.
(_localtime64): Ditto.
(_wctime32): Ditto.
(_wstrdate): Ditto.
(_wstrtime): Ditto.
(_wctime64): Ditto.
(_wctime): Ditto.
(ctime): Ditto.
(gmtime): Ditto.
(localtime): Ditto.
* wchar.h (_wcreat): Warn about security deprecations.
(_wmktemp): Ditto.
(_wopen): Ditto.
(_wsopen): Ditto.
(_cgetws): Ditto.
(_getws): Ditto.
(swprintf): Ditto.
(_swprintf_l): New, Warn about security deprecations.
(vswprintf): Warn about security deprecations.
(_snwprintf): Ditto.
(_vsnwprintf): Ditto.
(_vsnwprintf_l): New, Warn about security deprecations.
(__swprintf_l): Warn about security deprecations.
(_vswprintf_l):
(fwscanf): Warn about security deprecations.
(_fwscanf_l): Ditto.
(swscanf): Ditto.
(_swscanf_l): Ditto.
(_wfopen): Ditto.
(_wfreopen): Ditto.
(_itow): Ditto.
(_ltow): Ditto.
(_ultow): Ditto.
(_wgetenv): Ditto.
(_i64tow): Ditto.
(_wsearchenv): Ditto.
(_wsplitpath): Ditto.
(wcscat): Ditto.
(wcscpy): Ditto.
(wcsncat): Ditto.
(wcsncpy): Ditto.
(_wcsncpy_l): New, Warn about security deprecations.
(wcstok): Warn about security deprecations.
(_wcserror): Ditto.
(__wcserror): Ditto.
(_wcsnset): Ditto.
(_wcsset): Ditto.
(_wcslwr): Ditto.
(_wcslwr_l): Ditto.
(_wcsupr): Ditto.
(_wcsupr_l): Ditto.
(_wstrdate): Ditto.
(_wstrtime): Ditto.
(_wctime64): Ditto.
(mbsrtowcs): Ditto.
(wcrtomb): Ditto.
(wcsrtombs): Ditto.
(wmemcpy): Ditto.
(wmemmove): Ditto.
(memcpy): Ditto.
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@1596 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-headers/crt/stdlib.h b/mingw-w64-headers/crt/stdlib.h
index a9155e6..e2ef8f7 100644
--- a/mingw-w64-headers/crt/stdlib.h
+++ b/mingw-w64-headers/crt/stdlib.h
@@ -350,10 +350,10 @@
/*unsigned long __cdecl _byteswap_ulong (unsigned long _Long); */
__MINGW_EXTENSION unsigned __int64 __cdecl _byteswap_uint64(unsigned __int64 _Int64);
div_t __cdecl div(int _Numerator,int _Denominator);
- char *__cdecl getenv(const char *_VarName);
+ char *__cdecl getenv(const char *_VarName) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
_CRTIMP char *__cdecl _itoa(int _Value,char *_Dest,int _Radix);
- __MINGW_EXTENSION _CRTIMP char *__cdecl _i64toa(__int64 _Val,char *_DstBuf,int _Radix);
- __MINGW_EXTENSION _CRTIMP char *__cdecl _ui64toa(unsigned __int64 _Val,char *_DstBuf,int _Radix);
+ __MINGW_EXTENSION _CRTIMP char *__cdecl _i64toa(__int64 _Val,char *_DstBuf,int _Radix) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
+ __MINGW_EXTENSION _CRTIMP char *__cdecl _ui64toa(unsigned __int64 _Val,char *_DstBuf,int _Radix) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
__MINGW_EXTENSION _CRTIMP __int64 __cdecl _atoi64(const char *_String);
__MINGW_EXTENSION _CRTIMP __int64 __cdecl _atoi64_l(const char *_String,_locale_t _Locale);
__MINGW_EXTENSION _CRTIMP __int64 __cdecl _strtoi64(const char *_String,char **_EndPtr,int _Radix);
@@ -361,7 +361,7 @@
__MINGW_EXTENSION _CRTIMP unsigned __int64 __cdecl _strtoui64(const char *_String,char **_EndPtr,int _Radix);
__MINGW_EXTENSION _CRTIMP unsigned __int64 __cdecl _strtoui64_l(const char *_String,char **_EndPtr,int _Radix,_locale_t _Locale);
ldiv_t __cdecl ldiv(long _Numerator,long _Denominator);
- _CRTIMP char *__cdecl _ltoa(long _Value,char *_Dest,int _Radix);
+ _CRTIMP char *__cdecl _ltoa(long _Value,char *_Dest,int _Radix) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
int __cdecl mblen(const char *_Ch,size_t _MaxCount);
_CRTIMP int __cdecl _mblen_l(const char *_Ch,size_t _MaxCount,_locale_t _Locale);
_CRTIMP size_t __cdecl _mbstrlen(const char *_Str);
@@ -391,11 +391,11 @@
#define _CRT_SYSTEM_DEFINED
int __cdecl system(const char *_Command);
#endif
- _CRTIMP char *__cdecl _ultoa(unsigned long _Value,char *_Dest,int _Radix);
- int __cdecl wctomb(char *_MbCh,wchar_t _WCh);
- _CRTIMP int __cdecl _wctomb_l(char *_MbCh,wchar_t _WCh,_locale_t _Locale);
- size_t __cdecl wcstombs(char *_Dest,const wchar_t *_Source,size_t _MaxCount);
- _CRTIMP size_t __cdecl _wcstombs_l(char *_Dest,const wchar_t *_Source,size_t _MaxCount,_locale_t _Locale);
+ _CRTIMP char *__cdecl _ultoa(unsigned long _Value,char *_Dest,int _Radix) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
+ int __cdecl wctomb(char *_MbCh,wchar_t _WCh) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
+ _CRTIMP int __cdecl _wctomb_l(char *_MbCh,wchar_t _WCh,_locale_t _Locale) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
+ size_t __cdecl wcstombs(char *_Dest,const wchar_t *_Source,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
+ _CRTIMP size_t __cdecl _wcstombs_l(char *_Dest,const wchar_t *_Source,size_t _MaxCount,_locale_t _Locale) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
#ifndef _CRT_ALLOCATION_DEFINED
#define _CRT_ALLOCATION_DEFINED
@@ -424,9 +424,9 @@
#ifndef _WSTDLIB_DEFINED
#define _WSTDLIB_DEFINED
- _CRTIMP wchar_t *__cdecl _itow(int _Value,wchar_t *_Dest,int _Radix);
- _CRTIMP wchar_t *__cdecl _ltow(long _Value,wchar_t *_Dest,int _Radix);
- _CRTIMP wchar_t *__cdecl _ultow(unsigned long _Value,wchar_t *_Dest,int _Radix);
+ _CRTIMP wchar_t *__cdecl _itow(int _Value,wchar_t *_Dest,int _Radix) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
+ _CRTIMP wchar_t *__cdecl _ltow(long _Value,wchar_t *_Dest,int _Radix) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
+ _CRTIMP wchar_t *__cdecl _ultow(unsigned long _Value,wchar_t *_Dest,int _Radix) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
double __cdecl wcstod(const wchar_t *_Str,wchar_t **_EndPtr);
float __cdecl wcstof(const wchar_t *nptr, wchar_t **endptr);
#if !defined __NO_ISOCEXT /* in libmingwex.a */
@@ -438,7 +438,7 @@
_CRTIMP long __cdecl _wcstol_l(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix,_locale_t _Locale);
unsigned long __cdecl wcstoul(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix);
_CRTIMP unsigned long __cdecl _wcstoul_l(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix,_locale_t _Locale);
- _CRTIMP wchar_t *__cdecl _wgetenv(const wchar_t *_VarName);
+ _CRTIMP wchar_t *__cdecl _wgetenv(const wchar_t *_VarName) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
#ifndef _CRT_WSYSTEM_DEFINED
#define _CRT_WSYSTEM_DEFINED
_CRTIMP int __cdecl _wsystem(const wchar_t *_Command);
@@ -450,8 +450,8 @@
_CRTIMP long __cdecl _wtol(const wchar_t *_Str);
_CRTIMP long __cdecl _wtol_l(const wchar_t *_Str,_locale_t _Locale);
- __MINGW_EXTENSION _CRTIMP wchar_t *__cdecl _i64tow(__int64 _Val,wchar_t *_DstBuf,int _Radix);
- __MINGW_EXTENSION _CRTIMP wchar_t *__cdecl _ui64tow(unsigned __int64 _Val,wchar_t *_DstBuf,int _Radix);
+ __MINGW_EXTENSION _CRTIMP wchar_t *__cdecl _i64tow(__int64 _Val,wchar_t *_DstBuf,int _Radix) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
+ __MINGW_EXTENSION _CRTIMP wchar_t *__cdecl _ui64tow(unsigned __int64 _Val,wchar_t *_DstBuf,int _Radix) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
__MINGW_EXTENSION _CRTIMP __int64 __cdecl _wtoi64(const wchar_t *_Str);
__MINGW_EXTENSION _CRTIMP __int64 __cdecl _wtoi64_l(const wchar_t *_Str,_locale_t _Locale);
__MINGW_EXTENSION _CRTIMP __int64 __cdecl _wcstoi64(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix);
@@ -463,9 +463,9 @@
#ifndef _POSIX_
#define _CVTBUFSIZE (309+40)
_CRTIMP char *__cdecl _fullpath(char *_FullPath,const char *_Path,size_t _SizeInBytes);
- _CRTIMP char *__cdecl _ecvt(double _Val,int _NumOfDigits,int *_PtDec,int *_PtSign);
- _CRTIMP char *__cdecl _fcvt(double _Val,int _NumOfDec,int *_PtDec,int *_PtSign);
- _CRTIMP char *__cdecl _gcvt(double _Val,int _NumOfDigits,char *_DstBuf);
+ _CRTIMP char *__cdecl _ecvt(double _Val,int _NumOfDigits,int *_PtDec,int *_PtSign) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
+ _CRTIMP char *__cdecl _fcvt(double _Val,int _NumOfDec,int *_PtDec,int *_PtSign) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
+ _CRTIMP char *__cdecl _gcvt(double _Val,int _NumOfDigits,char *_DstBuf) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
_CRTIMP int __cdecl _atodbl(_CRT_DOUBLE *_Result,char *_Str);
_CRTIMP int __cdecl _atoldbl(_LDOUBLE *_Result,char *_Str);
_CRTIMP int __cdecl _atoflt(_CRT_FLOAT *_Result,char *_Str);
@@ -511,8 +511,8 @@
#pragma pop_macro ("_rotl")
#pragma pop_macro ("_rotr")
__MINGW_EXTENSION unsigned __int64 __cdecl _rotr64(unsigned __int64 _Val,int _Shift);
- _CRTIMP void __cdecl _searchenv(const char *_Filename,const char *_EnvVar,char *_ResultPath);
- _CRTIMP void __cdecl _splitpath(const char *_FullPath,char *_Drive,char *_Dir,char *_Filename,char *_Ext);
+ _CRTIMP void __cdecl _searchenv(const char *_Filename,const char *_EnvVar,char *_ResultPath) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
+ _CRTIMP void __cdecl _splitpath(const char *_FullPath,char *_Drive,char *_Dir,char *_Filename,char *_Ext) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
_CRTIMP void __cdecl _swab(char *_Buf1,char *_Buf2,int _SizeInBytes);
#ifndef _WSTDLIBP_DEFINED
@@ -524,8 +524,8 @@
_CRTIMP void __cdecl _wperror(const wchar_t *_ErrMsg);
#endif
_CRTIMP int __cdecl _wputenv(const wchar_t *_EnvString);
- _CRTIMP void __cdecl _wsearchenv(const wchar_t *_Filename,const wchar_t *_EnvVar,wchar_t *_ResultPath);
- _CRTIMP void __cdecl _wsplitpath(const wchar_t *_FullPath,wchar_t *_Drive,wchar_t *_Dir,wchar_t *_Filename,wchar_t *_Ext);
+ _CRTIMP void __cdecl _wsearchenv(const wchar_t *_Filename,const wchar_t *_EnvVar,wchar_t *_ResultPath) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
+ _CRTIMP void __cdecl _wsplitpath(const wchar_t *_FullPath,wchar_t *_Drive,wchar_t *_Dir,wchar_t *_Filename,wchar_t *_Ext) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
#endif
_CRTIMP void __cdecl _beep(unsigned _Frequency,unsigned _Duration) __MINGW_ATTRIB_DEPRECATED;