Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.

This commit is contained in:
Colin Finck 2017-10-03 07:45:34 +00:00
parent b94e2d8ca0
commit c2c66aff7d
24198 changed files with 0 additions and 37285 deletions

View file

@ -0,0 +1,147 @@
/**
* 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.
*/
#ifndef _INC_CONIO_S
#define _INC_CONIO_S
#include <conio.h>
#if defined(MINGW_HAS_SECURE_API)
#ifdef __cplusplus
extern "C" {
#endif
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_cgets_s(
_Out_writes_z_(_Size) char *_Buffer,
_In_ size_t _Size,
_Out_ size_t *_SizeRead);
_Check_return_opt_
_CRTIMP
int
__cdecl
_cprintf_s(
_In_z_ _Printf_format_string_ const char *_Format,
...);
_Check_return_opt_
_CRTIMP
int
__cdecl
_cscanf_s(
_In_z_ _Scanf_s_format_string_ const char *_Format,
...);
_Check_return_opt_
_CRTIMP
int
__cdecl
_cscanf_s_l(
_In_z_ _Scanf_s_format_string_ const char *_Format,
_In_opt_ _locale_t _Locale,
...);
_Check_return_opt_
_CRTIMP
int
__cdecl
_vcprintf_s(
_In_z_ _Printf_format_string_ const char *_Format,
va_list _ArgList);
_Check_return_opt_
_CRTIMP
int
__cdecl
_cprintf_s_l(
_In_z_ _Printf_format_string_ const char *_Format,
_In_opt_ _locale_t _Locale,
...);
_Check_return_opt_
_CRTIMP
int
__cdecl
_vcprintf_s_l(
_In_z_ _Printf_format_string_ const char *_Format,
_In_opt_ _locale_t _Locale,
va_list _ArgList);
#ifndef _WCONIO_DEFINED_S
#define _WCONIO_DEFINED_S
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_cgetws_s(
_Out_writes_to_(_SizeInWords, *_SizeRead) wchar_t *_Buffer,
_In_ size_t _SizeInWords,
_Out_ size_t *_SizeRead);
_Check_return_opt_
_CRTIMP
int
__cdecl
_cwprintf_s(
_In_z_ _Printf_format_string_ const wchar_t *_Format,
...);
_Check_return_opt_
_CRTIMP
int
__cdecl
_cwscanf_s(
_In_z_ _Scanf_s_format_string_ const wchar_t *_Format,
...);
_Check_return_opt_
_CRTIMP
int
__cdecl
_cwscanf_s_l(
_In_z_ _Scanf_s_format_string_ const wchar_t *_Format,
_In_opt_ _locale_t _Locale,
...);
_Check_return_opt_
_CRTIMP
int
__cdecl
_vcwprintf_s(
_In_z_ _Printf_format_string_ const wchar_t *_Format,
va_list _ArgList);
_CRTIMP
int
__cdecl
_cwprintf_s_l(
_In_z_ _Printf_format_string_ const wchar_t *_Format,
_In_opt_ _locale_t _Locale,
...);
_CRTIMP
int
__cdecl
_vcwprintf_s_l(
_In_z_ _Printf_format_string_ const wchar_t *_Format,
_In_opt_ _locale_t _Locale,
va_list _ArgList);
#endif /* _WCONIO_DEFINED_S */
#ifdef __cplusplus
}
#endif
#endif /* MINGW_HAS_SECURE_API */
#endif /* _INC_CONIO_S */

View file

@ -0,0 +1,19 @@
/**
* 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.
*/
#ifndef _INC_CRTDBG_S
#define _INC_CRTDBG_S
#include <crtdbg.h>
#if defined(MINGW_HAS_SECURE_API)
#define _dupenv_s_dbg(ps1,size,s2,t,f,l) _dupenv_s(ps1,size,s2)
#define _wdupenv_s_dbg(ps1,size,s2,t,f,l) _wdupenv_s(ps1,size,s2)
#endif
#endif

View file

@ -0,0 +1,76 @@
/**
* 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.
*/
#ifndef _INC_IO_S
#define _INC_IO_S
#include <io.h>
#if defined(MINGW_HAS_SECURE_API)
#ifdef __cplusplus
extern "C" {
#endif
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_access_s(
_In_z_ const char *_Filename,
_In_ int _AccessMode);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_chsize_s(
_In_ int _FileHandle,
_In_ __int64 _Size);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_mktemp_s(
_Inout_updates_z_(_Size) char *_TemplateName,
_In_ size_t _Size);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_umask_s(
_In_ int _NewMode,
_Out_ int *_OldMode);
#ifndef _WIO_S_DEFINED
#define _WIO_S_DEFINED
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_waccess_s(
_In_z_ const wchar_t *_Filename,
_In_ int _AccessMode);
_CRTIMP
errno_t
__cdecl
_wmktemp_s(
_Inout_updates_z_(_SizeInWords) wchar_t *_TemplateName,
_In_ size_t _SizeInWords);
#endif /* _WIO_S_DEFINED */
#ifdef __cplusplus
}
#endif
#endif /* MINGW_HAS_SECURE_API */
#endif /* _INC_IO_S */

View file

