Sign in
ara-mdk
/
platform
/
external
/
valgrind
/
480cb1d962004413e84c441c5583a007a16bb3ba
/
.
/
main
/
none
/
tests
/
fdleak_socketpair.c
blob: 45b75cce928e87326aa9329473cb4bb43d141056 [
file
] [
log
] [
blame
]
#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
;
DO
(
socketpair
(
AF_UNIX
,
SOCK_STREAM
,
PF_UNSPEC
,
fds
)
);
return
0
;
}