Lines Matching refs:info
32 #define DB2_DATA dba_db2_data *dba = info->dbf
50 int s = VCWD_STAT(info->path, &check_stat); in DBA_OPEN_FUNC()
53 info->mode = DBA_TRUNC; /* force truncate */ in DBA_OPEN_FUNC()
56 type = info->mode == DBA_READER ? DB_UNKNOWN : in DBA_OPEN_FUNC()
57 info->mode == DBA_TRUNC ? DB_BTREE : in DBA_OPEN_FUNC()
60 gmode = info->mode == DBA_READER ? DB_RDONLY : in DBA_OPEN_FUNC()
61 (info->mode == DBA_CREAT && s) ? DB_CREATE : in DBA_OPEN_FUNC()
62 (info->mode == DBA_CREAT && !s) ? 0 : in DBA_OPEN_FUNC()
63 info->mode == DBA_WRITER ? 0 : in DBA_OPEN_FUNC()
64 info->mode == DBA_TRUNC ? DB_CREATE | DB_TRUNCATE : -1; in DBA_OPEN_FUNC()
70 if (info->argc > 0) { in DBA_OPEN_FUNC()
71 filemode = zval_get_long(&info->argv[0]); in DBA_OPEN_FUNC()
74 if (db_open(info->path, type, gmode, filemode, NULL, NULL, &dbp)) { in DBA_OPEN_FUNC()
78 info->dbf = pemalloc(sizeof(dba_db2_data), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC()
79 memset(info->dbf, 0, sizeof(dba_db2_data)); in DBA_OPEN_FUNC()
80 ((dba_db2_data *) info->dbf)->dbp = dbp; in DBA_OPEN_FUNC()
91 pefree(dba, info->flags&DBA_PERSISTENT); in DBA_CLOSE_FUNC()
162 return dba_nextkey_db2(info, newlen);