Sign in
ara-mdk
/
platform
/
external
/
valgrind
/
ddadfd116433f2c4300dd22600c9bf572b2eb1c1
/
.
/
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
;
}