Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
valgrind
/
f12ec1507af068ac508e486feb2050ebeb670f4b
/
.
/
none
/
tests
/
fdleak_fcntl.c
blob: 3d776b47a5e5c400e24762ae17dcd1387d598db6 [
file
] [
log
] [
blame
]
#include
<unistd.h>
#include
<stdio.h>
#include
<fcntl.h>
#include
"fdleak.h"
int
main
(
int
argc
,
char
**
argv
)
{
int
s1
;
CLOSE_INHERITED_FDS
;
s1
=
DO
(
open
(
"/dev/null"
,
O_RDONLY
)
);
DO
(
fcntl
(
s1
,
F_DUPFD
,
s1
)
);
return
0
;
}