FreeBSD: add file descriptor tracking for _umtx_op
[valgrind.git] / none / tests / fdleak_socketpair.c
blob62059200411e6b3423a3d8d6f6f981246198c0e4
1 #include <sys/types.h>
2 #include <sys/socket.h>
3 #include <unistd.h>
4 #include "fdleak.h"
5 #include <sys/errno.h>
7 int main (int argc, char **argv)
9 int fds[2];
11 CLOSE_INHERITED_FDS;
13 (void) DO( socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, fds) );
15 return 0;