Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
valgrind
/
3d49844cbcda6e89197326884dd7462a1d320fbd
/
.
/
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
;
}