Lines Matching refs:hp
691 home_entry *hp, *homep;
694 if ((ret = __os_malloc(NULL, sizeof(home_entry), &hp)) != 0)
696 if ((ret = __os_malloc(NULL, strlen(home)+1, &hp->home)) != 0)
698 memcpy(hp->home, home, strlen(home)+1);
699 hp->dir = home;
700 hp->passwd = NULL;
703 * to assure hp->name points to the last component.
705 hp->name = __db_rpath(home);
706 if (hp->name != NULL) {
707 *(hp->name) = '\0';
708 hp->name++;
710 hp->name = home;
711 while (*(hp->name) == '\0') {
712 hp->name = __db_rpath(home);
713 *(hp->name) = '\0';
714 hp->name++;
722 if (strcmp(homep->name, hp->name) == 0) {
724 hp->name, homep->dir);
725 __os_free(NULL, hp->home);
726 __os_free(NULL, hp);
729 LIST_INSERT_HEAD(&__dbsrv_home, hp, entries);
731 printf("Added home %s in dir %s\n", hp->name, hp->dir);
739 home_entry *hp;
746 hp = LIST_FIRST(&__dbsrv_home);
747 if (hp == NULL || hp->passwd != NULL)
753 hp->passwd = passwd;
764 home_entry *hp;
768 for (hp = LIST_FIRST(&__dbsrv_home); hp != NULL;
769 hp = LIST_NEXT(hp, entries))
770 if (strcmp(name, hp->name) == 0)
771 return (hp);
780 home_entry *hp;
784 for (hp = LIST_FIRST(&__dbsrv_home); hp != NULL;
785 hp = LIST_NEXT(hp, entries)) {
796 if (hp->passwd != NULL)
797 (void)dbenv->set_encrypt(dbenv, hp->passwd,
805 printf("Running recovery on %s\n", hp->home);
808 if ((ret = dbenv->open(dbenv, hp->home, flags, 0)) != 0) {