gfind 303 libutil/gpathop.c GFIND *gfind = (GFIND *)check_calloc(sizeof(GFIND), 1); gfind 305 libutil/gpathop.c gfind->dbop = dbop_open(makepath(dbpath, dbname(GPATH), NULL), 0, 0, 0); gfind 306 libutil/gpathop.c if (gfind->dbop == NULL) gfind 308 libutil/gpathop.c gfind->path = NULL; gfind 309 libutil/gpathop.c gfind->prefix = check_strdup(local ? local : "./"); gfind 310 libutil/gpathop.c gfind->first = 1; gfind 311 libutil/gpathop.c gfind->eod = 0; gfind 312 libutil/gpathop.c gfind->target = target; gfind 313 libutil/gpathop.c gfind->type = GPATH_SOURCE; gfind 314 libutil/gpathop.c gfind->version = dbop_getversion(gfind->dbop); gfind 315 libutil/gpathop.c if (gfind->version > support_version) gfind 317 libutil/gpathop.c else if (gfind->version < support_version) gfind 319 libutil/gpathop.c return gfind; gfind 328 libutil/gpathop.c gfind_read(GFIND *gfind) gfind 332 libutil/gpathop.c gfind->type = GPATH_SOURCE; gfind 333 libutil/gpathop.c if (gfind->eod) gfind 336 libutil/gpathop.c if (gfind->first) { gfind 337 libutil/gpathop.c gfind->first = 0; gfind 338 libutil/gpathop.c gfind->path = dbop_first(gfind->dbop, gfind->prefix, NULL, DBOP_KEY | DBOP_PREFIX); gfind 340 libutil/gpathop.c gfind->path = dbop_next(gfind->dbop); gfind 342 libutil/gpathop.c if (gfind->path == NULL) { gfind 343 libutil/gpathop.c gfind->eod = 1; gfind 350 libutil/gpathop.c flag = dbop_getflag(gfind->dbop); gfind 351 libutil/gpathop.c gfind->type = (*flag == 'o') ? GPATH_OTHER : GPATH_SOURCE; gfind 352 libutil/gpathop.c if (gfind->type & gfind->target) gfind 355 libutil/gpathop.c return gfind->path; gfind 361 libutil/gpathop.c gfind_close(GFIND *gfind) gfind 363 libutil/gpathop.c dbop_close(gfind->dbop); gfind 364 libutil/gpathop.c free((void *)gfind->prefix); gfind 365 libutil/gpathop.c free(gfind);