Lines Matching defs:tname
56 static char tname[MAXPATHLEN];
144 (void)snprintf(tname, sizeof(tname), "%s.tmp", dbname);
145 db = dbopen(tname, O_RDWR | O_CREAT | O_EXCL,
148 err(1, "Error opening temporary database `%s'", tname);
169 err(1, "Error closing temporary database `%s'", tname);
175 if (rename(tname, dbname) == -1 ||
182 err(1, "Cannot rename `%s' to `%s'", tname, dbname);
351 if (tname[0])
352 (void)unlink(tname);