cppcheck/cfg/posix.cfg

186 lines
6.5 KiB
INI
Raw Normal View History

<?xml version="1.0"?>
<def format="1">
<function name="usleep"> <noreturn>false</noreturn> <arg nr="1"><not-bool/><valid>0:999999</valid></arg> </function>
<function name="_exit"> <noreturn>true</noreturn> </function>
<function name="closedir"><use-retval/><noreturn>false</noreturn> <arg nr="1"><not-bool/><not-uninit/><not-null/></arg> </function>
2014-08-15 16:01:48 +02:00
<function name="strdup">
<use-retval/>
2014-08-15 16:01:48 +02:00
<noreturn>false</noreturn>
<arg nr="1"><not-null/><not-uninit/></arg>
</function>
2014-08-15 16:01:48 +02:00
<function name="strdupa">
<use-retval/>
2014-08-15 16:01:48 +02:00
<noreturn>false</noreturn>
<arg nr="1"><not-null/><not-uninit/></arg>
2014-08-15 16:01:48 +02:00
</function>
<function name="strndup">
<use-retval/>
2014-08-15 16:01:48 +02:00
<noreturn>false</noreturn>
<arg nr="1"><not-null/><not-uninit/></arg>
<arg nr="2"><not-uninit/></arg>
</function>
<function name="strndupa">
<use-retval/>
2014-08-15 16:01:48 +02:00
<noreturn>false</noreturn>
<arg nr="1"><not-null/><not-uninit/></arg>
<arg nr="2"><not-uninit/></arg>
</function>
<function name="wcsdup">
<use-retval/>
2014-08-15 16:01:48 +02:00
<noreturn>false</noreturn>
<arg nr="1"><not-null/><not-uninit/></arg>
</function>
<function name="mkstemp"><use-retval/><noreturn>false</noreturn> <arg nr="1"><not-uninit/><not-null/></arg> <leak-ignore/> </function>
<function name="mkdtemp"><use-retval/><noreturn>false</noreturn> <arg nr="1"><not-uninit/><not-null/></arg> <leak-ignore/> </function>
<function name="mktemp"><use-retval/><noreturn>false</noreturn> <arg nr="1"><not-uninit/><not-null/></arg> <leak-ignore/> </function>
<function name="getcwd">
<use-retval/>
<noreturn>false</noreturn>
<arg nr="2"><not-uninit/></arg>
<leak-ignore/>
</function>
<function name="mkdir">
<use-retval/>
<noreturn>false</noreturn>
<arg nr="1"><not-uninit/><not-null/></arg>
<arg nr="2"><not-uninit/></arg>
<leak-ignore/>
</function>
<function name="rmdir"> <noreturn>false</noreturn> <arg nr="1"><not-uninit/><not-null/></arg> <leak-ignore/> </function>
2014-03-25 18:24:41 +01:00
<function name="chdir"> <noreturn>false</noreturn> <arg nr="1"><not-uninit/><not-null/></arg> <leak-ignore/> </function>
<function name="fchdir"> <noreturn>false</noreturn> <arg nr="1"><not-uninit/><not-null/></arg> <leak-ignore/> </function>
<function name="link">
<use-retval/>
<noreturn>false</noreturn>
<arg nr="1"><not-uninit/><not-null/></arg>
<arg nr="2"><not-uninit/><not-null/></arg>
<leak-ignore/>
</function>
<function name="rename"><use-retval/><noreturn>false</noreturn> <arg nr="1"><not-uninit/><not-null/></arg> <leak-ignore/> </function>
<function name="isatty"><use-retval/><noreturn>false</noreturn> <arg nr="1"><not-uninit/></arg> <leak-ignore/> </function>
<function name="popen"><use-retval/><noreturn>false</noreturn><arg nr="1"><not-null/><not-uninit/></arg><arg nr="2"><not-null/><not-uninit/></arg></function>
<function name="pclose"><use-retval/><noreturn>false</noreturn><arg nr="1"><not-null/><not-uninit/></arg></function>
<function name="fdopen"><use-retval/><noreturn>false</noreturn><arg nr="1"><not-null/><not-uninit/></arg></function>
<function name="rand_r">
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/></arg>
</function>
<function name="memmem">
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-uninit/><not-null/></arg>
<arg nr="2"><not-uninit/></arg>
<arg nr="3"><not-uninit/><not-null/></arg>
<arg nr="4"><not-uninit/></arg>
2014-08-15 16:01:48 +02:00
</function>
<function name="memrchr">
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/><not-uninit/></arg>
<arg nr="2"><not-uninit/><not-bool/><valid>0:</valid></arg>
<arg nr="3"><not-bool/><valid>0:</valid></arg>
2014-08-15 16:01:48 +02:00
</function>
<function name="rawmemchr">
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/><not-uninit/></arg>
<arg nr="2"><not-uninit/><not-bool/><valid>0:</valid></arg>
</function>
<function name="strcasecmp">
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-uninit/><not-null/></arg>
<arg nr="2"><not-uninit/><not-null/></arg>
</function>
<function name="strncasecmp">
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-uninit/><not-null/></arg>
<arg nr="2"><not-uninit/><not-null/></arg>
<arg nr="3"><not-bool/><valid>0:</valid></arg>
</function>
<function name="read">
<use-retval/>
<arg nr="1"><not-uninit/></arg>
<arg nr="2"><minsize type="argvalue" arg="3"/></arg>
<arg nr="3"><not-uninit/></arg>
</function>
<function name="write">
<use-retval/>
<arg nr="1"><not-uninit/></arg>
<arg nr="2"><minsize type="argvalue" arg="3"/></arg>
<arg nr="3"><not-uninit/></arg>
</function>
<function name="recv">
<use-retval/>
<arg nr="1"><not-uninit/></arg>
<arg nr="2"><minsize type="argvalue" arg="3"/></arg>
<arg nr="3"><not-uninit/></arg>
<arg nr="4"><not-uninit/></arg>
</function>
<function name="recvfrom">
<use-retval/>
<arg nr="1"><not-uninit/></arg>
<arg nr="2"><minsize type="argvalue" arg="3"/></arg>
<arg nr="3"><not-uninit/></arg>
<arg nr="4"><not-uninit/></arg>
</function>
<function name="send">
<use-retval/>
<arg nr="1"><not-uninit/></arg>
<arg nr="2"><minsize type="argvalue" arg="3"/></arg>
<arg nr="3"><not-uninit/></arg>
<arg nr="4"><not-uninit/></arg>
</function>
<function name="sendto">
<use-retval/>
<arg nr="1"><not-uninit/></arg>
<arg nr="2"><minsize type="argvalue" arg="3"/></arg>
<arg nr="3"><not-uninit/></arg>
<arg nr="4"><not-uninit/></arg>
</function>
<memory>
<dealloc>free</dealloc>
<alloc init="true">strdup</alloc>
<alloc init="true">strndup</alloc>
<alloc init="true">strdupa</alloc>
<alloc init="true">strndupa</alloc>
2014-08-15 16:01:48 +02:00
<alloc init="true">wcsdup</alloc>
</memory>
2014-01-26 09:42:46 +01:00
<resource>
<dealloc>close</dealloc>
<alloc init="true">open</alloc>
2014-01-26 09:42:46 +01:00
<alloc init="true">socket</alloc>
</resource>
<resource>
<dealloc>closedir</dealloc>
<alloc init="true">opendir</alloc>
<alloc init="true">fdopendir</alloc>
</resource>
2014-04-18 15:20:16 +02:00
<resource>
<dealloc>fclose</dealloc>
<alloc init="true">fdopen</alloc>
</resource>
2014-04-18 15:20:16 +02:00
<resource>
<dealloc>pclose</dealloc>
<alloc init="true">popen</alloc>
</resource>
<podtype name="in_port_t" sign="u" size="2"/>
<podtype name="in_addr_t" sign="u" size="4"/>
<podtype name="socklen_t" sign="u" size="4"/>
<podtype name="sa_family_t" sign="u" size="2"/>
</def>