parent
59fdbd8435
commit
12c851d9a8
|
@ -726,6 +726,26 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
</arg>
|
</arg>
|
||||||
</function>
|
</function>
|
||||||
|
<!-- int timercmp(struct timeval *a, struct timeval *b, CMP)-->
|
||||||
|
<function name="timercmp">
|
||||||
|
<noreturn>false</noreturn>
|
||||||
|
<leak-ignore/>
|
||||||
|
<use-retval/>
|
||||||
|
<returnValue type="int"/>
|
||||||
|
<arg nr="1" direction="in">
|
||||||
|
<not-uninit/>
|
||||||
|
<not-null/>
|
||||||
|
</arg>
|
||||||
|
<arg nr="2" direction="in">
|
||||||
|
<not-uninit/>
|
||||||
|
<not-null/>
|
||||||
|
</arg>
|
||||||
|
<arg nr="3" direction="in">
|
||||||
|
<not-uninit/>
|
||||||
|
</arg>
|
||||||
|
</function>
|
||||||
|
<!-- int timercmp(struct timeval *a, struct timeval *b, CMP)-->
|
||||||
|
<define name="timercmp(a,b,CMP)" value="(((a)->tv_sec == (b)->tv_sec) ? ((a)->tv_usec CMP (b)->tv_usec) : ((a)->tv_sec CMP (b)->tv_sec))"/>
|
||||||
<!-- http://man7.org/linux/man-pages/man3/dirfd.3.html -->
|
<!-- http://man7.org/linux/man-pages/man3/dirfd.3.html -->
|
||||||
<!-- int dirfd(DIR *dirp); -->
|
<!-- int dirfd(DIR *dirp); -->
|
||||||
<function name="dirfd">
|
<function name="dirfd">
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#include <sys/time.h>
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
// unavailable on some linux systems #include <ndbm.h>
|
// unavailable on some linux systems #include <ndbm.h>
|
||||||
|
@ -23,6 +24,14 @@
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
// #9323, #9331
|
||||||
|
void verify_timercmp(struct timeval t)
|
||||||
|
{
|
||||||
|
(void)timercmp(&t, &t, <);
|
||||||
|
(void)timercmp(&t, &t, >);
|
||||||
|
(void)timercmp(&t, &t, !=);
|
||||||
|
}
|
||||||
|
|
||||||
void memleak_scandir(void)
|
void memleak_scandir(void)
|
||||||
{
|
{
|
||||||
struct dirent **namelist;
|
struct dirent **namelist;
|
||||||
|
|
Loading…
Reference in New Issue