repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR422261 platform selection fails for unqualified client name
[valgrind.git]
/
none
/
tests
/
fdleak_socketpair.c
blob
19c07750393449dacab501fb3144e5dd32498ca7
1
#include <sys/socket.h>
2
#include <unistd.h>
3
#include
"fdleak.h"
4
#include <sys/errno.h>
5
6
int
main
(
int
argc
,
char
**
argv
)
7
{
8
int
fds
[
2
];
9
10
CLOSE_INHERITED_FDS
;
11
12
(
void
)
DO
(
socketpair
(
AF_UNIX
,
SOCK_STREAM
,
PF_UNSPEC
,
fds
) );
13
14
return
0
;
15
}