Lines Matching refs:tempname
55 static char tempname[PATH_MAX];
144 if (snprintf(tempname, sizeof(tempname), "%.*sgroup.XXXXXX",
145 (int)(p - group_file), group_file) >= (int)sizeof(tempname)) {
149 if ((tfd = mkstemp(tempname)) == -1)
156 unlink(tempname);
157 *tempname = '\0';
319 return (rename(tempname, group_file));
334 if (*tempname != '\0') {
335 unlink(tempname);
336 *tempname = '\0';