Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
valgrind
/
62cc23286aa2d2cbeb6643a15ef37fe020a3d159
/
.
/
none
/
tests
/
fdleak_dup.c
blob: 9136376176223d1a7016da2b5c18084ad8f46163 [
file
] [
log
] [
blame
]
#include
<unistd.h>
#include
<fcntl.h>
#include
"fdleak.h"
int
main
(
int
argc
,
char
**
argv
)
{
int
s
;
CLOSE_INHERITED_FDS
;
s
=
DO
(
open
(
"/dev/null"
,
O_RDONLY
)
);
DO
(
dup
(
s
)
);
return
0
;
}