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/>
</arg>
</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">
<noreturn>false</noreturn>
<arg nr="1">
@ -958,6 +979,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<valid>0:</valid>
</arg>
</function>
<!-- int strcasecmp(const char *s1, const char *s2); -->
<function name="strcasecmp">
<pure/>
<noreturn>false</noreturn>
@ -971,6 +993,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<not-uninit/>
</arg>
</function>
<!-- int strncasecmp(const char *s1, const char *s2, size_t n); -->
<function name="strncasecmp">
<pure/>
<noreturn>false</noreturn>
@ -2299,6 +2322,20 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
</arg>
<warn severity="style" reason="Obsolescent" alternatives="wcsstr"/>
</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); -->
<function name="index">
<use-retval/>

View File

@ -3365,7 +3365,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
</arg>
</function>
<!-- 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">
<use-retval/>
<noreturn>false</noreturn>
@ -3380,7 +3380,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
</arg>
</function>
<!-- 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">
<use-retval/>
<pure/>
@ -3396,7 +3396,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
</arg>
</function>
<!-- 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">
<use-retval/>
<noreturn>false</noreturn>