std.cfg and windows.cfg: Improved support for freopen-functions.

This commit is contained in:
orbitcowboy 2017-03-19 18:23:31 +01:00
parent c18fe8262b
commit 6111b38ebb
2 changed files with 55 additions and 0 deletions

View File

@ -1100,6 +1100,25 @@
<not-uninit/>
</arg>
</function>
<!-- errno_t freopen_s(FILE *restrict *restrict newstreamptr, const char *restrict filename, const char *restrict mode, FILE *restrict stream) -->
<function name="freopen_s">
<noreturn>false</noreturn>
<use-retval/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2">
<not-uninit/>
</arg>
<arg nr="3">
<not-null/>
<not-uninit/>
</arg>
<arg nr="4">
<not-null/>
<not-uninit/>
</arg>
</function>
<!-- double frexp(double x, int *exp); -->
<!-- float frexpf(float x, int *exp); -->
<!-- long double frexpl(long double x, int *exp); -->

View File

@ -3428,4 +3428,40 @@ HFONT CreateFont(
<not-uninit/>
</arg>
</function>
<!-- errno_t _wfreopen_s(FILE** pFile, const wchar_t *path, const wchar_t *mode, FILE *stream); -->
<function name="_wfreopen_s,_tfreopen_s">
<noreturn>false</noreturn>
<use-retval/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2">
<not-uninit/>
</arg>
<arg nr="3">
<not-null/>
<not-uninit/>
</arg>
<arg nr="4">
<not-null/>
<not-uninit/>
</arg>
</function>
<!-- FILE *_wfreopen(const wchar_t *path, const wchar_t *mode, FILE *stream); -->
<function name="_wfreopen,_tfreopen">
<noreturn>false</noreturn>
<use-retval/>
<arg nr="1">
<not-uninit/>
<strz/>
</arg>
<arg nr="2">
<not-null/>
<not-uninit/>
</arg>
<arg nr="3">
<not-null/>
<not-uninit/>
</arg>
</function>
</def>