Lines Matching defs:bdbres
500 int bdbres;
520 bdbres = db.data->put(db.data, NULL, &key, &data, DB_APPEND);
522 bdbres = db.client->put(db.client, NULL, &key, &data, 0);
526 if (bdbres != 0) {
528 db_strerror(bdbres));
643 int bdbres;
648 bdbres = db_env_create(&db.dbenv, 0);
649 if (bdbres != 0) {
651 db_strerror(bdbres));
659 bdbres = db.dbenv->open(db.dbenv, db_envdir,
662 bdbres = db.dbenv->open(db.dbenv, db_envdir,
665 if (bdbres != 0) {
667 "error: %s", db_envdir, db_strerror(bdbres));
694 bdbres = db.data->associate(db.data, NULL, db.host, gethost, 0);
695 if (bdbres != 0) {
697 "error: %s", dlz_host, dlz_data, db_strerror(bdbres));
703 bdbres = db.data->associate(db.data, NULL, db.zone, getzone, 0);
704 if (bdbres != 0) {
706 "error: %s", dlz_zone, dlz_data, db_strerror(bdbres));
833 int bdbres;
853 bdbres = database->cursor(database, NULL, &dbcursor, 0);
854 if (bdbres != 0) {
855 fprintf(stderr, "Unexpected error. BDB Error: %s\n",db_strerror(bdbres));
864 bdbres = dbcursor->c_get(dbcursor, bdbkey, bdbdata,
868 if (bdbres != 0) {
869 if (bdbres != DB_NOTFOUND) {
871 db_strerror(bdbres));
877 } /* end of if (bdbres !=0) */
910 int bdbres = 0;
968 bdbres = db.data->del(db.data, NULL, &bdbkey, 0);
971 bdbres = db.data->get(db.data, NULL, &bdbkey, &bdbdata, 0);
973 if (bdbres == 0) {
979 if (bdbres == DB_NOTFOUND) {
987 bdbres = db.zone->cursor(db.zone, NULL, &db.cursor2, 0);
988 if (bdbres != 0) {
990 db_strerror(bdbres));
996 bdbres = db.cursor2->c_get(db.cursor2, &bdbkey, &bdbdata, DB_SET);
997 if (bdbres != 0) {
998 if (bdbres != DB_NOTFOUND) {
1000 db_strerror(bdbres));
1015 bdbres = db.host->cursor(db.host, NULL, &db.cursor3, 0);
1016 if (bdbres != 0) {
1018 db_strerror(bdbres));
1023 bdbres = db.cursor3->c_get(db.cursor3, &bdbkey, &bdbdata, DB_SET);
1024 if (bdbres != 0) {
1025 if (bdbres != DB_NOTFOUND) {
1027 db_strerror(bdbres));
1042 bdbres = db.data->join(db.data, curList, &db.cursor4, 0);
1043 if (bdbres != 0) {
1045 db_strerror(bdbres));
1057 while (bdbres == 0) {
1059 bdbres = db.cursor4->c_get(db.cursor4, &bdbkey, &bdbdata, 0);
1061 if (bdbres != 0) {
1079 bdbres = db.client->cursor(db.client, NULL, &db.cursor,
1083 bdbres = db.client->cursor(db.client, NULL, &db.cursor, 0);
1094 bdbres = db.cursor->c_get(db.cursor, &bdbkey, &bdbdata, DB_GET_BOTH);
1095 if (bdbres == DB_NOTFOUND) {
1100 bdbres = db.cursor->c_get(db.cursor, &bdbkey, &bdbdata, DB_SET);
1101 if (bdbres == DB_NOTFOUND) {
1106 while (bdbres == 0) {
1112 bdbres = db.cursor->c_del(db.cursor, 0);
1113 if (bdbres != 0) {
1115 db_strerror(bdbres));
1122 bdbres = db.cursor->c_get(db.cursor, &bdbkey, &bdbdata, DB_NEXT_DUP);
1123 if (bdbres != 0) {
1130 if (bdbres != 0 && bdbres != DB_NOTFOUND) {
1132 "BDB error: %s", db_strerror(bdbres));