Lines Matching refs:filename
49 osa_adb_create_db(char *filename, char *lockfilename, int magic)
63 db = dbopen(filename, O_RDWR | O_CREAT | O_EXCL, 0600, DB_BTREE, &btinfo);
79 osa_adb_destroy_db(char *filename, char *lockfilename, int magic)
82 if (unlink(filename) < 0 ||
137 osa_adb_init_db(osa_adb_db_t *dbp, char *filename, char *lockfilename,
145 if (dbp == NULL || filename == NULL)
196 if (strcmp(lockp->lockinfo.filename, lockfilename) == 0)
224 lockp->lockinfo.filename = strdup(lockfilename);
247 db->filename = strdup(filename);
269 * Don't free db->lock->filename, it is used as a key to
282 free(db->filename);
339 if (access(db->lock->filename, F_OK) < 0) {
349 if (unlink(db->lock->filename) < 0) {
384 fd = THREEPARAMOPEN(db->lock->filename,O_RDWR | O_CREAT | O_EXCL,
413 db->db = dbopen(db->filename, O_RDWR, 0600, DB_BTREE, &db->btinfo);
421 db->db = dbopen(db->filename, O_RDWR, 0600, DB_HASH, &db->info);