@ -0,0 +1,262 @@
/**
* 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.
*/
#ifndef _INC_MBSTRING_S
#define _INC_MBSTRING_S
#include <mbstring.h>
#if defined(MINGW_HAS_SECURE_API)
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _MBSTRING_S_DEFINED
#define _MBSTRING_S_DEFINED
_CRTIMP
errno_t
__cdecl
_mbscat_s(
_Inout_updates_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_In_z_ const unsigned char *_Src);
_CRTIMP
errno_t
__cdecl
_mbscat_s_l(
_Inout_updates_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_In_z_ const unsigned char *_Src,
_In_opt_ _locale_t _Locale);
_CRTIMP
errno_t
__cdecl
_mbscpy_s(
_Out_writes_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_In_z_ const unsigned char *_Src);
_CRTIMP
errno_t
__cdecl
_mbscpy_s_l(
_Out_writes_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_In_z_ const unsigned char *_Src,
_In_opt_ _locale_t _Locale);
_CRTIMP
errno_t
__cdecl
_mbslwr_s(
_Inout_updates_opt_z_(_SizeInBytes) unsigned char *_Str,
_In_ size_t _SizeInBytes);
_CRTIMP
errno_t
__cdecl
_mbslwr_s_l(
_Inout_updates_opt_z_(_SizeInBytes) unsigned char *_Str,
_In_ size_t _SizeInBytes,
_In_opt_ _locale_t _Locale);
_CRTIMP
errno_t
__cdecl
_mbsnbcat_s(
_Inout_updates_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_In_z_ const unsigned char *_Src,
_In_ size_t _MaxCount);
_CRTIMP
errno_t
__cdecl
_mbsnbcat_s_l(
_Inout_updates_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_In_z_ const unsigned char *_Src,
_In_ size_t _MaxCount,
_In_opt_ _locale_t _Locale);
_CRTIMP
errno_t
__cdecl
_mbsnbcpy_s(
_Out_writes_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_In_z_ const unsigned char *_Src,
_In_ size_t _MaxCount);
_CRTIMP
errno_t
__cdecl
_mbsnbcpy_s_l(
_Out_writes_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_In_z_ const unsigned char *_Src,
_In_ size_t _MaxCount,
_In_opt_ _locale_t _Locale);
_CRTIMP
errno_t
__cdecl
_mbsnbset_s(
_Inout_updates_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_In_ unsigned int _Ch,
_In_ size_t _MaxCount);
_CRTIMP
errno_t
__cdecl
_mbsnbset_s_l(
_Inout_updates_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_In_ unsigned int _Ch,
_In_ size_t _MaxCount,
_In_opt_ _locale_t _Locale);
_CRTIMP
errno_t
__cdecl
_mbsncat_s(
_Inout_updates_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_In_z_ const unsigned char *_Src,
_In_ size_t _MaxCount);
_CRTIMP
errno_t
__cdecl
_mbsncat_s_l(
_Inout_updates_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_In_z_ const unsigned char *_Src,
_In_ size_t _MaxCount,
_In_opt_ _locale_t _Locale);
_CRTIMP
errno_t
__cdecl
_mbsncpy_s(
_Out_writes_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_In_z_ const unsigned char *_Src,
_In_ size_t _MaxCount);
_CRTIMP
errno_t
__cdecl
_mbsncpy_s_l(
_Out_writes_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_In_z_ const unsigned char *_Src,
_In_ size_t _MaxCount,
_In_opt_ _locale_t _Locale);
_CRTIMP
errno_t
__cdecl
_mbsnset_s(
_Inout_updates_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_In_ unsigned int _Val,
_In_ size_t _MaxCount);
_CRTIMP
errno_t
__cdecl
_mbsnset_s_l(
_Inout_updates_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_In_ unsigned int _Val,
_In_ size_t _MaxCount,
_In_opt_ _locale_t _Locale);
_CRTIMP
errno_t
__cdecl
_mbsset_s(
_Inout_updates_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_In_ unsigned int _Val);
_CRTIMP
errno_t
__cdecl
_mbsset_s_l(
_Inout_updates_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_In_ unsigned int _Val,
_In_opt_ _locale_t _Locale);
_Check_return_
_CRTIMP
unsigned char *
__cdecl
_mbstok_s(
_Inout_opt_z_ unsigned char *_Str,
_In_z_ const unsigned char *_Delim,
_Inout_ _Deref_prepost_opt_z_ unsigned char **_Context);
_Check_return_
_CRTIMP
unsigned char *
__cdecl
_mbstok_s_l(
_Inout_opt_z_ unsigned char *_Str,
_In_z_ const unsigned char *_Delim,
_Inout_ _Deref_prepost_opt_z_ unsigned char **_Context,
_In_opt_ _locale_t _Locale);
_CRTIMP
errno_t
__cdecl
_mbsupr_s(
_Inout_updates_z_(_SizeInBytes) unsigned char *_Str,
_In_ size_t _SizeInBytes);
_CRTIMP
errno_t
__cdecl
_mbsupr_s_l(
_Inout_updates_z_(_SizeInBytes) unsigned char *_Str,
_In_ size_t _SizeInBytes,
_In_opt_ _locale_t _Locale);
_CRTIMP
errno_t
__cdecl
_mbccpy_s(
_Out_writes_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_Out_opt_ int *_PCopied,
_In_z_ const unsigned char *_Src);
_CRTIMP
errno_t
__cdecl
_mbccpy_s_l(
_Out_writes_z_(_DstSizeInBytes) unsigned char *_Dst,
_In_ size_t _DstSizeInBytes,
_Out_opt_ int *_PCopied,
_In_z_ const unsigned char *_Src,
_In_opt_ _locale_t _Locale);
#endif /* _MBSTRING_S_DEFINED */
#ifdef __cplusplus
}
#endif
#endif /* MINGW_HAS_SECURE_API */
#endif /* _INC_MBSTRING_S */

View file

