Lines Matching refs:info
54 int filemode = info->file_permission;
56 int s = VCWD_STAT(ZSTR_VAL(info->path), &check_stat);
59 info->mode = DBA_TRUNC; /* force truncate */
62 type = info->mode == DBA_READER ? DB_UNKNOWN :
63 info->mode == DBA_TRUNC ? DB_BTREE :
66 gmode = info->mode == DBA_READER ? DB_RDONLY :
67 (info->mode == DBA_CREAT && s) ? DB_CREATE :
68 (info->mode == DBA_CREAT && !s) ? 0 :
69 info->mode == DBA_WRITER ? 0 :
70 info->mode == DBA_TRUNC ? DB_CREATE | DB_TRUNCATE : -1;
84 (err=dbp->open(dbp, 0, ZSTR_VAL(info->path), NULL, type, gmode, filemode)) == 0) {
86 (err=dbp->open(dbp, ZSTR_VAL(info->path), NULL, type, gmode, filemode)) == 0) {
90 data = pemalloc(sizeof(*data), info->flags&DBA_PERSISTENT);
93 info->dbf = data;
109 dba_db3_data *dba = info->dbf;
113 pefree(dba, info->flags&DBA_PERSISTENT);
118 dba_db3_data *dba = info->dbf;
135 dba_db3_data *dba = info->dbf;
156 dba_db3_data *dba = info->dbf;
173 dba_db3_data *dba = info->dbf;
185 dba_db3_data *dba = info->dbf;
196 return dba_nextkey_db3(info);
201 dba_db3_data *dba = info->dbf;
223 dba_db3_data *dba = info->dbf;