7 char *__randname(char *);
9 char *mktemp(char *template)
11 size_t l
= strlen(template);
15 if (l
< 6 || memcmp(template+l
-6, "XXXXXX", 6)) {
22 __randname(template+l
-6);
23 if (stat(template, &st
)) {
24 if (errno
!= ENOENT
) *template = 0;