Sign in
nest-open-source
/
nest-cam
/
4320010
/
valgrind
/
23fb368103f9471ec1defb2c0a3ea5d30c8e81fe
/
.
/
valgrind
/
none
/
tests
/
fdleak_fcntl.c
blob: c57a2608b65a9fc30dea0832967c92386ca33a7f [
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
)
);
(
void
)
DO
(
fcntl
(
s1
,
F_DUPFD
,
s1
)
);
return
0
;
}