diff --git a/cfg/posix.cfg b/cfg/posix.cfg index b6d3af2e3..bceb9af40 100644 --- a/cfg/posix.cfg +++ b/cfg/posix.cfg @@ -16,7 +16,9 @@ - + + + false @@ -26,6 +28,62 @@ + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + 0: + + + + + + diff --git a/test/cfg/posix.c b/test/cfg/posix.c index cf7ee0db3..aad3c5f26 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -30,6 +30,38 @@ #include #include +int nullPointer_aio_cancel(int fd, struct aiocb *aiocbp) +{ + // No warning is expected + (void)aio_cancel(fd, NULL); + // No warning is expected + return aio_cancel(fd, aiocbp); +} + +int nullPointer_aio_fsync(int op, struct aiocb *aiocbp) +{ + // cppcheck-suppress nullPointer + (void)aio_fsync(op, NULL); + // No warning is expected + return aio_fsync(op, aiocbp); +} + +ssize_t nullPointer_aio_return(struct aiocb *aiocbp) +{ + // cppcheck-suppress nullPointer + (void)aio_return(NULL); + // No warning is expected + return aio_return(aiocbp); +} + +int nullPointer_aio_error(const struct aiocb *aiocbp) +{ + // cppcheck-suppress nullPointer + (void)aio_error(NULL); + // No warning is expected + return aio_error(aiocbp); +} + int nullPointer_aio_read(struct aiocb *aiocbp) { // cppcheck-suppress nullPointer @@ -38,6 +70,14 @@ int nullPointer_aio_read(struct aiocb *aiocbp) return aio_read(aiocbp); } +int nullPointer_aio_write(struct aiocb *aiocbp) +{ + // cppcheck-suppress nullPointer + (void)aio_write(NULL); + // No warning is expected + return aio_write(aiocbp); +} + int nullPointer_aio_suspend(const struct aiocb *const aiocb_list[], int nitems, const struct timespec *restrict timeout) { // cppcheck-suppress nullPointer