FreeBSD _umtx_op: fix bad wrapper for robust lists
[valgrind.git] / none / tests / fdleak_dup.c
blobf526121e2ed51dbfd9055b6cba3e73e730b86a04
1 #include <unistd.h>
2 #include <fcntl.h>
3 #include "fdleak.h"
5 int main (int argc, char **argv)
7 int s;
9 CLOSE_INHERITED_FDS;
11 s = DO( open("/dev/null", O_RDONLY) );
12 (void) DO( dup(s) );
14 return 0;