11 char tmpl
[] = "/tmp/tst-fdopendir2-XXXXXX";
12 int fd
= mkstemp (tmpl
);
15 puts ("cannot open temp file");
20 DIR *d
= fdopendir (fd
);
29 puts ("fdopendir with normal file descriptor did not fail");
34 printf ("fdopendir set errno to %d, not %d as expected\n", e
, ENOTDIR
);
41 #define TEST_FUNCTION do_test ()
42 #include "../test-skeleton.c"