posix.cfg: Added more functions and comments.

This commit is contained in:
orbitcowboy 2016-01-21 16:14:59 +01:00
parent 82c663090e
commit 1464990dad
2 changed files with 40 additions and 3 deletions

View File

@ -481,6 +481,27 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
<not-bool/> <not-bool/>
</arg> </arg>
</function> </function>
<!-- char *strfry(char *string); -->
<function name="strfry">
<noreturn>false</noreturn>
<arg nr="1">
<not-null/>
</arg>
</function>
<!-- char *strsep(char **stringp, const char *delim); -->
<function name="strsep">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
<not-uninit/>
<not-null/>
</arg>
<arg nr="2">
<not-null/>
<not-uninit/>
</arg>
</function>
<!-- char *strdup(const char *s); -->
<function name="strdup"> <function name="strdup">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<arg nr="1"> <arg nr="1">
@ -958,6 +979,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<valid>0:</valid> <valid>0:</valid>
</arg> </arg>
</function> </function>
<!-- int strcasecmp(const char *s1, const char *s2); -->
<function name="strcasecmp"> <function name="strcasecmp">
<pure/> <pure/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -971,6 +993,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<not-uninit/> <not-uninit/>
</arg> </arg>
</function> </function>
<!-- int strncasecmp(const char *s1, const char *s2, size_t n); -->
<function name="strncasecmp"> <function name="strncasecmp">
<pure/> <pure/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -2299,6 +2322,20 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
</arg> </arg>
<warn severity="style" reason="Obsolescent" alternatives="wcsstr"/> <warn severity="style" reason="Obsolescent" alternatives="wcsstr"/>
</function> </function>
<!-- char *stpcpy(char *desstr, const char *srcstr); -->
<function name="stpcpy">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
<not-null/>
<minsize type="strlen" arg="2"/>
</arg>
<arg nr="2">
<not-null/>
<not-uninit/>
<strz/>
</arg>
</function>
<!-- char *index(const char *s, int c); --> <!-- char *index(const char *s, int c); -->
<function name="index"> <function name="index">
<use-retval/> <use-retval/>

View File

@ -3365,7 +3365,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
</arg> </arg>
</function> </function>
<!-- const char * strrchr(const char * str, int character);--> <!-- const char * strrchr(const char * str, int character);-->
<!-- char * strrchr( char * str, int character); --> <!-- char * strrchr(char * str, int character); -->
<function name="strrchr,std::strrchr"> <function name="strrchr,std::strrchr">
<use-retval/> <use-retval/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -3380,7 +3380,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
</arg> </arg>
</function> </function>
<!-- const char * strpbrk(const char * str1, const char * str2);--> <!-- const char * strpbrk(const char * str1, const char * str2);-->
<!-- char * strpbrk( char * str1, const char * str2); --> <!-- char * strpbrk(char * str1, const char * str2); -->
<function name="strbprk"> <function name="strbprk">
<use-retval/> <use-retval/>
<pure/> <pure/>
@ -3396,7 +3396,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
</arg> </arg>
</function> </function>
<!-- const wchar_t* wcsrchr(const wchar_t* ws, wchar_t wc);--> <!-- const wchar_t* wcsrchr(const wchar_t* ws, wchar_t wc);-->
<!-- wchar_t* wcsrchr( wchar_t* ws, wchar_t wc); --> <!-- wchar_t* wcsrchr(wchar_t* ws, wchar_t wc); -->
<function name="wcsrchr,std::wcsrchr"> <function name="wcsrchr,std::wcsrchr">
<use-retval/> <use-retval/>
<noreturn>false</noreturn> <noreturn>false</noreturn>