posix.cfg and windows.cfg: Added support for more functions.

This commit is contained in:
orbitcowboy 2016-01-12 17:00:33 +01:00
parent 14670f743e
commit b6fd9e2509
2 changed files with 79 additions and 11 deletions

View File

@ -2545,6 +2545,31 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<not-uninit/>
</arg>
</function>
<!-- int fseeko(FILE *stream, off_t offset, int whence); -->
<function name="fseeko">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2">
<not-null/>
</arg>
<arg nr="3">
<not-null/>
</arg>
</function>
<!-- off_t ftello(FILE *stream); -->
<function name="ftello">
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
</function>
<memory>
<alloc init="true">strdup</alloc>
<alloc init="true">strndup</alloc>

View File

@ -982,6 +982,11 @@
<alloc init="true">HeapCreate</alloc>
<dealloc>HeapDestroy</dealloc>
</resource>
<resource>
<alloc init="true">_wfopen</alloc>
<alloc init="true">_tfopen</alloc>
<dealloc>fclose</dealloc>
</resource>
<memory>
<alloc>ExAllocatePool</alloc>
<alloc>ExAllocatePoolWithQuota</alloc>
@ -1912,4 +1917,42 @@ HFONT CreateFont(
<not-null/>
</arg>
</function>
<!-- int _fseeki64(FILE *stream, __int64 offset, int origin); -->
<function name="_fseeki64">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2">
<not-uninit/>
</arg>
<arg nr="3">
<not-uninit/>
</arg>
</function>
<!-- __int64 _ftelli64(FILE *stream); -->
<function name="_ftelli64">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
</function>
<!-- FILE *_wfopen(const wchar_t *filename, const wchar_t *mode); -->
<function name="_wfopen,_tfopen">
<use-retval/>
<noreturn>false</noreturn>
<arg nr="1">
<not-null/>
<not-uninit/>
<strz/>
</arg>
<arg nr="2">
<not-null/>
<not-uninit/>
</arg>
</function>
</def>