| /src/external/apache2/mDNSResponder/dist/ServiceRegistration/ |
| towire.c | 126 dns_name_to_wire_(dns_name_pointer_t *NULLABLE r_pointer, dns_towire_state_t *NONNULL txn, 133 if (!txn->error) { 135 np.message_start = (uint8_t *)txn->message; 136 np.name_start = txn->p; 140 // Note that nothing is stored through txn->p until dns_name_parse has verified that 142 status = dns_parse_label(cur, &next, txn->p, txn->p + 1, txn->lim - txn->p - 1); 145 txn->truncated = true [all...] |
| ioloop-common.c | 42 dnssd_txn_t *txn = NULL; local 49 txn = ioloop_dnssd_txn_add_(service_ref, NULL, NULL, NULL, file, line); 50 if (txn == NULL) { 56 return txn;
|
| dns-msg.h | 82 typedef void (*dns_response_callback_t)(dns_transaction_t *NONNULL txn); 378 dns_towire_state_t *NONNULL txn, 380 #define dns_name_to_wire(r_pointer, txn, name) dns_name_to_wire_(r_pointer, txn, name, __LINE__) 383 dns_towire_state_t *NONNULL txn, 385 #define dns_full_name_to_wire(r_pointer, txn, name) dns_full_name_to_wire_(r_pointer, txn, name, __LINE__) 388 dns_towire_state_t *NONNULL txn, 390 #define dns_pointer_to_wire(r_pointer, txn, pointer) dns_pointer_to_wire_(r_pointer, txn, pointer, __LINE__ [all...] |
| ioloop.c | 1720 dnssd_txn_t *txn = (dnssd_txn_t *)context; local 1722 if (txn->sdref != NULL) { 1723 int status = DNSServiceProcessResult(txn->sdref); 1725 if (txn->failure_callback != NULL) { 1726 txn->failure_callback(txn->context, status); 1730 ioloop_dnssd_txn_cancel(txn); 1736 dnssd_txn_finalize(dnssd_txn_t *txn) 1738 if (txn->sdref != NULL) { 1739 ioloop_dnssd_txn_cancel(txn); 1749 dnssd_txn_t *txn = context; local 1788 dnssd_txn_t *txn = calloc(1, sizeof(*txn)); local 1804 dnssd_txn_t *txn = ioloop_dnssd_txn_add_subordinate_(ref, context, callback, failure_callback, file, line); local [all...] |
| /src/external/ibm-public/postfix/dist/src/util/ |
| slmdb.c | 286 * When any code aborts a bulk transaction, it must reset slmdb->txn to null to 320 MDB_txn *txn; local 326 txn = mdb_cursor_txn(slmdb->cursor); 329 mdb_txn_abort(txn); 391 * slmdb->txn is either the database open() transaction or a 393 * aborts commits a transaction, it must set slmdb->txn to null to avoid 401 if ((status = mdb_drop(slmdb->txn, slmdb->dbi, 0)) != 0) { 402 mdb_txn_abort(slmdb->txn); 403 slmdb->txn = 0; 407 status = mdb_txn_commit(slmdb->txn); 562 MDB_txn *txn; local 600 MDB_txn *txn; local 643 MDB_txn *txn; local 687 MDB_txn *txn; local 868 MDB_txn *txn; local [all...] |
| /src/external/bsd/openldap/dist/libraries/liblmdb/ |
| sample-mdb.txt | 26 MDB_txn *txn; 34 rc = mdb_txn_begin(env, NULL, 0, &txn); 35 rc = mdb_dbi_open(txn, NULL, 0, &dbi); 43 rc = mdb_put(txn, dbi, &key, &data, 0); 44 rc = mdb_txn_commit(txn); 49 rc = mdb_txn_begin(env, NULL, MDB_RDONLY, &txn); 50 rc = mdb_cursor_open(txn, dbi, &cursor); 57 mdb_txn_abort(txn);
|
| mtest4.c | 35 MDB_txn *txn; local 57 E(mdb_txn_begin(env, NULL, 0, &txn)); 58 E(mdb_dbi_open(txn, "id4", MDB_CREATE|MDB_DUPSORT|MDB_DUPFIXED, &dbi)); 69 if (RES(MDB_KEYEXIST, mdb_put(txn, dbi, &key, &data, MDB_NODUPDATA))) 73 E(mdb_txn_commit(txn)); 78 E(mdb_txn_begin(env, NULL, MDB_RDONLY, &txn)); 79 E(mdb_cursor_open(txn, dbi, &cursor)); 87 mdb_txn_abort(txn); 101 E(mdb_txn_begin(env, NULL, 0, &txn)); 102 (void)RES(MDB_KEYEXIST, mdb_put(txn, dbi, &key, &data, MDB_NODUPDATA)) [all...] |
| mtest2.c | 35 MDB_txn *txn; local 57 E(mdb_txn_begin(env, NULL, 0, &txn)); 58 E(mdb_dbi_open(txn, "id1", MDB_CREATE, &dbi)); 68 if (RES(MDB_KEYEXIST, mdb_put(txn, dbi, &key, &data, MDB_NOOVERWRITE))) 72 E(mdb_txn_commit(txn)); 75 E(mdb_txn_begin(env, NULL, MDB_RDONLY, &txn)); 76 E(mdb_cursor_open(txn, dbi, &cursor)); 84 mdb_txn_abort(txn); 90 txn=NULL; 91 E(mdb_txn_begin(env, NULL, 0, &txn)); [all...] |
| mtest3.c | 35 MDB_txn *txn; local 59 E(mdb_txn_begin(env, NULL, 0, &txn)); 60 E(mdb_dbi_open(txn, "id2", MDB_CREATE|MDB_DUPSORT, &dbi)); 72 if (RES(MDB_KEYEXIST, mdb_put(txn, dbi, &key, &data, MDB_NODUPDATA))) 76 E(mdb_txn_commit(txn)); 79 E(mdb_txn_begin(env, NULL, MDB_RDONLY, &txn)); 80 E(mdb_cursor_open(txn, dbi, &cursor)); 88 mdb_txn_abort(txn); 94 txn=NULL; 95 E(mdb_txn_begin(env, NULL, 0, &txn)); [all...] |
| mtest5.c | 35 MDB_txn *txn; local 59 E(mdb_txn_begin(env, NULL, 0, &txn)); 60 E(mdb_dbi_open(txn, "id2", MDB_CREATE|MDB_DUPSORT, &dbi)); 61 E(mdb_cursor_open(txn, dbi, &cursor)); 78 E(mdb_txn_commit(txn)); 81 E(mdb_txn_begin(env, NULL, MDB_RDONLY, &txn)); 82 E(mdb_cursor_open(txn, dbi, &cursor)); 90 mdb_txn_abort(txn); 96 txn=NULL; 97 E(mdb_txn_begin(env, NULL, 0, &txn)); [all...] |
| mtest.c | 32 MDB_txn *txn; local 54 E(mdb_txn_begin(env, NULL, 0, &txn)); 55 E(mdb_dbi_open(txn, NULL, 0, &dbi)); 66 if (RES(MDB_KEYEXIST, mdb_put(txn, dbi, &key, &data, MDB_NOOVERWRITE))) { 73 E(mdb_txn_commit(txn)); 76 E(mdb_txn_begin(env, NULL, MDB_RDONLY, &txn)); 77 E(mdb_cursor_open(txn, dbi, &cursor)); 85 mdb_txn_abort(txn); 91 txn=NULL; 92 E(mdb_txn_begin(env, NULL, 0, &txn)); [all...] |
| mtest6.c | 37 MDB_txn *txn; local 52 E(mdb_txn_begin(env, NULL, 0, &txn)); 53 E(mdb_dbi_open(txn, "id6", MDB_CREATE|MDB_INTEGERKEY, &dbi)); 54 E(mdb_cursor_open(txn, dbi, &cursor)); 55 E(mdb_stat(txn, dbi, &mst)); 93 mdb_txn_commit(txn); 100 txn=NULL; 101 E(mdb_txn_begin(env, NULL, 0, &txn)); 108 if (RES(MDB_NOTFOUND, mdb_del(txn, dbi, &key, &data))) { 110 mdb_txn_abort(txn); [all...] |
| sample-bdb.txt | 27 DB_TXN *txn; 37 rc = env->txn_begin(env, NULL, &txn, 0); 38 rc = dbi->open(dbi, txn, "test.bdb", NULL, DB_BTREE, DB_CREATE, 0664); 48 rc = dbi->put(dbi, txn, &key, &data, 0); 49 rc = txn->commit(txn, 0); 51 fprintf(stderr, "txn->commit: (%d) %s\n", rc, db_strerror(rc)); 54 rc = env->txn_begin(env, NULL, &txn, 0); 55 rc = dbi->cursor(dbi, txn, &cursor, 0); 68 rc = txn->abort(txn) [all...] |
| lmdb.h | 428 /** Txn has too many dirty pages */ 961 * @param[out] txn Address where the new #MDB_txn handle will be stored 975 int mdb_txn_begin(MDB_env *env, MDB_txn *parent, unsigned int flags, MDB_txn **txn); 979 * @param[in] txn A transaction handle returned by #mdb_txn_begin() 981 MDB_env *mdb_txn_env(MDB_txn *txn); 989 * @param[in] txn A transaction handle returned by #mdb_txn_begin() 992 size_t mdb_txn_id(MDB_txn *txn); 1000 * @param[in] txn A transaction handle returned by #mdb_txn_begin() 1010 int mdb_txn_commit(MDB_txn *txn); 1018 * @param[in] txn A transaction handle returned by #mdb_txn_begin( [all...] |
| mdb.c | 713 /** The process ID of the process owning this reader txn. */ 715 /** The thread ID of the thread owning this txn. */ 1122 MDB_txn *mt_parent; /**< parent of a nested txn */ 1123 /** Nested txn under this txn, set together with flag #MDB_TXN_HAS_CHILD */ 1149 /** For read txns: This thread/txn's reader table slot, or NULL. */ 1162 #define DB_DIRTY 0x01 /**< DB was written in this txn */ 1164 #define DB_NEW 0x04 /**< Named-DB handle opened in this txn */ 1173 /** Number of DB records in use, or 0 when the txn is finished. 1174 * This number only ever increments until the txn finishes; w 1914 MDB_txn *txn = mc->mc_txn; local 1966 MDB_txn *txn = mc->mc_txn; local 2058 MDB_txn *txn = m0->mc_txn; local 2221 MDB_txn *txn = mc->mc_txn; local 2473 MDB_txn *txn = mc->mc_txn; local 2890 MDB_txn *txn; local 5113 MDB_txn *txn; local 5515 MDB_txn *txn = mc->mc_txn; local 5761 MDB_txn *txn = mc->mc_txn; local 9452 MDB_txn *txn = NULL; local 9580 MDB_txn *txn = NULL; local 10036 MDB_txn *txn = mc->mc_txn; local [all...] |
| mdb_dump.c | 99 static int dumpit(MDB_txn *txn, MDB_dbi dbi, char *name) 108 rc = mdb_dbi_flags(txn, dbi, &flags); 111 rc = mdb_stat(txn, dbi, &ms); 114 rc = mdb_env_info(mdb_txn_env(txn), &info); 137 rc = mdb_cursor_open(txn, dbi, &mc); 170 MDB_txn *txn; local 255 rc = mdb_txn_begin(env, NULL, MDB_RDONLY, &txn); 261 rc = mdb_open(txn, subname, 0, &dbi); 272 rc = mdb_cursor_open(txn, dbi, &cursor); 286 rc = mdb_open(txn, str, 0, &db2) [all...] |
| mdb_stat.c | 50 MDB_txn *txn; local 152 rc = mdb_txn_begin(env, NULL, MDB_RDONLY, &txn); 165 rc = mdb_cursor_open(txn, dbi, &cursor); 170 rc = mdb_stat(txn, dbi, &mst); 208 rc = mdb_open(txn, subname, 0, &dbi); 214 rc = mdb_stat(txn, dbi, &mst); 226 rc = mdb_cursor_open(txn, dbi, &cursor); 239 rc = mdb_open(txn, str, 0, &db2); 244 rc = mdb_stat(txn, db2, &mst); 260 mdb_txn_abort(txn); [all...] |
| mdb_load.c | 297 MDB_txn *txn; local 402 rc = mdb_txn_begin(env, NULL, 0, &txn); 408 rc = mdb_open(txn, subname, flags|MDB_CREATE, &dbi); 415 mdb_set_compare(txn, dbi, greater); 417 mdb_set_dupsort(txn, dbi, greater); 420 rc = mdb_cursor_open(txn, dbi, &mc); 459 rc = mdb_txn_commit(txn); 465 rc = mdb_txn_begin(env, NULL, 0, &txn); 470 rc = mdb_cursor_open(txn, dbi, &mc); 484 rc = mdb_txn_commit(txn); [all...] |
| /src/external/mpl/bind/dist/bin/tools/ |
| named-nzd2nzf.c | 31 MDB_txn *txn = NULL; local 57 status = mdb_txn_begin(env, 0, MDB_RDONLY, &txn); 64 status = mdb_dbi_open(txn, NULL, 0, &dbi); 71 status = mdb_cursor_open(txn, dbi, &cursor); 99 mdb_txn_abort(txn);
|
| /src/external/bsd/openldap/dist/servers/slapd/back-mdb/ |
| key.c | 37 MDB_txn *txn, 66 rc = mdb_idl_fetch_key( be, txn, dbi, &key, ids, saved_cursor, get_flag );
|
| proto-mdb.h | 37 int mdb_attr_dbs_open( BackendDB *be, MDB_txn *txn, struct config_reply_s *cr ); 60 int mdb_ad_read( struct mdb_info *mdb, MDB_txn *txn ); 61 int mdb_ad_get( struct mdb_info *mdb, MDB_txn *txn, AttributeDescription *ad ); 69 int mdb_resume_index( BackendDB *be, MDB_txn *txn ); 85 MDB_txn *txn, 122 MDB_txn *txn, 130 MDB_txn *txn, 136 MDB_txn *txn, 144 MDB_txn *txn, 175 MDB_txn *txn, [all...] |
| delete.c | 40 MDB_txn *txn = NULL; local 67 txn = moi->moi_txn; 79 rs->sr_err = mdb_cursor_open( txn, mdb->mi_dn2id, &mc ); 90 rs->sr_err = mdb_dn2entry( op, txn, mc, &pdn, &p, NULL, 1 ); 134 rs->sr_err = mdb_dn2entry( op, txn, mc, &op->o_req_ndn, &e, NULL, 0 ); 275 rs->sr_err = mdb_dn2id_children( op, txn, e ); 310 rs->sr_err = mdb_index_entry_del( op, txn, e ); 327 rs->sr_err = mdb_index_values( op, txn, slap_schema.si_ad_entryCSN, 337 rs->sr_err = mdb_id2entry_delete( op->o_bd, txn, e ); 349 rs->sr_err = mdb_dn2id_children( op, txn, p ) [all...] |
| init.c | 98 MDB_txn *txn; local 195 rc = mdb_txn_begin( mdb->mi_dbenv, NULL, flags & MDB_RDONLY, &txn ); 219 rc = mdb_dbi_open( txn, 240 mdb_set_compare( txn, mdb->mi_dbis[i], mdb_id_compare ); 242 mdb_set_compare( txn, mdb->mi_dbis[i], mdb_id2v_compare ); 243 mdb_set_dupsort( txn, mdb->mi_dbis[i], mdb_id2v_dupsort ); 247 mdb_set_dupsort( txn, mdb->mi_dbis[i], mdb_dup_compare ); 249 rc = mdb_cursor_open( txn, mdb->mi_dbis[i], &mc ); 279 rc = mdb_ad_read( mdb, txn ); 281 mdb_txn_abort( txn ); [all...] |
| add.c | 39 MDB_txn *txn = NULL; local 79 txn = moi->moi_txn; 109 rs->sr_err = mdb_cursor_open( txn, mdb->mi_dn2id, &mcd ); 120 rs->sr_err = mdb_dn2entry( op, txn, mcd, &op->ora_e->e_nname, &p, NULL, 1 ); 277 rs->sr_err = mdb_cursor_open( txn, mdb->mi_id2entry, &mc ); 317 rs->sr_err = mdb_index_entry_add( op, txn, op->ora_e ); 327 rs->sr_err = mdb_id2entry_add( op, txn, mc, op->ora_e ); 365 mdb_txn_abort( txn ); 367 txn = NULL; 371 rs->sr_err = mdb_txn_commit( txn ); [all...] |
| /src/crypto/external/bsd/heimdal/dist/lib/hdb/ |
| hdb-mdb.c | 211 MDB_txn *txn; local 218 code = mdb_txn_begin(mi->e, NULL, MDB_RDONLY, &txn); 222 code = mdb_get(txn, mi->d, &k, &v); 225 mdb_txn_abort(txn); 236 MDB_txn *txn; local 245 code = mdb_txn_begin(mi->e, NULL, 0, &txn); 249 code = mdb_put(txn, mi->d, &k, &v, replace ? 0 : MDB_NOOVERWRITE); 251 mdb_txn_abort(txn); 253 code = mdb_txn_commit(txn); 267 MDB_txn *txn; local 296 MDB_txn *txn; local [all...] |