diff --git a/cfg/bsd.cfg b/cfg/bsd.cfg index 67ad8a4fa..cb655f151 100644 --- a/cfg/bsd.cfg +++ b/cfg/bsd.cfg @@ -1,5 +1,63 @@ + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + diff --git a/cfg/gnu.cfg b/cfg/gnu.cfg index 3dc0a3a8d..9334e8d8d 100644 --- a/cfg/gnu.cfg +++ b/cfg/gnu.cfg @@ -89,6 +89,64 @@ + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false diff --git a/cfg/posix.cfg b/cfg/posix.cfg index b6f99508e..ad989c6c8 100644 --- a/cfg/posix.cfg +++ b/cfg/posix.cfg @@ -726,64 +726,6 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func - - - false - - - - - - - - - - - false - - - - - - - - - - false - - - - - - - - - - - - - - - - - false - - - - - - - - - - - - - - - - - diff --git a/test/cfg/bsd.c b/test/cfg/bsd.c index 8b0d47520..be350f284 100644 --- a/test/cfg/bsd.c +++ b/test/cfg/bsd.c @@ -9,6 +9,18 @@ #include #include #include +#include + +// #9323, #9331 +void verify_timercmp(struct timeval t) +{ + (void)timercmp(&t, &t, <); + (void)timercmp(&t, &t, <=); + (void)timercmp(&t, &t, ==); + (void)timercmp(&t, &t, !=); + (void)timercmp(&t, &t, >=); + (void)timercmp(&t, &t, >); +} // size_t strlcat(char *dst, const char *src, size_t size); void uninitvar_strlcat(char *Ct, const char *S, size_t N) diff --git a/test/cfg/gnu.c b/test/cfg/gnu.c index 769a3c84c..0b942d9b8 100644 --- a/test/cfg/gnu.c +++ b/test/cfg/gnu.c @@ -11,10 +11,22 @@ #include #include #include +#include #ifndef __CYGWIN__ #include #endif +// #9323, #9331 +void verify_timercmp(struct timeval t) +{ + (void)timercmp(&t, &t, <); + (void)timercmp(&t, &t, <=); + (void)timercmp(&t, &t, ==); + (void)timercmp(&t, &t, !=); + (void)timercmp(&t, &t, >=); + (void)timercmp(&t, &t, >); +} + // Declaration necessary because there is no specific / portable header. extern void *xcalloc(size_t nmemb, size_t size); extern void *xmalloc(size_t size); diff --git a/test/cfg/posix.c b/test/cfg/posix.c index a918ec60f..0649b300a 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include // unavailable on some linux systems #include @@ -24,14 +23,6 @@ #include #include -// #9323, #9331 -void verify_timercmp(struct timeval t) -{ - (void)timercmp(&t, &t, <); - (void)timercmp(&t, &t, >); - (void)timercmp(&t, &t, !=); -} - void memleak_scandir(void) { struct dirent **namelist;