Lines Matching refs:tmpname
184 char *tmpname = calloc(1, MAXPATHLEN); in write_map() local
185 if (tmpname == NULL) { in write_map()
190 snprintf(tmpname, MAXPATHLEN - 1, "%s.XXXXXX", filename); in write_map()
192 int fd = mkstemp(tmpname); in write_map()
196 free(tmpname); in write_map()
201 gzFile fp = gzopen(tmpname, "w9b"); in write_map()
205 free(tmpname); in write_map()
217 (void) unlink(tmpname); in write_map()
218 free(tmpname); in write_map()
231 (void) unlink(tmpname); in write_map()
232 free(tmpname); in write_map()
244 (void) unlink(tmpname); in write_map()
245 free(tmpname); in write_map()
249 error = rename(tmpname, filename); in write_map()
252 (void) unlink(tmpname); in write_map()
253 free(tmpname); in write_map()
257 free(tmpname); in write_map()