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