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