@ -0,0 +1,48 @@
/**
* 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.
*/
#ifndef _INC_SEARCH_S
#define _INC_SEARCH_S
#include <search.h>
#if defined(MINGW_HAS_SECURE_API)
#ifdef __cplusplus
extern "C" {
#endif
_Check_return_
_CRTIMP
void *
__cdecl
_lfind_s(
_In_ const void *_Key,
_In_reads_bytes_((*_NumOfElements) * _SizeOfElements) const void *_Base,
_Inout_ unsigned int *_NumOfElements,
_In_ size_t _SizeOfElements,
_In_ int(__cdecl *_PtFuncCompare)(void *, const void *, const void *),
void *_Context);
_Check_return_
_CRTIMP
void *
__cdecl
_lsearch_s(
_In_ const void *_Key,
_Inout_updates_bytes_((*_NumOfElements) * _SizeOfElements) void *_Base,
_Inout_ unsigned int *_NumOfElements,
_In_ size_t _SizeOfElements,
_In_ int(__cdecl *_PtFuncCompare)(void *, const void *, const void *),
void *_Context);
#ifdef __cplusplus
}
#endif
#endif
#endif /* _INC_SEARCH_S */

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,344 @@
/**
* 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.
*/
#ifndef _INC_STDLIB_S
#define _INC_STDLIB_S
#include <stdlib.h>
#if defined(MINGW_HAS_SECURE_API)
#ifdef __cplusplus
extern "C" {
#endif
_Check_return_opt_
_CRTIMP
errno_t
__cdecl
_dupenv_s(
_Outptr_result_buffer_maybenull_(*_PBufferSizeInBytes) _Outptr_result_maybenull_z_ char **_PBuffer,
_Out_opt_ size_t *_PBufferSizeInBytes,
_In_z_ const char *_VarName);
_Check_return_opt_
_CRTIMP
errno_t
__cdecl
_itoa_s(
_In_ int _Value,
_Out_writes_z_(_Size) char *_DstBuf,
_In_ size_t _Size,
_In_ int _Radix);
_Check_return_opt_
_CRTIMP
errno_t
__cdecl
_i64toa_s(
_In_ __int64 _Val,
_Out_writes_z_(_Size) char *_DstBuf,
_In_ size_t _Size,
_In_ int _Radix);
_Check_return_opt_
_CRTIMP
errno_t
__cdecl
_ui64toa_s(
_In_ unsigned __int64 _Val,
_Out_writes_z_(_Size) char *_DstBuf,
_In_ size_t _Size,
_In_ int _Radix);
_Check_return_opt_
_CRTIMP
errno_t
__cdecl
_ltoa_s(
_In_ long _Val,
_Out_writes_z_(_Size) char *_DstBuf,
_In_ size_t _Size,
_In_ int _Radix);
_Success_(return!=EINVAL)
_Check_return_opt_
_CRTIMP
errno_t
__cdecl
mbstowcs_s(
_Out_opt_ size_t *pcchConverted,
_Out_writes_to_opt_(sizeInWords, *pcchConverted) wchar_t *pwcstr,
_In_ size_t sizeInWords,
_In_reads_or_z_(count) const char *pmbstr,
_In_ size_t count);
_Check_return_opt_
_CRTIMP
errno_t
__cdecl
_mbstowcs_s_l(
_Out_opt_ size_t *_PtNumOfCharConverted,
_Out_writes_to_opt_(_SizeInWords, *_PtNumOfCharConverted) wchar_t *_DstBuf,
_In_ size_t _SizeInWords,
_In_reads_or_z_(_MaxCount) const char *_SrcBuf,
_In_ size_t _MaxCount,
_In_opt_ _locale_t _Locale);
_Check_return_opt_
_CRTIMP
errno_t
__cdecl
_ultoa_s(
_In_ unsigned long _Val,
_Out_writes_z_(_Size) char *_DstBuf,
_In_ size_t _Size,
_In_ int _Radix);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wctomb_s_l(
_Out_opt_ int *_SizeConverted,
_Out_writes_opt_z_(_SizeInBytes) char *_MbCh,
_In_ size_t _SizeInBytes,
_In_ wchar_t _WCh,
_In_opt_ _locale_t _Locale);
_Success_(return!=EINVAL)
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
wcstombs_s(
_Out_opt_ size_t *pcchConverted,
_Out_writes_bytes_to_opt_(cjDstSize, *pcchConverted) char *pmbstrDst,
_In_ size_t cjDstSize,
_In_z_ const wchar_t *pwszSrc,
_In_ size_t cjMaxCount);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcstombs_s_l(
_Out_opt_ size_t *_PtNumOfCharConverted,
_Out_writes_bytes_to_opt_(_DstSizeInBytes, *_PtNumOfCharConverted) char *_Dst,
_In_ size_t _DstSizeInBytes,
_In_z_ const wchar_t *_Src,
_In_ size_t _MaxCountInBytes,
_In_opt_ _locale_t _Locale);
#ifndef _WSTDLIB_S_DEFINED
#define _WSTDLIB_S_DEFINED
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_itow_s(
_In_ int _Val,
_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf,
_In_ size_t _SizeInWords,
_In_ int _Radix);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_ltow_s(
_In_ long _Val,
_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf,
_In_ size_t _SizeInWords,
_In_ int _Radix);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_ultow_s(
_In_ unsigned long _Val,
_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf,
_In_ size_t _SizeInWords,
_In_ int _Radix);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wgetenv_s(
_Out_ size_t *_ReturnSize,
_Out_writes_opt_z_(_DstSizeInWords) wchar_t *_DstBuf,
_In_ size_t _DstSizeInWords,
_In_z_ const wchar_t *_VarName);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wdupenv_s(
_Outptr_result_buffer_maybenull_(*_BufferSizeInWords) _Outptr_result_maybenull_z_ wchar_t **_Buffer,
_Out_opt_ size_t *_BufferSizeInWords,
_In_z_ const wchar_t *_VarName);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_i64tow_s(
_In_ __int64 _Val,
_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf,
_In_ size_t _SizeInWords,
_In_ int _Radix);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_ui64tow_s(
_In_ unsigned __int64 _Val,
_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf,
_In_ size_t _SizeInWords,
_In_ int _Radix);
#endif /* _WSTDLIB_S_DEFINED */
#ifndef _POSIX_
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_ecvt_s(
_Out_writes_z_(_Size) char *_DstBuf,
_In_ size_t _Size,
_In_ double _Val,
_In_ int _NumOfDights,
_Out_ int *_PtDec,
_Out_ int *_PtSign);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_fcvt_s(
_Out_writes_z_(_Size) char *_DstBuf,
_In_ size_t _Size,
_In_ double _Val,
_In_ int _NumOfDec,
_Out_ int *_PtDec,
_Out_ int *_PtSign);
_CRTIMP
errno_t
__cdecl
_gcvt_s(
_Out_writes_z_(_Size) char *_DstBuf,
_In_ size_t _Size,
_In_ double _Val,
_In_ int _NumOfDigits);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_makepath_s(
_Out_writes_z_(_Size) char *_PathResult,
_In_ size_t _Size,
_In_opt_z_ const char *_Drive,
_In_opt_z_ const char *_Dir,
_In_opt_z_ const char *_Filename,
_In_opt_z_ const char *_Ext);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_putenv_s(
_In_z_ const char *_Name,
_In_z_ const char *_Value);
_CRTIMP
errno_t
__cdecl
_searchenv_s(
_In_z_ const char *_Filename,
_In_z_ const char *_EnvVar,
_Out_writes_z_(_SizeInBytes) char *_ResultPath,
_In_ size_t _SizeInBytes);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_splitpath_s(
_In_z_ const char *path,
_Out_writes_opt_z_(drive_size) char *drive,
_In_ size_t drive_size,
_Out_writes_opt_z_(dir_size) char *dir,
_In_ size_t dir_size,
_Out_writes_opt_z_(fname_size) char *fname,
_In_ size_t fname_size,
_Out_writes_opt_z_(ext_size) char *ext,
_In_ size_t ext_size);
#ifndef _WSTDLIBP_S_DEFINED
#define _WSTDLIBP_S_DEFINED
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wmakepath_s(
_Out_writes_z_(_SizeInWords) wchar_t *_PathResult,
_In_ size_t _SizeInWords,
_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);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wputenv_s(
_In_z_ const wchar_t *_Name,
_In_z_ const wchar_t *_Value);
_CRTIMP
errno_t
__cdecl
_wsearchenv_s(
_In_z_ const wchar_t *_Filename,
_In_z_ const wchar_t *_EnvVar,
_Out_writes_z_(_SizeInWords) wchar_t *_ResultPath,
_In_ size_t _SizeInWords);
_CRTIMP
errno_t
__cdecl
_wsplitpath_s(
_In_z_ const wchar_t *path,
_Out_writes_opt_z_(drive_size) wchar_t *drive,
_In_ size_t drive_size,
_Out_writes_opt_z_(dir_size) wchar_t *dir,
_In_ size_t dir_size,
_Out_writes_opt_z_(fname_size) wchar_t *fname,
_In_ size_t fname_size,
_Out_writes_opt_z_(ext_size) wchar_t *ext,
_In_ size_t ext_size);
#endif /* _WSTDLIBP_S_DEFINED */
#endif /* _POSIX_ */
#ifdef __cplusplus
}
#endif
#endif /* defined(MINGW_HAS_SECURE_API) */
#endif /* _INC_STDLIB_S */

View file

