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
FreeBSD: add file descriptor tracking for _umtx_op
[valgrind.git]
/
none
/
tests
/
fdleak_socketpair.c
blob
62059200411e6b3423a3d8d6f6f981246198c0e4
1
#include <sys/types.h>
2
#include <sys/socket.h>
3
#include <unistd.h>
4
#include
"fdleak.h"
5
#include <sys/errno.h>
6
7
int
main
(
int
argc
,
char
**
argv
)
8
{
9
int
fds
[
2
];
10
11
CLOSE_INHERITED_FDS
;
12
13
(
void
)
DO
(
socketpair
(
AF_UNIX
,
SOCK_STREAM
,
PF_UNSPEC
,
fds
) );
14
15
return
0
;
16
}