windows.cfg, posix.cfg: Added support for more functions.
This commit is contained in:
parent
7d8853d604
commit
82c663090e
|
@ -2616,6 +2616,22 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
|
|||
<not-uninit/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- see http://man7.org/linux/man-pages/man3/wcsnlen.3.html-->
|
||||
<!-- size_t wcsnlen(const wchar_t *s, size_t maxlen);-->
|
||||
<!-- see http://man7.org/linux/man-pages/man3/strnlen.3.html-->
|
||||
<!-- size_t strnlen(const char *s, size_t maxlen); -->
|
||||
<function name="strnlen,wcsnlen">
|
||||
<use-retval/>
|
||||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
<arg nr="1">
|
||||
<not-null/>
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
<arg nr="2">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
</function>
|
||||
<memory>
|
||||
<alloc init="true">strdup</alloc>
|
||||
<alloc init="true">strndup</alloc>
|
||||
|
|
|
@ -1955,4 +1955,37 @@ HFONT CreateFont(
|
|||
<not-uninit/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- size_t strnlen_s(const char *str, size_t numberOfElements);
|
||||
size_t wcsnlen_s(const wchar_t *str, size_t numberOfElements);
|
||||
size_t _mbsnlen(const unsigned char *str, size_t numberOfElements);
|
||||
size_t _mbstrnlen(const char *str, size_t numberOfElements);-->
|
||||
<function name="strnlen_s,wcsnlen_s,_mbsnlen,_mbstrnlen">
|
||||
<use-retval/>
|
||||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
<arg nr="1">
|
||||
<not-null/>
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
<arg nr="2">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- size_t _mbsnlen_l(const unsigned char *str, size_t numberOfElements, _locale_t locale);
|
||||
size_t _mbstrnlen_l(const char *str, size_t numberOfElements, _locale_t locale);-->
|
||||
<function name="_mbsnlen_l,_mbstrnlen_l">
|
||||
<use-retval/>
|
||||
<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>
|
||||
</def>
|
||||
|
|
Loading…
Reference in New Issue