Lines Matching defs:rc
204 int rc;
258 if ((rc = db_env_create(&db->dbenv, 0)) != 0) {
259 LOG(log_error, logtype_default, "cnid_open: db_env_create: %s", db_strerror(rc));
264 if ((rc = db->dbenv->open(db->dbenv, path, DBOPTIONS, 0666 & ~args->mask)) != 0) {
265 LOG(log_error, logtype_default, "cnid_open: dbenv->open (rw) of %s failed: %s", path, db_strerror(rc));
267 if (rc == DB_RUNRECOVERY) {
277 if ((rc = db->dbenv->open(db->dbenv, path, DB_INIT_MPOOL, 0666 & ~args->mask)) != 0) {
280 if ((rc = db->dbenv->open(db->dbenv, path, 0, 0666 & ~args->mask)) != 0) {
281 LOG(log_error, logtype_default, "cnid_open: dbenv->open of %s failed: %s", path, db_strerror(rc));
293 if ((rc = db_create(&db->db_cnid, db->dbenv, 0)) != 0) {
295 db_strerror(rc));
299 if ((rc = my_open(db->db_cnid, DBCNID, DBCNID, DB_BTREE, open_flag, 0666 & ~args->mask)) != 0) {
301 db_strerror(rc));
308 if ((rc = db_create(&db->db_didname, db->dbenv, 0)) != 0) {
310 db_strerror(rc));
314 if ((rc = my_open(db->db_didname, DBCNID, DBDIDNAME, DB_BTREE, open_flag, 0666 & ~args->mask))) {
316 db_strerror(rc));
323 if ((rc = db_create(&db->db_devino, db->dbenv, 0)) != 0) {
325 db_strerror(rc));
329 if ((rc = my_open(db->db_devino, DBCNID, DBDEVINO, DB_BTREE, open_flag, 0666 & ~args->mask)) != 0) {
331 db_strerror(rc));
337 if ((rc = my_associate(db->db_cnid, db->db_didname, didname, 0)) != 0) {
339 db_strerror(rc));
343 if ((rc = my_associate(db->db_cnid, db->db_devino, devino, 0)) != 0) {
345 db_strerror(rc));
360 if ((rc = db->db_cnid->get(db->db_cnid, NULL, &key, &data, 0)) == 0) {