@ -0,0 +1,30 @@
/**
* 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.
*/
#ifndef __STRALIGN_H_S_
#define __STRALIGN_H_S_
#include <stralign.h>
#if defined(MINGW_HAS_SECURE_API)
#ifdef __cplusplus
extern "C" {
#endif
#if !defined(_X86_) && defined(_WSTRING_S_DEFINED)
#if defined(__cplusplus) && defined(_WConst_Return)
static __inline PUWSTR ua_wcscpy_s(PUWSTR Destination,size_t DestinationSize,PCUWSTR Source) {
if(WSTR_ALIGNED(Source) && WSTR_ALIGNED(Destination)) return (wcscpy_s((PWSTR)Destination,DestinationSize,(PCWSTR)Source)==0 ? Destination : NULL);
return uaw_wcscpy((PCUWSTR)String,Character);
}
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif
#endif

View file

@ -0,0 +1,313 @@
/**
* 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.
*/
#ifndef _INC_STRING_S
#define _INC_STRING_S
#include <string.h>
#if defined(MINGW_HAS_SECURE_API)
#ifdef __cplusplus
extern "C" {
#endif
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_strset_s(
_Inout_updates_z_(_DstSize) char *_Dst,
_In_ size_t _DstSize,
_In_ int _Value);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_strerror_s(
_Out_writes_z_(_SizeInBytes) char *_Buf,
_In_ size_t _SizeInBytes,
_In_opt_z_ const char *_ErrMsg);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_strlwr_s(
_Inout_updates_z_(_Size) char *_Str,
_In_ size_t _Size);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_strlwr_s_l(
_Inout_updates_z_(_Size) char *_Str,
_In_ size_t _Size,
_In_opt_ _locale_t _Locale);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_strnset_s(
_Inout_updates_z_(_Size) char *_Str,
_In_ size_t _Size,
_In_ int _Val,
_In_ size_t _MaxCount);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_strupr_s(
_Inout_updates_z_(_Size) char *_Str,
_In_ size_t _Size);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_strupr_s_l(
_Inout_updates_z_(_Size) char *_Str,
_In_ size_t _Size,
_In_opt_ _locale_t _Locale);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
strncat_s(
_Inout_updates_z_(_DstSizeInChars) char *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const char *_Src,
_In_ size_t _MaxCount);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_strncat_s_l(
_Inout_updates_z_(_DstSizeInChars) char *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const char *_Src,
_In_ size_t _MaxCount,
_In_opt_ _locale_t _Locale);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
strcpy_s(
_Out_writes_z_(_SizeInBytes) char *_Dst,
_In_ size_t _SizeInBytes,
_In_z_ const char *_Src);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
strncpy_s(
_Out_writes_z_(_DstSizeInChars) char *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const char *_Src,
_In_ size_t _MaxCount);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_strncpy_s_l(
_Out_writes_z_(_DstSizeInChars) char *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const char *_Src,
_In_ size_t _MaxCount,
_In_opt_ _locale_t _Locale);
_Check_return_
_CRTIMP
char *
__cdecl
strtok_s(
_Inout_opt_z_ char *_Str,
_In_z_ const char *_Delim,
_Inout_ _Deref_prepost_opt_z_ char **_Context);
_Check_return_
_CRTIMP
char *
__cdecl
_strtok_s_l(
_Inout_opt_z_ char *_Str,
_In_z_ const char *_Delim,
_Inout_ _Deref_prepost_opt_z_ char **_Context,
_In_opt_ _locale_t _Locale);
#ifndef _WSTRING_S_DEFINED
#define _WSTRING_S_DEFINED
_Check_return_
_CRTIMP
wchar_t *
__cdecl
wcstok_s(
_Inout_opt_z_ wchar_t *_Str,
_In_z_ const wchar_t *_Delim,
_Inout_ _Deref_prepost_opt_z_ wchar_t **_Context);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcserror_s(
_Out_writes_opt_z_(_SizeInWords) wchar_t *_Buf,
_In_ size_t _SizeInWords,
_In_ int _ErrNum);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
__wcserror_s(
_Out_writes_opt_z_(_SizeInWords) wchar_t *_Buffer,
_In_ size_t _SizeInWords,
_In_z_ const wchar_t *_ErrMsg);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcsnset_s(
_Inout_updates_z_(_DstSizeInWords) wchar_t *_Dst,
_In_ size_t _DstSizeInWords,
_In_ wchar_t _Val,
_In_ size_t _MaxCount);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcsset_s(
_Inout_updates_z_(_SizeInWords) wchar_t *_Str,
_In_ size_t _SizeInWords,
_In_ wchar_t _Val);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcslwr_s(
_Inout_updates_z_(_SizeInWords) wchar_t *_Str,
_In_ size_t _SizeInWords);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcslwr_s_l(
_Inout_updates_z_(_SizeInWords) wchar_t *_Str,
_In_ size_t _SizeInWords,
_In_opt_ _locale_t _Locale);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcsupr_s(
_Inout_updates_z_(_Size) wchar_t *_Str,
_In_ size_t _Size);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcsupr_s_l(
_Inout_updates_z_(_Size) wchar_t *_Str,
_In_ size_t _Size,
_In_opt_ _locale_t _Locale);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
wcsncat_s(
_Inout_updates_z_(_DstSizeInChars) wchar_t *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const wchar_t *_Src,
_In_ size_t _MaxCount);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcsncat_s_l(
_Inout_updates_z_(_DstSizeInChars) wchar_t *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const wchar_t *_Src,
_In_ size_t _MaxCount,
_In_opt_ _locale_t _Locale);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
wcsncpy_s(
_Out_writes_z_(_DstSizeInChars) wchar_t *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const wchar_t *_Src,
_In_ size_t _MaxCount);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcsncpy_s_l(
_Out_writes_z_(_DstSizeInChars) wchar_t *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const wchar_t *_Src,
_In_ size_t _MaxCount,
_In_opt_ _locale_t _Locale);
_CRTIMP
wchar_t *
__cdecl
_wcstok_s_l(
_Inout_opt_z_ wchar_t *_Str,
_In_z_ const wchar_t *_Delim,
_Inout_ _Deref_prepost_opt_z_ wchar_t **_Context,
_In_opt_ _locale_t _Locale);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcsset_s_l(
_Inout_updates_z_(_SizeInChars) wchar_t *_Str,
_In_ size_t _SizeInChars,
_In_ unsigned int _Val,
_In_opt_ _locale_t _Locale);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcsnset_s_l(
_Inout_updates_z_(_SizeInChars) wchar_t *_Str,
_In_ size_t _SizeInChars,
_In_ unsigned int _Val,
_In_ size_t _Count,
_In_opt_ _locale_t _Locale);
#endif /* _WSTRING_S_DEFINED */
#ifdef __cplusplus
}
#endif
#endif /* MINGW_HAS_SECURE_API */
#endif /* _INC_STRING_S */

View file

@ -0,0 +1,30 @@
/**
* 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.
*/
#ifndef _TIMEB_H_S
#define _TIMEB_H_S
#include <sys/timeb.h>
#ifdef __cplusplus
extern "C" {
#endif
#if defined(MINGW_HAS_SECURE_API)
_CRTIMP errno_t __cdecl _ftime32_s(_Out_ struct __timeb32 *_Time);
_CRTIMP errno_t __cdecl _ftime64_s(_Out_ struct __timeb64 *_Time);
#ifndef _USE_32BIT_TIME_T
#define _ftime_s _ftime64_s
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif

View file

@ -0,0 +1,399 @@
/**
* 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.
*/
#ifndef _INC_TCHAR_S
#define _INC_TCHAR_S
#include <tchar.h>
#if defined(MINGW_HAS_SECURE_API)
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _UNICODE
#define _tprintf_s wprintf_s
#define _tprintf_s_l _wprintf_s_l
#define _tcprintf_s _cwprintf_s
#define _tcprintf_s_l _cwprintf_s_l
#define _vtcprintf_s _vcwprintf_s
#define _vtcprintf_s_l _vcwprintf_s_l
#define _ftprintf_s fwprintf_s
#define _ftprintf_s_l _fwprintf_s_l
#define _stprintf_s swprintf_s
#define _stprintf_s_l _swprintf_s_l
#define _sntprintf_s _snwprintf_s
#define _sntprintf_s_l _snwprintf_s_l
#define _vtprintf_s vwprintf_s
#define _vtprintf_s_l _vwprintf_s_l
#define _vftprintf_s vfwprintf_s
#define _vftprintf_s_l _vfwprintf_s_l
#define _vstprintf_s vswprintf_s
#define _vstprintf_s_l _vswprintf_s_l
#define _vsntprintf_s _vsnwprintf_s
#define _vsntprintf_s_l _vsnwprintf_s_l
#define _tscanf_s wscanf_s
#define _tscanf_s_l _wscanf_s_l
#define _tcscanf_s _cwscanf_s
#define _tcscanf_s_l _cwscanf_s_l
#define _ftscanf_s fwscanf_s
#define _ftscanf_s_l _fwscanf_s_l
#define _stscanf_s swscanf_s
#define _stscanf_s_l _swscanf_s_l
#define _sntscanf_s _snwscanf_s
#define _sntscanf_s_l _snwscanf_s_l
#define _cgetts_s _cgetws_s
#define _getts_s _getws_s
#define _itot_s _itow_s
#define _ltot_s _ltow_s
#define _ultot_s _ultow_s
#define _i64tot_s _i64tow_s
#define _ui64tot_s _ui64tow_s
#define _tcscat_s wcscat_s
#define _tcscpy_s wcscpy_s
#define _tcsncat_s wcsncat_s
#define _tcsncat_s_l _wcsncat_s_l
#define _tcsncpy_s wcsncpy_s
#define _tcsncpy_s_l _wcsncpy_s_l
#define _tcstok_s wcstok_s
#define _tcstok_s_l _wcstok_s_l
#define _tcserror_s _wcserror_s
#define __tcserror_s __wcserror_s
#define _tcsnset_s _wcsnset_s
#define _tcsnset_s_l _wcsnset_s_l
#define _tcsset_s _wcsset_s
#define _tcsset_s_l _wcsset_s_l
#define _tasctime_s _wasctime_s
#define _tctime_s _wctime_s
#define _tctime32_s _wctime32_s
#define _tctime64_s _wctime64_s
#define _tstrdate_s _wstrdate_s
#define _tstrtime_s _wstrtime_s
#define _tgetenv_s _wgetenv_s
#define _tdupenv_s _wdupenv_s
#define _tmakepath_s _wmakepath_s
#define _tputenv_s _wputenv_s
#define _tsearchenv_s _wsearchenv_s
#define _tsplitpath_s _wsplitpath_s
#define _tfopen_s _wfopen_s
#define _tfreopen_s _wfreopen_s
#define _ttmpnam_s _wtmpnam_s
#define _taccess_s _waccess_s
#define _tmktemp_s _wmktemp_s
#define _tcsnccat_s wcsncat_s
#define _tcsnccat_s_l _wcsncat_s_l
#define _tcsnccpy_s wcsncpy_s
#define _tcsnccpy_s_l _wcsncpy_s_l
#define _tcslwr_s _wcslwr_s
#define _tcslwr_s_l _wcslwr_s_l
#define _tcsupr_s _wcsupr_s
#define _tcsupr_s_l _wcsupr_s_l
#define _wcstok_s_l(_String,_Delimiters,_Current_position,_Locale) (wcstok_s(_String,_Delimiters,_Current_position))
#define _wcsnset_s_l(_Destination,_Destination_size_chars,_Value,_Count,_Locale) (_wcsnset_s(_Destination,_Destination_size_chars,_Value,_Count))
#define _wcsset_s_l(_Destination,_Destination_size_chars,_Value,_Locale) (_wcsset_s(_Destination,_Destination_size_chars,_Value))
#else /* _UNICODE */
#define _tprintf_s printf_s
#define _tprintf_s_l _printf_s_l
#define _tcprintf_s _cprintf_s
#define _tcprintf_s_l _cprintf_s_l
#define _vtcprintf_s _vcprintf_s
#define _vtcprintf_s_l _vcprintf_s_l
#define _ftprintf_s fprintf_s
#define _ftprintf_s_l _fprintf_s_l
#define _stprintf_s sprintf_s
#define _stprintf_s_l _sprintf_s_l
#define _sntprintf_s _snprintf_s
#define _sntprintf_s_l _snprintf_s_l
#define _vtprintf_s vprintf_s
#define _vtprintf_s_l _vprintf_s_l
#define _vftprintf_s vfprintf_s
#define _vftprintf_s_l _vfprintf_s_l
#define _vstprintf_s vsprintf_s
#define _vstprintf_s_l _vsprintf_s_l
#define _vsntprintf_s _vsnprintf_s
#define _vsntprintf_s_l _vsnprintf_s_l
#define _tscanf_s scanf_s
#define _tscanf_s_l _scanf_s_l
#define _tcscanf_s _cscanf_s
#define _tcscanf_s_l _cscanf_s_l
#define _ftscanf_s fscanf_s
#define _ftscanf_s_l _fscanf_s_l
#define _stscanf_s sscanf_s
#define _stscanf_s_l _sscanf_s_l
#define _sntscanf_s _snscanf_s
#define _sntscanf_s_l _snscanf_s_l
#define _getts_s gets_s
#define _cgetts_s _cgets_s
#define _itot_s _itoa_s
#define _ltot_s _ltoa_s
#define _ultot_s _ultoa_s
#define _i64tot_s _i64toa_s
#define _ui64tot_s _ui64toa_s
#define _tcscat_s strcat_s
#define _tcscpy_s strcpy_s
#define _tcserror_s strerror_s
#define __tcserror_s _strerror_s
#define _tasctime_s asctime_s
#define _tctime_s ctime_s
#define _tctime32_s _ctime32_s
#define _tctime64_s _ctime64_s
#define _tstrdate_s _strdate_s
#define _tstrtime_s _strtime_s
#define _tgetenv_s getenv_s
#define _tdupenv_s _dupenv_s
#define _tmakepath_s _makepath_s
#define _tputenv_s _putenv_s
#define _tsearchenv_s _searchenv_s
#define _tsplitpath_s _splitpath_s
#define _tfopen_s fopen_s
#define _tfreopen_s freopen_s
#define _ttmpnam_s tmpnam_s
#define _tmktemp_s _mktemp_s
#ifndef _POSIX_
#define _taccess_s _access_s
#endif
#define _tsopen_s _sopen_s
#ifdef _MBCS
#ifdef _MB_MAP_DIRECT
#define _tcsncat_s _mbsnbcat_s
#define _tcsncat_s_l _mbsnbcat_s_l
#define _tcsncpy_s _mbsnbcpy_s
#define _tcsncpy_s_l _mbsnbcpy_s_l
#define _tcstok_s _mbstok_s
#define _tcstok_s_l _mbstok_s_l
#define _tcsnset_s _mbsnbset_s
#define _tcsnset_s_l _mbsnbset_s_l
#define _tcsset_s _mbsset_s
#define _tcsset_s_l _mbsset_s_l
#define _tcsnccat_s _mbsncat_s
#define _tcsnccat_s_l _mbsncat_s_l
#define _tcsnccpy_s _mbsncpy_s
#define _tcsnccpy_s_l _mbsncpy_s_l
#define _tcsncset_s _mbsnset_s
#define _tcsncset_s_l _mbsnset_s_l
#define _tcslwr_s _mbslwr_s
#define _tcslwr_s_l _mbslwr_s_l
#define _tcsupr_s _mbsupr_s
#define _tcsupr_s_l _mbsupr_s_l
#define _tccpy_s _mbccpy_s
#define _tccpy_s_l _mbccpy_s_l
#else /* _MB_MAP_DIRECT */
_CRTIMP
char *
__cdecl
_tcsncat_s(
_Inout_updates_z_(_DstSizeInChars) char *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const char *_Src,
_In_ size_t _MaxCount);
_CRTIMP
char *
__cdecl
_tcsncat_s_l(
_Inout_updates_z_(_DstSizeInChars) char *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const char *_Src,
_In_ size_t _MaxCount,
_In_opt_ _locale_t _Locale);
_CRTIMP
char *
__cdecl
_tcsncpy_s(
_Out_writes_(_DstSizeInChars) char *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const char *_Src,
_In_ size_t _MaxCount);
_CRTIMP
char *
__cdecl
_tcsncpy_s_l(
_Out_writes_(_DstSizeInChars) char *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const char *_Src,
_In_ size_t _MaxCount,
_In_opt_ _locale_t _Locale);
_Check_return_
_CRTIMP
char *
__cdecl
_tcstok_s(
_Inout_opt_ char *_Str,
_In_z_ const char *_Delim,
_Inout_ _Deref_prepost_opt_z_ char **_Context);
_Check_return_
_CRTIMP
char *
__cdecl
_tcstok_s_l(
_Inout_opt_ char *_Str,
_In_z_ const char *_Delim,
_Inout_ _Deref_prepost_opt_z_ char **_Context,
_In_opt_ _locale_t _Locale);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_tcsset_s(
_Inout_updates_z_(_SizeInChars) char *_Str,
_In_ size_t _SizeInChars,
_In_ unsigned int _Val);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_tcsset_s_l(
_Inout_updates_z_(_SizeInChars) char *_Str,
_In_ size_t _SizeInChars,
_In_ unsigned int,
_In_opt_ _locale_t _Locale);
_CRTIMP
char *
__cdecl
_tcsnccat_s(
_Inout_updates_z_(_DstSizeInChars) char *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const char *_Src,
_In_ size_t _MaxCount);
_CRTIMP
char *
__cdecl
_tcsnccat_s_l(
_Inout_updates_z_(_DstSizeInChars) char *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const char *_Src,
_In_ size_t _MaxCount,
_In_opt_ _locale_t _Locale);
_CRTIMP
char *
__cdecl
_tcsnccpy_s(
_Out_writes_(_DstSizeInChars) char *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const char *_Src,
_In_ size_t _MaxCount);
_CRTIMP
char *
__cdecl
_tcsnccpy_s_l(
_Out_writes_(_DstSizeInChars) char *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const char *_Src,
_In_ size_t _MaxCount,
_In_opt_ _locale_t _Locale);
_CRTIMP
char *
__cdecl
_tcslwr_s(
_Inout_updates_z_(_SizeInChars) char *_Str,
_In_ size_t _SizeInChars);
_CRTIMP
char *
__cdecl
_tcslwr_s_l(
_Inout_updates_z_(_SizeInChars) char *_Str,
_In_ size_t _SizeInChars,
_In_opt_ _locale_t _Locale);
_CRTIMP
char *
__cdecl
_tcsupr_s(
_Inout_updates_z_(_SizeInChars) char *_Str,
_In_ size_t _SizeInChars);
_CRTIMP
char *
__cdecl
_tcsupr_s_l(
_Inout_updates_z_(_SizeInChars) char *_Str,
_In_ size_t _SizeInChars,
_In_opt_ _locale_t _Locale);
#endif /* _MB_MAP_DIRECT */
#else /* _MBCS */
#define _tcsncat_s strncat_s
#define _tcsncat_s_l _strncat_s_l
#define _tcsncpy_s strncpy_s
#define _tcsncpy_s_l _strncpy_s_l
#define _tcstok_s strtok_s
#define _tcstok_s_l _strtok_s_l
#define _tcsnset_s _strnset_s
#define _tcsnset_s_l _strnset_s_l
#define _tcsset_s _strset_s
#define _tcsset_s _strset_s
#define _tcsset_s_l _strset_s_l
#define _tcsnccat_s strncat_s
#define _tcsnccat_s_l _strncat_s_l
#define _tcsnccpy_s strncpy_s
#define _tcsnccpy_s_l _strncpy_s_l
#define _tcslwr_s _strlwr_s
#define _tcslwr_s_l _strlwr_s_l
#define _tcsupr_s _strupr_s
#define _tcsupr_s_l _strupr_s_l
#define _strnset_s_l(_Destination,_Destination_size_chars,_Value,_Count,_Locale) (_strnset_s(_Destination,_Destination_size_chars,_Value,_Count))
#define _strset_s_l(_Destination,_Destination_size_chars,_Value,_Locale) (_strset_s(_Destination,_Destination_size_chars,_Value))
#endif /* _MBCS */
#endif /* _UNICODE */
#ifdef __cplusplus
}
#endif
#endif /* MINGW_HAS_SECURE_API */
#endif /* _INC_TCHAR_S */

View file

@ -0,0 +1,147 @@
/**
* 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.
*/
#ifndef _TIME_H__S
#define _TIME_H__S
#include <time.h>
#if defined(MINGW_HAS_SECURE_API)
#ifdef __cplusplus
extern "C" {
#endif
_Success_(return == 0)
_CRTIMP
errno_t
__cdecl
_ctime32_s(
_Out_writes_(_SizeInBytes) _Post_readable_size_(26) char *_Buf,
_In_ size_t _SizeInBytes,
_In_ const __time32_t *_Time);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_gmtime32_s(
_In_ struct tm *_Tm,
_In_ const __time32_t *_Time);
_CRTIMP
errno_t
__cdecl
_localtime32_s(
_Out_ struct tm *_Tm,
_In_ const __time32_t *_Time);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_strdate_s(
_Out_writes_(_SizeInBytes) _Post_readable_size_(9) char *_Buf,
_In_range_(>= , 9) size_t _SizeInBytes);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_strtime_s(
_Out_writes_(_SizeInBytes) _Post_readable_size_(9) char *_Buf,
_In_range_(>= , 9) size_t _SizeInBytes);
_CRTIMP
errno_t
__cdecl
_ctime64_s(
_Out_writes_z_(_SizeInBytes) char *_Buf,
_In_ size_t _SizeInBytes,
_In_ const __time64_t *_Time);
_CRTIMP
errno_t
__cdecl
_gmtime64_s(
_Out_ struct tm *_Tm,
_In_ const __time64_t *_Time);
_CRTIMP
errno_t
__cdecl
_localtime64_s(
_Out_ struct tm *_Tm,
_In_ const __time64_t *_Time);
#ifndef _WTIME_S_DEFINED
#define _WTIME_S_DEFINED
_CRTIMP
errno_t
__cdecl
_wasctime_s(
_Out_writes_(_SizeInWords) _Post_readable_size_(26) wchar_t *_Buf,
_In_range_(>= , 26) size_t _SizeInWords,
_In_ const struct tm *_Tm);
_Success_(return == 0)
_CRTIMP
errno_t
__cdecl
_wctime32_s(
_Out_writes_(_SizeInWords) _Post_readable_size_(26) wchar_t *_Buf,
_In_ size_t _SizeInWords,
_In_ const __time32_t *_Time);
_CRTIMP
errno_t
__cdecl
_wstrdate_s(
_Out_writes_(_SizeInWords) _Post_readable_size_(9) wchar_t *_Buf,
_In_ size_t _SizeInWords);
_CRTIMP
errno_t
__cdecl
_wstrtime_s(
_Out_writes_(_SizeInWords) _Post_readable_size_(9) wchar_t *_Buf,
_In_range_(>= , 9) size_t _SizeInWords);
_Success_(return == 0)
_CRTIMP
errno_t
__cdecl
_wctime64_s(
_Out_writes_(_SizeInWords) _Post_readable_size_(26) wchar_t *_Buf,
_In_ size_t _SizeInWords,
_In_ const __time64_t *_Time);
#if !defined (RC_INVOKED) && !defined (_INC_WTIME_S_INL)
#define _INC_WTIME_S_INL
errno_t __cdecl _wctime_s(wchar_t *, size_t, const time_t *);
#ifndef _USE_32BIT_TIME_T
__CRT_INLINE errno_t __cdecl _wctime_s(wchar_t *_Buffer,size_t _SizeInWords,const time_t *_Time) { return _wctime64_s(_Buffer,_SizeInWords,_Time); }
#endif
#endif
#endif /* _WTIME_S_DEFINED */
#ifndef RC_INVOKED
#ifdef _USE_32BIT_TIME_T
__CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime32_s(_Tm,_Time); }
#else
__CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime64_s(_Tm,_Time); }
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif /* MINGW_HAS_SECURE_API */
#endif /* _TIME_H__S */

