Lines Matching refs:info
68 int filemode = info->file_permission;
70 int s = VCWD_STAT(ZSTR_VAL(info->path), &check_stat);
74 info->mode = DBA_TRUNC; /* force truncate */
77 type = info->mode == DBA_READER ? DB_UNKNOWN :
78 info->mode == DBA_TRUNC ? DB_BTREE :
81 gmode = info->mode == DBA_READER ? DB_RDONLY :
82 (info->mode == DBA_CREAT && s) ? DB_CREATE :
83 (info->mode == DBA_CREAT && !s) ? 0 :
84 info->mode == DBA_WRITER ? 0 :
85 info->mode == DBA_TRUNC ? DB_CREATE | DB_TRUNCATE : -1;
88 info->mode = DBA_CREAT; /* force creation */
91 type = info->mode == DBA_READER ? DB_UNKNOWN :
92 (info->mode == DBA_TRUNC || info->mode == DBA_CREAT) ? DB_BTREE :
95 gmode = info->mode == DBA_READER ? DB_RDONLY :
96 info->mode == DBA_CREAT ? DB_CREATE :
97 info->mode == DBA_WRITER ? 0 :
98 info->mode == DBA_TRUNC ? DB_CREATE | DB_TRUNCATE : -1;
105 if (info->flags & DBA_PERSISTENT) {
113 (err=dbp->open(dbp, 0, ZSTR_VAL(info->path), NULL, type, gmode, filemode)) == 0) {
115 (err=dbp->open(dbp, ZSTR_VAL(info->path), NULL, type, gmode, filemode)) == 0) {
119 data = pemalloc(sizeof(*data), info->flags&DBA_PERSISTENT);
122 info->dbf = data;
138 dba_db4_data *dba = info->dbf;
142 pefree(dba, info->flags&DBA_PERSISTENT);
147 dba_db4_data *dba = info->dbf;
157 if (info->flags & DBA_PERSISTENT) {
162 if (info->flags & DBA_PERSISTENT) {
171 dba_db4_data *dba = info->dbf;
192 dba_db4_data *dba = info->dbf;
202 if (info->flags & DBA_PERSISTENT) {
207 if (info->flags & DBA_PERSISTENT) {
217 dba_db4_data *dba = info->dbf;
229 dba_db4_data *dba = info->dbf;
240 return dba_nextkey_db4(info);
245 dba_db4_data *dba = info->dbf;
252 if (info->flags & DBA_PERSISTENT) {
260 if (info->flags & DBA_PERSISTENT) {
280 dba_db4_data *dba = info->dbf;