cppcheck/cfg/bsd.cfg

229 lines
5.7 KiB
INI
Raw Normal View History

<?xml version="1.0"?>
<def format="2">
<!-- https://www.freebsd.org/cgi/man.cgi?query=fts&sektion=3 -->
<!-- FTS * fts_open(char * const *path_argv, int options, int (*compar)(const FTSENT * const *, const FTSENT * const *)); -->
<function name="fts_open">
<returnValue type="FTS *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2">
<not-uninit/>
</arg>
<arg nr="3">
<not-uninit/>
<not-null/>
</arg>
</function>
<!-- FTSENT * fts_read(FTS *ftsp); -->
<function name="fts_read">
<returnValue type="FTSENT *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
<not-null/>
</arg>
</function>
<!-- FTSENT * fts_children(FTS *ftsp, int options); -->
<function name="fts_children">
<returnValue type="FTSENT *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2">
<not-uninit/>
</arg>
</function>
<!-- int fts_set(FTS *ftsp, FTSENT *f, int options); -->
<function name="fts_set">
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="3">
<not-uninit/>
</arg>
<arg nr="2">
<not-uninit/>
</arg>
</function>
<!-- void fts_set_clientptr(FTS *ftsp, void *clientdata); -->
<function name="fts_set_clientptr">
<returnValue type="void"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2">
<not-uninit/>
</arg>
</function>
<!-- void * fts_get_clientptr(FTS *ftsp); -->
<function name="fts_get_clientptr">
<returnValue type="void *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
</arg>
</function>
<!-- FTS * fts_get_stream(FTSENT *f); -->
<function name="fts_get_stream">
<returnValue type="FTS *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
</arg>
</function>
<!-- int fts_close(FTS *ftsp); -->
<function name="fts_close">
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
</arg>
</function>
<!-- https://www.freebsd.org/cgi/man.cgi?query=readpassphrase
char *readpassphrase(const char *prompt, char *buf, size_t bufsiz, int flags); -->
<function name="readpassphrase">
<returnValue type="char *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2">
<not-null/>
<minsize type="argvalue" arg="3"/>
</arg>
<arg nr="3">
<not-uninit/>
<not-null/>
</arg>
<arg nr="4">
<not-uninit/>
</arg>
<leak-ignore/>
</function>
<!-- https://www.freebsd.org/cgi/man.cgi?query=setfib&sektion=2
int setfib(int fib); -->
<function name="setfib">
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
</arg>
</function>
<!-- https://www.freebsd.org/cgi/man.cgi?query=strtonum
long long strtonum(const char *nptr, long long minval, long long maxval, const char **errstr); -->
<function name="strtonum">
<returnValue type="long long"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
<not-null/>
</arg>
<arg nr="2">
<not-uninit/>
</arg>
<arg nr="3">
<not-uninit/>
</arg>
<arg nr="4">
<not-uninit/>
</arg>
<leak-ignore/>
</function>
2018-05-30 16:47:00 +02:00
<!-- https://www.freebsd.org/cgi/man.cgi?query=strlcat
size_t strlcat(char *dst, const char *src, size_t size); -->
<function name="strlcat">
<returnValue type="size_t"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
<not-null/>
<not-uninit/>
<strz/>
<minsize type="argvalue" arg="3"/>
</arg>
<arg nr="2">
<not-null/>
<not-uninit/>
</arg>
<arg nr="3">
<not-uninit/>
<not-bool/>
<valid>0:</valid>
</arg>
</function>
<!-- https://www.freebsd.org/cgi/man.cgi?query=strlcpy
size_t strlcpy(char * restrict dst, const char * restrict src, size_t dstsize); -->
<function name="strlcpy">
<returnValue type="size_t"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
<minsize type="argvalue" arg="3"/>
</arg>
<arg nr="2">
<not-null/>
<not-uninit/>
</arg>
<arg nr="3">
<not-uninit/>
<not-bool/>
<valid>0:</valid>
</arg>
</function>
<!-- https://www.freebsd.org/cgi/man.cgi?query=arc4random -->
<!-- uint32_t arc4random(void); -->
<function name="arc4random">
<noreturn>false</noreturn>
<returnValue type="uint32_t"/>
<use-retval/>
</function>
<!-- void arc4random_buf(void *buf, size_t nbytes); -->
<function name="arc4random_buf">
<noreturn>false</noreturn>
<returnValue type="void"/>
<leak-ignore/>
<arg nr="1">
<not-null/>
<minsize type="argvalue" arg="2"/>
</arg>
<arg nr="2">
<not-uninit/>
<valid>1:</valid>
</arg>
</function>
<!-- uint32_t arc4random_uniform(uint32_t upper_bound); -->
<function name="arc4random_uniform">
<noreturn>false</noreturn>
<returnValue type="uint32_t"/>
<use-retval/>
<arg nr="1">
<not-uninit/>
<valid>2:</valid>
</arg>
</function>
<!-- void arc4random_stir(void); -->
<function name="arc4random_stir">
<noreturn>false</noreturn>
</function>
<!-- void arc4random_addrandom(unsigned char *dat, int datlen); -->
<function name="arc4random_addrandom">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
<minsize type="argvalue" arg="2"/>
</arg>
<arg nr="2">
<not-uninit/>
<valid>0:</valid>
</arg>
</function>
<podtype name="FTS"/>
<podtype name="FTSENT"/>
</def>