ftmemsim-valgrind/none/tests/fdleak_socketpair.c
Paul Floyd 53dd9bd255 FreeBSD support, patch 9
cachegrind callgrind dhat exp-bbv gdbserver_tests massif none mpi shared

Mostly these are just updates (and new testcases) under new/tests
The other directories have just #ifdef changes
2021-10-07 22:41:22 +02:00

17 lines
269 B
C

#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include "fdleak.h"
#include <sys/errno.h>
int main (int argc, char **argv)
{
int fds[2];
CLOSE_INHERITED_FDS;
(void) DO( socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, fds) );
return 0;
}