From f3907e4c9e0ea776b077250bcebb08cf899f0b16 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Tue, 19 Apr 2022 21:13:09 +0200 Subject: [PATCH] posix.cfg: Added support for aio_suspend(). --- cfg/posix.cfg | 21 +++++++++++++++++++++ test/cfg/posix.c | 9 +++++++++ 2 files changed, 30 insertions(+) diff --git a/cfg/posix.cfg b/cfg/posix.cfg index a37842d0a..1c7ca1498 100644 --- a/cfg/posix.cfg +++ b/cfg/posix.cfg @@ -14,6 +14,27 @@ + + + + + + false + + + + + + + + + 0: + + + + + + diff --git a/test/cfg/posix.c b/test/cfg/posix.c index 59090d3f8..fb3e3f92b 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -7,6 +7,7 @@ // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // +#include #include #include // <- FILE #include @@ -29,6 +30,14 @@ #include #include +int nullPointer_aio_suspend(const struct aiocb *const aiocb_list[], int nitems, const struct timespec *restrict timeout) +{ + // cppcheck-suppress nullPointer + (void)aio_suspend(NULL, nitems, timeout); + // No warning is expected + return aio_suspend(aiocb_list, nitems, timeout); +} + // Note: Since glibc 2.28, this function symbol is no longer available to newly linked applications. void invalidFunctionArg_llseek(int fd, loff_t offset, int origin) {