    dbop              175 global/global.c 	DBOP *dbop;
    dbop              199 global/global.c 	dbop = dbop_open(makepath(dbpath, dbname(GTAGS), NULL), 0, 0, 0);
    dbop              200 global/global.c 	tagline = dbop_first(dbop, tag, NULL, 0);
    dbop              203 global/global.c 	for (; tagline; tagline = dbop_next(dbop)) {
    dbop              219 global/global.c         dbop_close(dbop);
    dbop              320 gozilla/gozilla.c 	DBOP *dbop = NULL;
    dbop              327 gozilla/gozilla.c 		dbop = dbop_open(path, 0, 0, 0);
    dbop              328 gozilla/gozilla.c 	if (!dbop) {
    dbop              332 gozilla/gozilla.c 		dbop = dbop_open(path, 0, 0, 0);
    dbop              334 gozilla/gozilla.c 	if (dbop) {
    dbop              335 gozilla/gozilla.c 		if ((p = (char *)dbop_get(dbop, arg)) != NULL) {
    dbop              340 gozilla/gozilla.c 		dbop_close(dbop);
    dbop               80 htags/assoc.c  	assoc->dbop = dbop_open(tmpfile, 1, 0600, DBOP_REMOVE);
    dbop               82 htags/assoc.c  	if (assoc->dbop == NULL)
    dbop               96 htags/assoc.c  	if (assoc->dbop == NULL)
    dbop               98 htags/assoc.c  	dbop_close(assoc->dbop);
    dbop              111 htags/assoc.c  	if (assoc->dbop == NULL)
    dbop              113 htags/assoc.c  	dbop_put(assoc->dbop, name, value);
    dbop              125 htags/assoc.c  	if (assoc->dbop == NULL)
    dbop              127 htags/assoc.c  	return dbop_get(assoc->dbop, name);
    dbop               25 htags/assoc.h  	DBOP *dbop;
    dbop               47 htags/path2url.c 	DBOP *dbop;
    dbop               53 htags/path2url.c 	dbop = dbop_open(makepath(dbpath, dbname(GPATH), NULL), 0, 0, 0);
    dbop               54 htags/path2url.c 	if (dbop == NULL)
    dbop               56 htags/path2url.c 	for (path = dbop_first(dbop, "./", NULL, DBOP_PREFIX | DBOP_KEY); path; path = dbop_next(dbop)) {
    dbop               57 htags/path2url.c 		const char *no = dbop_lastdat(dbop, NULL);
    dbop               65 htags/path2url.c 	dbop_close(dbop);
    dbop               71 libutil/dbop.c 	DBOP *dbop;
    dbop              113 libutil/dbop.c 	dbop = (DBOP *)check_calloc(sizeof(DBOP), 1);
    dbop              115 libutil/dbop.c 		dbop->dbname[0] = '\0';
    dbop              117 libutil/dbop.c 		strlimcpy(dbop->dbname, path, sizeof(dbop->dbname));
    dbop              118 libutil/dbop.c 	dbop->db	= db;
    dbop              119 libutil/dbop.c 	dbop->openflags	= flags;
    dbop              120 libutil/dbop.c 	dbop->perm	= (mode == 1) ? perm : 0;
    dbop              121 libutil/dbop.c 	dbop->lastdat	= NULL;
    dbop              122 libutil/dbop.c 	dbop->lastsize	= 0;
    dbop              124 libutil/dbop.c 	return dbop;
    dbop              134 libutil/dbop.c dbop_get(DBOP *dbop, const char *name)
    dbop              136 libutil/dbop.c 	DB *db = dbop->db;
    dbop              144 libutil/dbop.c 	dbop->lastdat = (char *)dat.data;
    dbop              145 libutil/dbop.c 	dbop->lastsize = dat.size;
    dbop              164 libutil/dbop.c dbop_put(DBOP *dbop, const char *name, const char *data)
    dbop              166 libutil/dbop.c 	DB *db = dbop->db;
    dbop              198 libutil/dbop.c dbop_put_withlen(DBOP *dbop, const char *name, const char *data, int length)
    dbop              200 libutil/dbop.c 	DB *db = dbop->db;
    dbop              230 libutil/dbop.c dbop_delete(DBOP *dbop, const char *path)
    dbop              232 libutil/dbop.c 	DB *db = dbop->db;
    dbop              253 libutil/dbop.c dbop_update(DBOP *dbop, const char *key, const char *dat)
    dbop              255 libutil/dbop.c 	dbop_put(dbop, key, dat);
    dbop              272 libutil/dbop.c dbop_first(DBOP *dbop, const char *name, regex_t *preg, int flags)
    dbop              274 libutil/dbop.c 	DB *db = dbop->db;
    dbop              278 libutil/dbop.c 	dbop->preg = preg;
    dbop              284 libutil/dbop.c 		strlimcpy(dbop->key, name, sizeof(dbop->key));
    dbop              292 libutil/dbop.c 		dbop->keylen = key.size;
    dbop              297 libutil/dbop.c 				if (strncmp((char *)key.data, dbop->key, dbop->keylen))
    dbop              300 libutil/dbop.c 				if (strcmp((char *)key.data, dbop->key))
    dbop              308 libutil/dbop.c 		dbop->keylen = dbop->key[0] = 0;
    dbop              320 libutil/dbop.c 	dbop->lastdat = (char *)dat.data;
    dbop              321 libutil/dbop.c 	dbop->lastsize = dat.size;
    dbop              322 libutil/dbop.c 	dbop->lastkey = (char *)key.data;
    dbop              323 libutil/dbop.c 	dbop->lastkeysize = key.size;
    dbop              332 libutil/dbop.c 	dbop->ioflags = flags;
    dbop              334 libutil/dbop.c 		strlimcpy(dbop->prev, (char *)key.data, sizeof(dbop->prev));
    dbop              348 libutil/dbop.c dbop_next(DBOP *dbop)
    dbop              350 libutil/dbop.c 	DB *db = dbop->db;
    dbop              351 libutil/dbop.c 	int flags = dbop->ioflags;
    dbop              355 libutil/dbop.c 	if (dbop->unread) {
    dbop              356 libutil/dbop.c 		dbop->unread = 0;
    dbop              357 libutil/dbop.c 		return dbop->lastdat;
    dbop              367 libutil/dbop.c 			if (!strcmp(dbop->prev, (char *)key.data))
    dbop              371 libutil/dbop.c 			strlimcpy(dbop->prev, (char *)key.data, sizeof(dbop->prev));
    dbop              373 libutil/dbop.c 		dbop->lastdat	= (char *)dat.data;
    dbop              374 libutil/dbop.c 		dbop->lastsize	= dat.size;
    dbop              375 libutil/dbop.c 		dbop->lastkey = (char *)key.data;
    dbop              376 libutil/dbop.c 		dbop->lastkeysize = key.size;
    dbop              378 libutil/dbop.c 			if (strncmp((char *)key.data, dbop->key, dbop->keylen))
    dbop              380 libutil/dbop.c 		} else if (dbop->keylen) {
    dbop              381 libutil/dbop.c 			if (strcmp((char *)key.data, dbop->key))
    dbop              384 libutil/dbop.c 		if (dbop->preg && regexec(dbop->preg, (char *)key.data, 0, 0, 0) != 0)
    dbop              400 libutil/dbop.c dbop_unread(DBOP *dbop)
    dbop              402 libutil/dbop.c 	dbop->unread = 1;
    dbop              411 libutil/dbop.c dbop_lastdat(DBOP *dbop, int *size)
    dbop              414 libutil/dbop.c 		*size = dbop->lastsize;
    dbop              415 libutil/dbop.c 	return dbop->lastdat;
    dbop              421 libutil/dbop.c dbop_getflag(DBOP *dbop)
    dbop              424 libutil/dbop.c 	const char *dat = dbop_lastdat(dbop, &size);
    dbop              442 libutil/dbop.c dbop_getoption(DBOP *dbop, const char *key)
    dbop              447 libutil/dbop.c 	if ((p = dbop_get(dbop, key)) == NULL)
    dbop              449 libutil/dbop.c 	if (dbop->lastsize <= strlen(key))
    dbop              460 libutil/dbop.c dbop_putoption(DBOP *dbop, const char *key, const char *string)
    dbop              468 libutil/dbop.c 	dbop_put(dbop, key, buf);
    dbop              474 libutil/dbop.c dbop_getversion(DBOP *dbop)
    dbop              479 libutil/dbop.c 	if ((p = dbop_getoption(dbop, VERSIONKEY)) != NULL)
    dbop              487 libutil/dbop.c dbop_putversion(DBOP *dbop, int version)
    dbop              492 libutil/dbop.c 	dbop_putoption(dbop, VERSIONKEY, number);
    dbop              500 libutil/dbop.c dbop_close(DBOP *dbop)
    dbop              502 libutil/dbop.c 	DB *db = dbop->db;
    dbop              510 libutil/dbop.c 	(void)db->close(db, (dbop->openflags & DBOP_REMOVE || dbop->dbname[0] == '\0') ? 1 : 0);
    dbop              512 libutil/dbop.c 	if (dbop->dbname[0] != '\0') {
    dbop              513 libutil/dbop.c 		if (dbop->openflags & DBOP_REMOVE)
    dbop              514 libutil/dbop.c 			(void)unlink(dbop->dbname);
    dbop              515 libutil/dbop.c 		else if (dbop->perm && chmod(dbop->dbname, dbop->perm) < 0)
    dbop              518 libutil/dbop.c 	(void)free(dbop);
    dbop               33 libutil/defined.c static DBOP *dbop = NULL;
    dbop               42 libutil/defined.c 	if (dbop == NULL) {
    dbop               50 libutil/defined.c 		dbop = dbop_open(makepath(dbpath, "GTAGS", NULL), 0, 0, 0);
    dbop               51 libutil/defined.c 		if (dbop == NULL)
    dbop               54 libutil/defined.c 	if (dbop_get(dbop, name))
    dbop               43 libutil/gpathop.c static DBOP *dbop;
    dbop              111 libutil/gpathop.c 	dbop = dbop_open(makepath(dbpath, dbname(GPATH), NULL), mode, 0644, 0);
    dbop              112 libutil/gpathop.c 	if (dbop == NULL)
    dbop              115 libutil/gpathop.c 		dbop_putversion(dbop, create_version);
    dbop              120 libutil/gpathop.c 		const char *path = dbop_get(dbop, NEXTKEY);
    dbop              125 libutil/gpathop.c 		format_version = dbop_getversion(dbop);
    dbop              151 libutil/gpathop.c 	if (dbop_get(dbop, path) != NULL)
    dbop              164 libutil/gpathop.c 	dbop_put_withlen(dbop, path, strbuf_value(sb), strbuf_getlen(sb));
    dbop              172 libutil/gpathop.c 	dbop_put_withlen(dbop, fid, strbuf_value(sb), strbuf_getlen(sb));
    dbop              186 libutil/gpathop.c 	const char *fid = dbop_get(dbop, path);
    dbop              189 libutil/gpathop.c 		const char *flag = dbop_getflag(dbop);
    dbop              207 libutil/gpathop.c 	const char *path = dbop_get(dbop, fid);
    dbop              210 libutil/gpathop.c 		const char *flag = dbop_getflag(dbop);
    dbop              228 libutil/gpathop.c 	fid = dbop_get(dbop, path);
    dbop              231 libutil/gpathop.c 	dbop_delete(dbop, fid);
    dbop              232 libutil/gpathop.c 	dbop_delete(dbop, path);
    dbop              257 libutil/gpathop.c 		dbop_close(dbop);
    dbop              262 libutil/gpathop.c 		dbop_update(dbop, NEXTKEY, fid);
    dbop              264 libutil/gpathop.c 	dbop_close(dbop);
    dbop              293 libutil/gpathop.c 	gfind->dbop = dbop_open(makepath(dbpath, dbname(GPATH), NULL), 0, 0, 0);
    dbop              294 libutil/gpathop.c 	if (gfind->dbop == NULL)
    dbop              302 libutil/gpathop.c 	gfind->version = dbop_getversion(gfind->dbop);
    dbop              326 libutil/gpathop.c 			gfind->path = dbop_first(gfind->dbop, gfind->prefix, NULL, DBOP_KEY | DBOP_PREFIX);
    dbop              328 libutil/gpathop.c 			gfind->path = dbop_next(gfind->dbop);
    dbop              338 libutil/gpathop.c 		flag = dbop_getflag(gfind->dbop);
    dbop              351 libutil/gpathop.c 	dbop_close(gfind->dbop);
    dbop               39 libutil/gpathop.h 	DBOP *dbop;
    dbop              298 libutil/gtagsop.c 	gtop->dbop = dbop_open(makepath(dbpath, dbname(db), NULL), dbmode, 0644, DBOP_DUP);
    dbop              299 libutil/gtagsop.c 	if (gtop->dbop == NULL) {
    dbop              318 libutil/gtagsop.c 			dbop_putoption(gtop->dbop, COMPACTKEY, NULL);
    dbop              320 libutil/gtagsop.c 			dbop_putoption(gtop->dbop, COMPRESSKEY, DEFAULT_ABBREVIATION);
    dbop              324 libutil/gtagsop.c 			dbop_putoption(gtop->dbop, COMPLINEKEY, NULL);
    dbop              326 libutil/gtagsop.c 			dbop_putoption(gtop->dbop, COMPNAMEKEY, NULL);
    dbop              327 libutil/gtagsop.c 		dbop_putversion(gtop->dbop, gtop->format_version);
    dbop              339 libutil/gtagsop.c 		gtop->format_version = dbop_getversion(gtop->dbop);
    dbop              345 libutil/gtagsop.c 		if (dbop_getoption(gtop->dbop, COMPACTKEY) != NULL)
    dbop              347 libutil/gtagsop.c 		if ((p = dbop_getoption(gtop->dbop, COMPRESSKEY)) != NULL) {
    dbop              351 libutil/gtagsop.c 		if (dbop_getoption(gtop->dbop, COMPLINEKEY) != NULL)
    dbop              353 libutil/gtagsop.c 		if (dbop_getoption(gtop->dbop, COMPNAMEKEY) != NULL)
    dbop              442 libutil/gtagsop.c 		dbop_put(gtop->dbop, key, strbuf_value(gtop->sb));
    dbop              458 libutil/gtagsop.c 	for (tagline = dbop_first(gtop->dbop, NULL, NULL, 0); tagline; tagline = dbop_next(gtop->dbop)) {
    dbop              467 libutil/gtagsop.c 			dbop_delete(gtop->dbop, NULL);
    dbop              574 libutil/gtagsop.c 		for (tagline = dbop_first(gtop->dbop, key, preg, dbflags);
    dbop              576 libutil/gtagsop.c 		     tagline = dbop_next(gtop->dbop))
    dbop              617 libutil/gtagsop.c 		return ((gtop->gtp.tag = dbop_first(gtop->dbop, key, preg, dbflags)) == NULL)
    dbop              632 libutil/gtagsop.c 		tagline = dbop_first(gtop->dbop, key, preg, dbflags);
    dbop              638 libutil/gtagsop.c 		dbop_unread(gtop->dbop);
    dbop              662 libutil/gtagsop.c 		return ((gtop->gtp.tag = dbop_next(gtop->dbop)) == NULL)
    dbop              705 libutil/gtagsop.c 	dbop_close(gtop->dbop);
    dbop              801 libutil/gtagsop.c 						dbop_put(gtop->dbop, key, strbuf_value(gtop->sb));
    dbop              825 libutil/gtagsop.c 					dbop_put(gtop->dbop, key, strbuf_value(gtop->sb));
    dbop              832 libutil/gtagsop.c 			dbop_put(gtop->dbop, key, strbuf_value(gtop->sb));
    dbop              867 libutil/gtagsop.c 	while ((tagline = dbop_next(gtop->dbop)) != NULL) {
    dbop              874 libutil/gtagsop.c 			strlimcpy(gtop->cur_tagname, gtop->dbop->lastkey, sizeof(gtop->cur_tagname));
    dbop              875 libutil/gtagsop.c 		} else if (strcmp(gtop->cur_tagname, gtop->dbop->lastkey) != 0) {
    dbop              879 libutil/gtagsop.c 			dbop_unread(gtop->dbop);
    dbop               75 libutil/gtagsop.h 	DBOP *dbop;			/* descripter of DBOP */