Lines Matching defs:tname
57 static char tname[MAXPATHLEN];
145 (void)snprintf(tname, sizeof(tname), "%s.tmp", dbname);
146 db = dbopen(tname, O_RDWR | O_CREAT | O_EXCL,
149 err(1, "Error opening temporary database `%s'", tname);
170 err(1, "Error closing temporary database `%s'", tname);
176 if (rename(tname, dbname) == -1 ||
183 err(1, "Cannot rename `%s' to `%s'", tname, dbname);
352 if (tname[0])
353 (void)unlink(tname);