View file

@ -0,0 +1,711 @@
/**
* 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.
*/
#ifndef _INC_WCHAR_S
#define _INC_WCHAR_S
#include <wchar.h>
#if defined(MINGW_HAS_SECURE_API)
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _WIO_S_DEFINED
#define _WIO_S_DEFINED
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_waccess_s(
_In_z_ const wchar_t *_Filename,
_In_ int _AccessMode);
_CRTIMP
errno_t
__cdecl
_wmktemp_s(
_Inout_updates_z_(_SizeInWords) wchar_t *_TemplateName,
_In_ size_t _SizeInWords);
#endif /* _WIO_S_DEFINED */
#ifndef _WCONIO_S_DEFINED
#define _WCONIO_S_DEFINED
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_cgetws_s(
_Out_writes_to_(_SizeInWords, *_SizeRead) wchar_t *_Buffer,
_In_ size_t _SizeInWords,
_Out_ size_t *_SizeRead);
_Check_return_opt_
_CRTIMP
int
__cdecl
_cwprintf_s(
_In_z_ _Printf_format_string_ const wchar_t *_Format,
...);
_Check_return_opt_
_CRTIMP
int
__cdecl
_cwscanf_s(
_In_z_ _Scanf_s_format_string_ const wchar_t *_Format,
...);
_Check_return_opt_
_CRTIMP
int
__cdecl
_cwscanf_s_l(
_In_z_ _Scanf_s_format_string_ const wchar_t *_Format,
_In_opt_ _locale_t _Locale,
...);
_Check_return_opt_
_CRTIMP
int
__cdecl
_vcwprintf_s(
_In_z_ _Printf_format_string_ const wchar_t *_Format,
va_list _ArgList);
_CRTIMP
int
__cdecl
_cwprintf_s_l(
_In_z_ _Printf_format_string_ const wchar_t *_Format,
_In_opt_ _locale_t _Locale,
...);
_CRTIMP
int
__cdecl
_vcwprintf_s_l(
_In_z_ _Printf_format_string_ const wchar_t *_Format,
_In_opt_ _locale_t _Locale,
va_list _ArgList);
#endif /* _WCONIO_S_DEFINED */
#ifndef _WSTDIO_S_DEFINED
#define _WSTDIO_S_DEFINED
_Check_return_opt_
_CRTIMP
wchar_t *
__cdecl
_getws_s(
_Out_writes_z_(_SizeInWords) wchar_t *_Str,
_In_ size_t _SizeInWords);
_Check_return_opt_
int
__cdecl
fwprintf_s(
_Inout_ FILE *_File,
_In_z_ _Printf_format_string_ const wchar_t *_Format,
...);
_Check_return_opt_
int
__cdecl
wprintf_s(
_In_z_ _Printf_format_string_ const wchar_t *_Format,
...);
_Check_return_opt_
int
__cdecl
vfwprintf_s(
_Inout_ FILE *_File,
_In_z_ _Printf_format_string_ const wchar_t *_Format,
va_list _ArgList);
_Check_return_opt_
int
__cdecl
vwprintf_s(
_In_z_ _Printf_format_string_ const wchar_t *_Format,
va_list _ArgList);
int
__cdecl
swprintf_s(
_Out_writes_z_(_SizeInWords) wchar_t *_Dst,
_In_ size_t _SizeInWords,
_In_z_ _Printf_format_string_ const wchar_t *_Format,
...);
int
__cdecl
vswprintf_s(
_Out_writes_z_(_SizeInWords) wchar_t *_Dst,
_In_ size_t _SizeInWords,
_In_z_ _Printf_format_string_ const wchar_t *_Format,
va_list _ArgList);
_Check_return_opt_
_CRTIMP
int
__cdecl
_snwprintf_s(
_Out_writes_z_(_DstSizeInWords) wchar_t *_DstBuf,
_In_ size_t _DstSizeInWords,
_In_ size_t _MaxCount,
_In_z_ _Printf_format_string_ const wchar_t *_Format,
...);
_Check_return_opt_
_CRTIMP
int
__cdecl
_vsnwprintf_s(
_Out_writes_z_(_DstSizeInWords) wchar_t *_DstBuf,
_In_ size_t _DstSizeInWords,
_In_ size_t _MaxCount,
_In_z_ _Printf_format_string_ const wchar_t *_Format,
va_list _ArgList);
_Check_return_opt_
_CRTIMP
int
__cdecl
_wprintf_s_l(
_In_z_ _Printf_format_string_ const wchar_t *_Format,
_In_opt_ _locale_t _Locale,
...);
_Check_return_opt_
_CRTIMP
int
__cdecl
_vwprintf_s_l(
_In_z_ _Printf_format_string_ const wchar_t *_Format,
_In_opt_ _locale_t _Locale,
va_list _ArgList);
_Check_return_opt_
_CRTIMP
int
__cdecl
_fwprintf_s_l(
_Inout_ FILE *_File,
_In_z_ _Printf_format_string_ const wchar_t *_Format,
_In_opt_ _locale_t _Locale,
...);
_Check_return_opt_
_CRTIMP
int
__cdecl
_vfwprintf_s_l(
_Inout_ FILE *_File,
_In_z_ _Printf_format_string_ const wchar_t *_Format,
_In_opt_ _locale_t _Locale,
va_list _ArgList);
_Check_return_opt_
_CRTIMP
int
__cdecl
_swprintf_s_l(
_Out_writes_z_(_DstSize) wchar_t *_DstBuf,
_In_ size_t _DstSize,
_In_z_ _Printf_format_string_ const wchar_t *_Format,
_In_opt_ _locale_t _Locale,
...);
_Check_return_opt_
_CRTIMP
int
__cdecl
_vswprintf_s_l(
_Out_writes_z_(_DstSize) wchar_t *_DstBuf,
_In_ size_t _DstSize,
_In_z_ _Printf_format_string_ const wchar_t *_Format,
_In_opt_ _locale_t _Locale,
va_list _ArgList);
_Check_return_opt_
_CRTIMP
int
__cdecl
_snwprintf_s_l(
_Out_writes_z_(_DstSize) wchar_t *_DstBuf,
_In_ size_t _DstSize,
_In_ size_t _MaxCount,
_In_z_ _Printf_format_string_ const wchar_t *_Format,
_In_opt_ _locale_t _Locale,
...);
_Check_return_opt_
_CRTIMP
int
__cdecl
_vsnwprintf_s_l(
_Out_writes_z_(_DstSize) wchar_t *_DstBuf,
_In_ size_t _DstSize,
_In_ size_t _MaxCount,
_In_z_ _Printf_format_string_ const wchar_t *_Format,
_In_opt_ _locale_t _Locale,
va_list _ArgList);
_Check_return_opt_
_CRTIMP
int
__cdecl
_fwscanf_s_l(
_Inout_ FILE *_File,
_In_z_ _Scanf_s_format_string_ const wchar_t *_Format,
_In_opt_ _locale_t _Locale,
...);
_Check_return_opt_
_CRTIMP
int
__cdecl
_swscanf_s_l(
_In_z_ const wchar_t *_Src,
_In_z_ _Scanf_s_format_string_ const wchar_t *_Format,
_In_opt_ _locale_t _Locale,
...);
_Check_return_opt_
_CRTIMP
int
__cdecl
_snwscanf_s(
_In_reads_(_MaxCount) _Pre_z_ const wchar_t *_Src,
_In_ size_t _MaxCount,
_In_z_ _Scanf_s_format_string_ const wchar_t *_Format,
...);
_Check_return_opt_
_CRTIMP
int
__cdecl
_snwscanf_s_l(
_In_reads_(_MaxCount) _Pre_z_ const wchar_t *_Src,
_In_ size_t _MaxCount,
_In_z_ _Scanf_s_format_string_ const wchar_t *_Format,
_In_opt_ _locale_t _Locale,
...);
_Check_return_opt_
_CRTIMP
int
__cdecl
_wscanf_s_l(
_In_z_ _Scanf_s_format_string_ const wchar_t *_Format,
_In_opt_ _locale_t _Locale,
...);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wfopen_s(
_Outptr_result_maybenull_ FILE **_File,
_In_z_ const wchar_t *_Filename,
_In_z_ const wchar_t *_Mode);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wfreopen_s(
_Outptr_result_maybenull_ FILE **_File,
_In_z_ const wchar_t *_Filename,
_In_z_ const wchar_t *_Mode,
_Inout_ FILE *_OldFile);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wtmpnam_s(
_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf,
_In_ size_t _SizeInWords);
#endif /* _WSTDIO_S_DEFINED */
#ifndef _WSTDLIB_S_DEFINED
#define _WSTDLIB_S_DEFINED
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_itow_s(
_In_ int _Val,
_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf,
_In_ size_t _SizeInWords,
_In_ int _Radix);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_ltow_s(
_In_ long _Val,
_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf,
_In_ size_t _SizeInWords,
_In_ int _Radix);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_ultow_s(
_In_ unsigned long _Val,
_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf,
_In_ size_t _SizeInWords,
_In_ int _Radix);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wgetenv_s(
_Out_ size_t *_ReturnSize,
_Out_writes_z_(_DstSizeInWords) wchar_t *_DstBuf,
_In_ size_t _DstSizeInWords,
_In_z_ const wchar_t *_VarName);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wdupenv_s(
_Outptr_result_buffer_maybenull_(*_BufferSizeInWords) _Deref_post_z_ wchar_t **_Buffer,
_Out_opt_ size_t *_BufferSizeInWords,
_In_z_ const wchar_t *_VarName);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_i64tow_s(
_In_ __int64 _Val,
_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf,
_In_ size_t _SizeInWords,
_In_ int _Radix);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_ui64tow_s(
_In_ unsigned __int64 _Val,
_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf,
_In_ size_t _SizeInWords,
_In_ int _Radix);
#endif /* _WSTDLIB_S_DEFINED */
#ifndef _POSIX_
#ifndef _WSTDLIBP_S_DEFINED
#define _WSTDLIBP_S_DEFINED
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wmakepath_s(
_Out_writes_z_(_SizeInBytes) wchar_t *_PathResult,
_In_ size_t _SizeInWords,
_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);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wputenv_s(
_In_z_ const wchar_t *_Name,
_In_z_ const wchar_t *_Value);
_CRTIMP
errno_t
__cdecl
_wsearchenv_s(
_In_z_ const wchar_t *_Filename,
_In_z_ const wchar_t *_EnvVar,
_Out_writes_z_(_SizeInWords) wchar_t *_ResultPath,
_In_ size_t _SizeInWords);
_CRTIMP
errno_t
__cdecl
_wsplitpath_s(
_In_z_ const wchar_t *_FullPath,
_Out_writes_opt_z_(_DriveSizeInWords) wchar_t *_Drive,
_In_ size_t _DriveSizeInWords,
_Out_writes_opt_z_(_DirSizeInWords) wchar_t *_Dir,
_In_ size_t _DirSizeInWords,
_Out_writes_opt_z_(_FilenameSizeInWords) wchar_t *_Filename,
_In_ size_t _FilenameSizeInWords,
_Out_writes_opt_z_(_ExtSizeInWords) wchar_t *_Ext,
_In_ size_t _ExtSizeInWords);
#endif /* _WSTDLIBP_S_DEFINED */
#endif /* _POSIX_ */
#ifndef _WSTRING_S_DEFINED
#define _WSTRING_S_DEFINED
_Check_return_
_CRTIMP
wchar_t *
__cdecl
wcstok_s(
_Inout_opt_z_ wchar_t *_Str,
_In_z_ const wchar_t *_Delim,
_Inout_ _Deref_prepost_opt_z_ wchar_t **_Context);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcserror_s(
_Out_writes_opt_z_(_SizeInWords) wchar_t *_Buf,
_In_ size_t _SizeInWords,
_In_ int _ErrNum);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
__wcserror_s(
_Out_writes_opt_z_(_SizeInWords) wchar_t *_Buffer,
_In_ size_t _SizeInWords,
_In_z_ const wchar_t *_ErrMsg);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcsnset_s(
_Inout_updates_z_(_DstSizeInWords) wchar_t *_Dst,
_In_ size_t _DstSizeInWords,
wchar_t _Val,
_In_ size_t _MaxCount);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcsset_s(
_Inout_updates_z_(_SizeInWords) wchar_t *_Str,
_In_ size_t _SizeInWords,
wchar_t _Val);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcslwr_s(
_Inout_updates_z_(_SizeInWords) wchar_t *_Str,
_In_ size_t _SizeInWords);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcslwr_s_l(
_Inout_updates_z_(_SizeInWords) wchar_t *_Str,
_In_ size_t _SizeInWords,
_In_opt_ _locale_t _Locale);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcsupr_s(
_Inout_updates_z_(_Size) wchar_t *_Str,
_In_ size_t _Size);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcsupr_s_l(
_Inout_updates_z_(_Size) wchar_t *_Str,
_In_ size_t _Size,
_In_opt_ _locale_t _Locale);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
wcsncat_s(
_Inout_updates_z_(_DstSizeInChars) wchar_t *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const wchar_t *_Src,
_In_ size_t _MaxCount);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcsncat_s_l(
_Inout_updates_z_(_DstSizeInChars) wchar_t *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const wchar_t *_Src,
_In_ size_t _MaxCount,
_In_opt_ _locale_t _Locale);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
wcsncpy_s(
_Out_writes_z_(_DstSizeInChars) wchar_t *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const wchar_t *_Src,
_In_ size_t _MaxCount);
_Check_return_wat_
_CRTIMP
errno_t
__cdecl
_wcsncpy_s_l(
_Out_writes_z_(_DstSizeInChars) wchar_t *_Dst,
_In_ size_t _DstSizeInChars,
_In_z_ const wchar_t *_Src,
_In_ size_t _MaxCount,
_In_opt_ _locale_t _Locale);
_CRTIMP
wchar_t *
__cdecl
_wcstok_s_l(
wchar_t *_Str,
const wchar_t *_Delim,
wchar_t **_Context,
_locale_t _Locale);
_CRTIMP
errno_t
__cdecl
_wcsset_s_l(
wchar_t *_Str,
size_t _SizeInChars,
unsigned int _Val,
_locale_t _Locale);
_CRTIMP
errno_t
__cdecl
_wcsnset_s_l(
wchar_t *_Str,
size_t _SizeInChars,
unsigned int _Val,
size_t _Count,
_locale_t _Locale);
#endif /* _WSTRING_S_DEFINED */
#ifndef _WTIME_S_DEFINED
#define _WTIME_S_DEFINED
_CRTIMP
errno_t
__cdecl
_wasctime_s(
_Out_writes_(_SizeInWords) _Post_readable_size_(26) wchar_t *_Buf,
_In_ size_t _SizeInWords,
_In_ const struct tm *_Tm);
_CRTIMP
errno_t
__cdecl
_wctime32_s(
_Out_writes_(_SizeInWords) _Post_readable_size_(26) wchar_t *_Buf,
_In_ size_t _SizeInWords,
_In_ const __time32_t *_Time);
_CRTIMP
errno_t
__cdecl
_wstrdate_s(
_Out_writes_(_SizeInWords) _Post_readable_size_(9) wchar_t *_Buf,
_In_range_(>= , 9) size_t _SizeInWords);
_CRTIMP
errno_t
__cdecl
_wstrtime_s(
_Out_writes_(_SizeInWords) _Post_readable_size_(9) wchar_t *_Buf,
_In_ size_t _SizeInWords);
_CRTIMP
errno_t
__cdecl
_wctime64_s(
_Out_writes_(_SizeInWords) _Post_readable_size_(26) wchar_t *_Buf,
_In_ size_t _SizeInWords,
_In_ const __time64_t *_Time);
#if !defined (RC_INVOKED) && !defined (_INC_WTIME_S_INL)
#define _INC_WTIME_S_INL
errno_t __cdecl _wctime_s(wchar_t *, size_t, const time_t *);
#ifndef _USE_32BIT_TIME_T
__CRT_INLINE errno_t __cdecl _wctime_s(wchar_t *_Buffer,size_t _SizeInWords,const time_t *_Time) { return _wctime64_s(_Buffer,_SizeInWords,_Time); }
#endif
#endif
#endif /* _WTIME_S_DEFINED */
_CRTIMP
errno_t
__cdecl
mbsrtowcs_s(
_Out_opt_ size_t *_Retval,
_Out_writes_opt_z_(_SizeInWords) wchar_t *_Dst,
_In_ size_t _SizeInWords,
_Inout_ _Deref_prepost_opt_valid_ const char **_PSrc,
_In_ size_t _N,
_Out_opt_ mbstate_t *_State);
_CRTIMP
errno_t
__cdecl
wcrtomb_s(
_Out_opt_ size_t *_Retval,
_Out_writes_opt_z_(_SizeInBytes) char *_Dst,
_In_ size_t _SizeInBytes,
_In_ wchar_t _Ch,
_Out_opt_ mbstate_t *_State);
_CRTIMP
errno_t
__cdecl
wcsrtombs_s(
_Out_opt_ size_t *_Retval,
_Out_writes_bytes_to_opt_(_SizeInBytes, *_Retval) char *_Dst,
_In_ size_t _SizeInBytes,
_Inout_ _Deref_prepost_z_ const wchar_t **_Src,
_In_ size_t _Size,
_Out_opt_ mbstate_t *_State);
#ifdef __cplusplus
}
#endif
#endif /* MINGW_HAS_SECURE_API */
#endif /* _INC_WCHAR_S */