9 char *__mktemp(char *template)
13 int l = strlen(template);
15 if (l < 6 || strcmp(template+l-6, "XXXXXX")) {
20 for (; index < 1000000; index++) {
21 snprintf(template+l-6, 6, "%06d", index);
22 if (access(template, F_OK) != 0) {
31 weak_alias(__mktemp, mktemp);