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