Lines Matching refs:tname
53 static char tname[MAXPATHLEN];
141 (void)snprintf(tname, sizeof(tname), "%s.tmp", dbname);
142 db = dbopen(tname, O_RDWR | O_CREAT | O_EXCL,
145 err(1, "Error opening temporary database `%s'", tname);
166 err(1, "Error closing temporary database `%s'", tname);
172 if (rename(tname, dbname) == -1 ||
179 err(1, "Cannot rename `%s' to `%s'", tname, dbname);
348 if (tname[0])
349 (void)unlink(tname);