11 char buf[40] = "/usr/bin/does-not-exist";
12 size_t stemlen = strlen (buf);
15 while (stat64 (buf, &st) != -1 || errno != ENOENT
16 || stat64 (buf + 4, &st) != -1 || errno != ENOENT)
20 puts ("cannot find a unique file name");
24 strcpy (buf + stemlen, ".XXXXXX");
29 char *argv[] = { buf + 9, NULL };
30 execvp (argv[0], argv);
34 #define TEST_FUNCTION do_test ()
35 #include "../test-skeleton.c"