Add utime function to posix.cfg

This commit is contained in:
Joshua Rogers 2015-03-09 00:43:25 +11:00
parent 39633ef26f
commit 841a27c19d
2 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,16 @@
<?xml version="1.0"?>
<def format="1">
<function name="utime">
<noreturn>false</noreturn>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2">
<not-uninit/>
</arg>
<leak-ignore/>
</function>
<function name="usleep">
<noreturn>false</noreturn>
<arg nr="1">

View File

@ -46,6 +46,8 @@ void nullPointer(char *p) {
getcwd (0, 0);
// cppcheck-suppress nullPointer
readdir (0);
// cppcheck-suppress nullPointer
utime(NULL, NULL);
}
void memleak_getaddrinfo() {