Lines Matching refs:info
42 int filemode = info->file_permission; in DBA_OPEN_FUNC()
44 int s = VCWD_STAT(ZSTR_VAL(info->path), &check_stat); in DBA_OPEN_FUNC()
47 info->mode = DBA_TRUNC; /* force truncate */ in DBA_OPEN_FUNC()
50 type = info->mode == DBA_READER ? DB_UNKNOWN : in DBA_OPEN_FUNC()
51 info->mode == DBA_TRUNC ? DB_BTREE : in DBA_OPEN_FUNC()
54 gmode = info->mode == DBA_READER ? DB_RDONLY : in DBA_OPEN_FUNC()
55 (info->mode == DBA_CREAT && s) ? DB_CREATE : in DBA_OPEN_FUNC()
56 (info->mode == DBA_CREAT && !s) ? 0 : in DBA_OPEN_FUNC()
57 info->mode == DBA_WRITER ? 0 : in DBA_OPEN_FUNC()
58 info->mode == DBA_TRUNC ? DB_CREATE | DB_TRUNCATE : -1; in DBA_OPEN_FUNC()
64 if (db_open(ZSTR_VAL(info->path), type, gmode, filemode, NULL, NULL, &dbp)) { in DBA_OPEN_FUNC()
68 info->dbf = pemalloc(sizeof(dba_db2_data), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC()
69 memset(info->dbf, 0, sizeof(dba_db2_data)); in DBA_OPEN_FUNC()
70 ((dba_db2_data *) info->dbf)->dbp = dbp; in DBA_OPEN_FUNC()
76 dba_db2_data *dba = info->dbf; in DBA_CLOSE_FUNC()
81 pefree(dba, info->flags&DBA_PERSISTENT); in DBA_CLOSE_FUNC()
86 dba_db2_data *dba = info->dbf; in DBA_FETCH_FUNC()
102 dba_db2_data *dba = info->dbf; in DBA_UPDATE_FUNC()
121 dba_db2_data *dba = info->dbf; in DBA_EXISTS_FUNC()
136 dba_db2_data *dba = info->dbf; in DBA_DELETE_FUNC()
147 dba_db2_data *dba = info->dbf;
162 return dba_nextkey_db2(info);
167 dba_db2_data *dba = info->dbf;
185 dba_db2_data *dba = info->dbf;