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
regtest: broaden none/tests/linux/bug498317 suppression for PPC
[valgrind.git]
/
none
/
tests
/
fdleak_dup.c
blob
f526121e2ed51dbfd9055b6cba3e73e730b86a04
1
#include <unistd.h>
2
#include <fcntl.h>
3
#include
"fdleak.h"
4
5
int
main
(
int
argc
,
char
**
argv
)
6
{
7
int
s
;
8
9
CLOSE_INHERITED_FDS
;
10
11
s
=
DO
(
open
(
"/dev/null"
,
O_RDONLY
) );
12
(
void
)
DO
(
dup
(
s
) );
13
14
return
0
;
15
}