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/io.h b/mingw-w64-headers/crt/io.h
index bce918a..0071dee 100644
--- a/mingw-w64-headers/crt/io.h
+++ b/mingw-w64-headers/crt/io.h
@@ -194,10 +194,10 @@
_CRTIMP int __cdecl _access(const char *_Filename,int _AccessMode);
_CRTIMP int __cdecl _chmod(const char *_Filename,int _Mode);
- _CRTIMP int __cdecl _chsize(int _FileHandle,long _Size);
+ _CRTIMP int __cdecl _chsize(int _FileHandle,long _Size) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
_CRTIMP int __cdecl _close(int _FileHandle);
_CRTIMP int __cdecl _commit(int _FileHandle);
- _CRTIMP int __cdecl _creat(const char *_Filename,int _PermissionMode);
+ _CRTIMP int __cdecl _creat(const char *_Filename,int _PermissionMode) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
_CRTIMP int __cdecl _dup(int _FileHandle);
_CRTIMP int __cdecl _dup2(int _FileHandleSrc,int _FileHandleDst);
_CRTIMP int __cdecl _eof(int _FileHandle);
@@ -209,7 +209,7 @@
_CRTIMP int __cdecl _locking(int _FileHandle,int _LockMode,long _NumOfBytes);
_CRTIMP long __cdecl _lseek(int _FileHandle,long _Offset,int _Origin);
_off64_t lseek64(int fd,_off64_t offset, int whence);
- _CRTIMP char *__cdecl _mktemp(char *_TemplateName);
+ _CRTIMP char *__cdecl _mktemp(char *_TemplateName) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
_CRTIMP int __cdecl _pipe(int *_PtHandles,unsigned int _PipeSize,int _TextMode);
_CRTIMP int __cdecl _read(int _FileHandle,void *_DstBuf,unsigned int _MaxCharCount);
@@ -225,7 +225,7 @@
_CRTIMP int __cdecl _setmode(int _FileHandle,int _Mode);
_CRTIMP long __cdecl _tell(int _FileHandle);
- _CRTIMP int __cdecl _umask(int _Mode);
+ _CRTIMP int __cdecl _umask(int _Mode) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
_CRTIMP int __cdecl _write(int _FileHandle,const void *_Buf,unsigned int _MaxCharCount);
__MINGW_EXTENSION _CRTIMP __int64 __cdecl _filelengthi64(int _FileHandle);
@@ -290,19 +290,19 @@
_CRTIMP errno_t __cdecl _sopen_s(int *_FileHandle,const char *_Filename,int _OpenFlag,int _ShareFlag,int _PermissionMode);
- _CRTIMP int __cdecl _open(const char *_Filename,int _OpenFlag,...);
- _CRTIMP int __cdecl _sopen(const char *_Filename,int _OpenFlag,int _ShareFlag,...);
+ _CRTIMP int __cdecl _open(const char *_Filename,int _OpenFlag,...) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
+ _CRTIMP int __cdecl _sopen(const char *_Filename,int _OpenFlag,int _ShareFlag,...) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
#ifndef _WIO_DEFINED
#define _WIO_DEFINED
_CRTIMP int __cdecl _waccess(const wchar_t *_Filename,int _AccessMode);
_CRTIMP int __cdecl _wchmod(const wchar_t *_Filename,int _Mode);
- _CRTIMP int __cdecl _wcreat(const wchar_t *_Filename,int _PermissionMode);
+ _CRTIMP int __cdecl _wcreat(const wchar_t *_Filename,int _PermissionMode) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
_CRTIMP intptr_t __cdecl _wfindfirst32(const wchar_t *_Filename,struct _wfinddata32_t *_FindData);
_CRTIMP int __cdecl _wfindnext32(intptr_t _FindHandle,struct _wfinddata32_t *_FindData);
_CRTIMP int __cdecl _wunlink(const wchar_t *_Filename);
_CRTIMP int __cdecl _wrename(const wchar_t *_NewFilename,const wchar_t *_OldFilename);
- _CRTIMP wchar_t *__cdecl _wmktemp(wchar_t *_TemplateName);
+ _CRTIMP wchar_t *__cdecl _wmktemp(wchar_t *_TemplateName) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
_CRTIMP intptr_t __cdecl _wfindfirst32i64(const wchar_t *_Filename,struct _wfinddata32i64_t *_FindData);
intptr_t __cdecl _wfindfirst64i32(const wchar_t *_Filename,struct _wfinddata64i32_t *_FindData);
@@ -313,8 +313,8 @@
_CRTIMP errno_t __cdecl _wsopen_s(int *_FileHandle,const wchar_t *_Filename,int _OpenFlag,int _ShareFlag,int _PermissionFlag);
- _CRTIMP int __cdecl _wopen(const wchar_t *_Filename,int _OpenFlag,...);
- _CRTIMP int __cdecl _wsopen(const wchar_t *_Filename,int _OpenFlag,int _ShareFlag,...);
+ _CRTIMP int __cdecl _wopen(const wchar_t *_Filename,int _OpenFlag,...) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
+ _CRTIMP int __cdecl _wsopen(const wchar_t *_Filename,int _OpenFlag,int _ShareFlag,...) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
#endif