posix.cfg: Improved tests for socketpair()

This commit is contained in:
orbitcowboy 2022-04-26 18:13:24 +02:00
parent 17189e1d6e
commit fa351e010b
1 changed files with 7 additions and 0 deletions

View File

@ -31,6 +31,13 @@
#include <wchar.h> #include <wchar.h>
#include <string.h> #include <string.h>
int nullPointer_socketpair(int domain, int t, int protocol, int sv[2])
{
// cppcheck-suppress nullPointer
(void) socketpair(domain, t, protocol, NULL);
return socketpair(domain, t, protocol, sv);
}
void nullPointer_lcong48(unsigned short param[7]) void nullPointer_lcong48(unsigned short param[7])
{ {
// cppcheck-suppress nullPointer // cppcheck-suppress nullPointer