Lines Matching refs:info
58 #define DB4_DATA dba_db4_data *dba = info->dbf
76 int s = VCWD_STAT(info->path, &check_stat);
80 info->mode = DBA_TRUNC; /* force truncate */
83 type = info->mode == DBA_READER ? DB_UNKNOWN :
84 info->mode == DBA_TRUNC ? DB_BTREE :
87 gmode = info->mode == DBA_READER ? DB_RDONLY :
88 (info->mode == DBA_CREAT && s) ? DB_CREATE :
89 (info->mode == DBA_CREAT && !s) ? 0 :
90 info->mode == DBA_WRITER ? 0 :
91 info->mode == DBA_TRUNC ? DB_CREATE | DB_TRUNCATE : -1;
94 info->mode = DBA_CREAT; /* force creation */
97 type = info->mode == DBA_READER ? DB_UNKNOWN :
98 (info->mode == DBA_TRUNC || info->mode == DBA_CREAT) ? DB_BTREE :
101 gmode = info->mode == DBA_READER ? DB_RDONLY :
102 info->mode == DBA_CREAT ? DB_CREATE :
103 info->mode == DBA_WRITER ? 0 :
104 info->mode == DBA_TRUNC ? DB_CREATE | DB_TRUNCATE : -1;
111 if (info->flags & DBA_PERSISTENT) {
115 if (info->argc > 0) {
116 filemode = zval_get_long(&info->argv[0]);
123 (err=dbp->open(dbp, 0, info->path, NULL, type, gmode, filemode)) == 0) {
125 (err=dbp->open(dbp, info->path, NULL, type, gmode, filemode)) == 0) {
129 data = pemalloc(sizeof(*data), info->flags&DBA_PERSISTENT);
132 info->dbf = data;
152 pefree(dba, info->flags&DBA_PERSISTENT);
163 if (info->flags & DBA_PERSISTENT) {
169 if (info->flags & DBA_PERSISTENT) {
201 if (info->flags & DBA_PERSISTENT) {
206 if (info->flags & DBA_PERSISTENT) {
236 return dba_nextkey_db4(info, newlen);
248 if (info->flags & DBA_PERSISTENT) {
257 if (info->flags & DBA_PERSISTENT) {