| /freebsd-13.1/sbin/hastd/ |
| H A D | ebuf.c | 75 eb = malloc(sizeof(*eb)); in ebuf_alloc() 86 eb->eb_end = eb->eb_start + size; in ebuf_alloc() 91 eb->eb_used = eb->eb_start + PAGE_SIZE / 4; in ebuf_alloc() 107 free(eb); in ebuf_free() 116 if (size > (size_t)(eb->eb_used - eb->eb_start)) { in ebuf_add_head() 143 if (size > (size_t)(eb->eb_end - (eb->eb_used + eb->eb_size))) { in ebuf_add_tail() 152 (size_t)(eb->eb_end - (eb->eb_used + eb->eb_size))); in ebuf_add_tail() 158 bcopy(data, eb->eb_used + eb->eb_size, size); in ebuf_add_tail() 196 return (eb->eb_size > 0 ? eb->eb_used : NULL); in ebuf_data() 230 bcopy(eb->eb_used, newused, eb->eb_size); in ebuf_head_extend() [all …]
|
| H A D | hast_proto.c | 84 struct ebuf *eb; in hast_proto_send() local 109 eb = nv_hton(nv); in hast_proto_send() 110 if (eb == NULL) in hast_proto_send() 136 struct ebuf *eb; in hast_proto_recv_hdr() local 139 eb = NULL; in hast_proto_recv_hdr() 152 eb = ebuf_alloc(hdr.size); in hast_proto_recv_hdr() 153 if (eb == NULL) in hast_proto_recv_hdr() 157 hptr = ebuf_data(eb, NULL); in hast_proto_recv_hdr() 161 nv = nv_ntoh(eb); in hast_proto_recv_hdr() 168 if (eb != NULL) in hast_proto_recv_hdr() [all …]
|
| /freebsd-13.1/contrib/subversion/subversion/libsvn_delta/ |
| H A D | debug_editor.c | 56 SVN_ERR(svn_stream_puts(eb->out, eb->prefix)); in write_indent() 75 SVN_ERR(eb->wrapped_editor->set_target_revision(eb->wrapped_edit_baton, in set_target_revision() 93 eb->indent_level++; in open_root() 96 SVN_ERR(eb->wrapped_editor->open_root(eb->wrapped_edit_baton, in open_root() 145 eb->indent_level++; in add_directory() 155 b->edit_baton = eb; in add_directory() 175 eb->indent_level++; in open_directory() 207 eb->indent_level++; in add_file() 462 struct edit_baton *eb = apr_palloc(pool, sizeof(*eb)); in svn_delta__get_debug_editor() local 492 eb->out = out; in svn_delta__get_debug_editor() [all …]
|
| H A D | cancel.c | 54 SVN_ERR(eb->cancel_func(eb->cancel_baton)); in set_target_revision() 70 SVN_ERR(eb->cancel_func(eb->cancel_baton)); in open_root() 93 SVN_ERR(eb->cancel_func(eb->cancel_baton)); in delete_entry() 113 SVN_ERR(eb->cancel_func(eb->cancel_baton)); in add_directory() 139 SVN_ERR(eb->cancel_func(eb->cancel_baton)); in open_directory() 165 SVN_ERR(eb->cancel_func(eb->cancel_baton)); in add_file() 191 SVN_ERR(eb->cancel_func(eb->cancel_baton)); in open_file() 215 SVN_ERR(eb->cancel_func(eb->cancel_baton)); in apply_textdelta() 235 SVN_ERR(eb->cancel_func(eb->cancel_baton)); in apply_textdelta_stream() 252 SVN_ERR(eb->cancel_func(eb->cancel_baton)); in close_file() [all …]
|
| H A D | compat.c | 472 for (; eb->paths_processed < eb->path_order->nelts; ++eb->paths_processed) in run_ev2_actions() 532 db->eb = eb; in ev2_open_root() 533 db->path = apr_pstrdup(eb->edit_pool, eb->base_relpath); in ev2_open_root() 589 cb->eb = pb->eb; in ev2_add_directory() 632 db->eb = pb->eb; in ev2_open_directory() 706 fb->eb = pb->eb; in ev2_add_file() 747 fb->eb = pb->eb; in ev2_open_file() 1000 struct ev2_edit_baton *eb = apr_pcalloc(pool, sizeof(*eb)); in svn_delta__delta_from_editor() local 1013 eb->exb = exb; in svn_delta__delta_from_editor() 1746 change = insert_change(eb->base_relpath, eb->changes); in drive_changes() [all …]
|
| H A D | depth_filter_editor.c | 89 okay_to_edit(struct edit_baton *eb, in okay_to_edit() argument 116 switch (eb->requested_depth) in okay_to_edit() 142 struct edit_baton *eb = edit_baton; in set_target_revision() local 145 return eb->wrapped_editor->set_target_revision(eb->wrapped_edit_baton, in set_target_revision() 155 struct edit_baton *eb = edit_baton; in open_root() local 160 SVN_ERR(eb->wrapped_editor->open_root(eb->wrapped_edit_baton, base_revision, in open_root() 431 return eb->wrapped_editor->close_edit(eb->wrapped_edit_baton, pool); in close_edit() 444 struct edit_baton *eb; in svn_delta_depth_filter_editor() local 475 eb = apr_palloc(pool, sizeof(*eb)); in svn_delta_depth_filter_editor() 478 eb->has_target = has_target; in svn_delta_depth_filter_editor() [all …]
|
| H A D | branch_migrate.c | 71 struct edit_baton *eb = edit_baton; in open_root() local 79 dir_baton->edit_baton = eb; in open_root() 121 db->edit_baton = eb; in add_directory() 144 db->edit_baton = eb; in open_directory() 169 fb->edit_baton = eb; in add_file() 192 fb->edit_baton = eb; in open_file() 355 struct edit_baton *eb = apr_palloc(result_pool, sizeof(*eb)); in svn_branch__compat_get_migration_editor() local 357 eb->edit_txn = edit_txn; in svn_branch__compat_get_migration_editor() 358 eb->from_session = from_session; in svn_branch__compat_get_migration_editor() 359 eb->revision = revision; in svn_branch__compat_get_migration_editor() [all …]
|
| H A D | branch_compat.c | 696 SVN_ERR(eb->deditor->set_target_revision(eb->dedit_baton, target_revision, 710 SVN_ERR(eb->deditor->open_root(eb->dedit_baton, base_revision, in open_root_ev3() 711 eb->edit_pool, &eb->ev1_root_dir_baton)); in open_root_ev3() 898 eb->fetch_func, eb->fetch_baton, in apply_change() 1207 eb.txn = txn; in svn_branch__compat_fetch() 1745 SVN_ERR(svn_delta_path_driver3(eb->deditor, eb->dedit_baton, in drive_changes() 1881 svn_error_clear(eb->deditor->abort_edit(eb->dedit_baton, scratch_pool)); in compat_branch_txn_complete() 1895 SVN_ERR(eb->deditor->abort_edit(eb->dedit_baton, scratch_pool)); in compat_branch_txn_abort() 1977 svn_branch__txn_priv_t *eb = apr_pcalloc(result_pool, sizeof(*eb)); in svn_branch__compat_txn_from_delta_for_commit() local 1990 eb->fetch_baton = wb; in svn_branch__compat_txn_from_delta_for_commit() [all …]
|
| /freebsd-13.1/contrib/subversion/subversion/libsvn_repos/ |
| H A D | commit.c | 334 SVN_ERR(check_authz(eb, full_path, eb->txn_root, in add_file_or_directory() 336 SVN_ERR(check_authz(eb, pb->path, eb->txn_root, in add_file_or_directory() 378 SVN_ERR(check_authz(eb, pb->path, eb->txn_root, in add_file_or_directory() 451 SVN_ERR(svn_fs_txn_name(&(eb->txn_name), eb->txn, eb->pool)); in open_root() 452 SVN_ERR(svn_fs_txn_root(&(eb->txn_root), eb->txn, eb->pool)); in open_root() 494 SVN_ERR(check_authz(eb, full_path, eb->txn_root, in delete_entry() 496 SVN_ERR(check_authz(eb, parent->path, eb->txn_root, in delete_entry() 624 SVN_ERR(check_authz(eb, full_path, eb->txn_root, in open_file() 891 if ((! eb->txn) || (! eb->txn_owner) || eb->txn_aborted) in abort_edit() 1031 eb = apr_pcalloc(subpool, sizeof(*eb)); in svn_repos_get_commit_editor5() [all …]
|
| H A D | dump_editor.c | 76 struct dump_edit_baton *eb; member 111 struct dump_edit_baton *eb; member 206 new_db->eb = eb; in make_dir_baton() 233 new_fb->eb = pb->eb; in make_file_baton() 531 eb->pending_db = NULL; in dump_pending_dir() 882 struct dump_edit_baton *eb = fb->eb; in apply_textdelta() local 906 struct dump_edit_baton *eb = fb->eb; in close_file() local 1008 eb->stream = stream; in svn_repos__get_dump_editor() 1010 eb->pending_db = NULL; in svn_repos__get_dump_editor() 1018 SVN_ERR(svn_io_open_unique_file3(&(eb->delta_file), &(eb->delta_abspath), in svn_repos__get_dump_editor() [all …]
|
| H A D | dump.c | 1140 if (eb->verify || eb->notify_func) in dump_node() 1236 SVN_ERR_W(node_must_exist(eb, path, eb->current_rev, in dump_node() 1310 if (!eb->verify && cmp_rev < eb->oldest_dumped_rev in dump_node() 1394 if (!eb->verify && eb->notify_func && eb->oldest_dumped_rev > 1) in dump_node() 1405 eb->notify_func, eb->notify_baton, in dump_node() 1413 if (eb->verify && eb->check_normalization && eb->notify_func) in dump_node() 1612 if (!was_deleted && eb->verify && eb->check_normalization && eb->notify_func) in add_directory() 1722 if (!was_deleted && eb->verify && eb->check_normalization && eb->notify_func) in add_file() 1901 struct edit_baton *eb = apr_pcalloc(pool, sizeof(*eb)); in get_dump_editor() local 1913 eb->fs = fs; in get_dump_editor() [all …]
|
| /freebsd-13.1/contrib/subversion/subversion/libsvn_wc/ |
| H A D | diff_local.c | 111 if (!eb->cur) in ensure_state() 135 if (eb->cur && eb->cur->skip_children) in ensure_state() 138 ns_pool = svn_pool_create(eb->cur ? eb->cur->pool : eb->pool); in ensure_state() 144 ns->parent = eb->cur; in ensure_state() 145 eb->cur = ns; in ensure_state() 215 while (eb->cur in diff_status_callback() 246 if (eb->cur && eb->cur->skip_children) in diff_status_callback() 335 eb->cur ? eb->cur->baton : NULL, in diff_status_callback() 343 eb->cur ? eb->cur->baton : NULL, in diff_status_callback() 497 eb.db = wc_ctx->db; in svn_wc__diff7() [all …]
|
| H A D | externals.c | 553 *file_baton = eb; in add_file() 555 eb->added = TRUE; in add_file() 576 *file_baton = eb; in open_file() 583 eb->db, eb->local_abspath, in open_file() 809 eb->db, eb->local_abspath, in close_file() 966 SVN_ERR(svn_wc__wq_run(eb->db, eb->wri_abspath, in close_file() 1004 eb->notify_func(eb->notify_baton, notify, pool); in close_file() 1081 struct edit_baton *eb = apr_pcalloc(edit_pool, sizeof(*eb)); in svn_wc__get_file_external_editor() local 1085 eb->db = db; in svn_wc__get_file_external_editor() 1091 eb->name = svn_dirent_basename(eb->local_abspath, NULL); in svn_wc__get_file_external_editor() [all …]
|
| H A D | ambient_depth_filter_editor.c | 233 d->edit_baton = eb; in make_dir_baton() 324 return eb->wrapped_editor->set_target_revision(eb->wrapped_edit_baton, in set_target_revision() 344 if (! *eb->target) in open_root() 353 eb->db, eb->anchor_abspath, in open_root() 365 return eb->wrapped_editor->open_root(eb->wrapped_edit_baton, base_revision, in open_root() 669 return eb->wrapped_editor->close_edit(eb->wrapped_edit_baton, pool); in close_edit() 683 struct edit_baton *eb; in svn_wc__ambient_depth_filter_editor() local 704 eb = apr_pcalloc(result_pool, sizeof(*eb)); in svn_wc__ambient_depth_filter_editor() 707 eb->db = db; in svn_wc__ambient_depth_filter_editor() 709 eb->target = target; in svn_wc__ambient_depth_filter_editor() [all …]
|
| H A D | update_editor.c | 480 err = svn_wc__wq_run(eb->db, eb->wcroot_abspath, in cleanup_edit_baton() 656 (*eb->notify_func)(eb->notify_baton, notify, scratch_pool); in do_notification() 1812 eb->cancel_func, eb->cancel_baton, in delete_entry() 2803 eb->repos_root, eb->repos_uuid, in close_directory() 2820 eb->cancel_func, eb->cancel_baton, in close_directory() 4146 eb->cancel_func, eb->cancel_baton, in merge_file() 4850 apr_pool_cleanup_kill(eb->pool, eb, cleanup_edit_baton); in close_edit() 4852 SVN_ERR(svn_wc__wq_run(eb->db, eb->wcroot_abspath, in close_edit() 4853 eb->cancel_func, eb->cancel_baton, in close_edit() 4936 eb = apr_pcalloc(edit_pool, sizeof(*eb)); in make_editor() [all …]
|
| H A D | diff_editor.c | 261 eb = apr_pcalloc(pool, sizeof(*eb)); in make_edit_baton() 305 db->eb = eb; in make_dir_baton() 337 fb->eb = eb; in make_file_baton() 1281 struct edit_baton_t *eb = pb->eb; in handle_local_only() local 1628 struct edit_baton_t *eb = pb->eb; in add_directory() local 1687 struct edit_baton_t *eb = pb->eb; in open_directory() local 1788 struct edit_baton_t *eb = db->eb; in close_directory() local 1931 struct edit_baton_t *eb = pb->eb; in add_file() local 1991 struct edit_baton_t *eb = pb->eb; in open_file() local 2071 struct edit_baton_t *eb = fb->eb; in apply_textdelta() local [all …]
|
| H A D | status.c | 1788 eb->cancel_func, eb->cancel_baton, in make_dir_baton() 1976 eb->cancel_func, eb->cancel_baton, in handle_statii() 1981 if (is_sendable_status(status, eb->no_ignore, eb->get_all)) in handle_statii() 2046 eb->db, eb->wb.check_working_copy, in delete_entry() 2171 eb->db, eb->wb.check_working_copy, in close_directory() 2243 eb->get_all, eb->no_ignore, in close_directory() 2249 SVN_ERR((eb->status_func)(eb->status_baton, eb->target_abspath, in close_directory() 2264 if (is_sendable_status(eb->anchor_status, eb->no_ignore, in close_directory() 2493 eb = apr_pcalloc(result_pool, sizeof(*eb)); in svn_wc__get_status_editor() 2511 eb->wb.target_abspath = eb->target_abspath; in svn_wc__get_status_editor() [all …]
|
| /freebsd-13.1/contrib/subversion/subversion/svnsync/ |
| H A D | sync.c | 269 return eb->wrapped_editor->set_target_revision(eb->wrapped_edit_baton, in set_target_revision() 282 SVN_ERR(eb->wrapped_editor->open_root(eb->wrapped_edit_baton, in open_root() 328 b->edit_baton = eb; in add_directory() 413 if (! eb->quiet) in apply_textdelta() 652 SVN_ERR(eb->wrapped_editor->open_root(eb->wrapped_edit_baton, in close_edit() 658 if (! eb->quiet) in close_edit() 680 return eb->wrapped_editor->close_edit(eb->wrapped_edit_baton, pool); in close_edit() 688 return eb->wrapped_editor->abort_edit(eb->wrapped_edit_baton, pool); in abort_edit() 707 edit_baton_t *eb = apr_pcalloc(pool, sizeof(*eb)); in svnsync_get_sync_editor() local 731 eb->quiet = quiet; in svnsync_get_sync_editor() [all …]
|
| /freebsd-13.1/contrib/subversion/subversion/libsvn_client/ |
| H A D | wc_editor.c | 139 eb->notify_func, eb->notify_baton, in mkdir() 159 db->eb = eb; in dir_open_or_add() 187 struct edit_baton_t *eb = db->eb; in pool_cleanup_handler() local 244 struct edit_baton_t *eb = pb->eb; in delete_entry() local 267 struct edit_baton_t *eb = pb->eb; in dir_open() local 285 struct edit_baton_t *eb = pb->eb; in dir_add() local 320 struct edit_baton_t *eb = db->eb; in dir_change_prop() local 388 struct edit_baton_t *eb = pb->eb; in file_open_or_add() local 392 fb->eb = eb; in file_open_or_add() 453 struct edit_baton_t *eb = fb->eb; in file_change_prop() local [all …]
|
| H A D | repos_diff.c | 427 if (!eb->empty_file) in get_empty_file() 430 eb->pool, eb->pool)); in get_empty_file() 492 if (eb->cancel_func) in diff_deleted_file() 493 SVN_ERR(eb->cancel_func(eb->cancel_baton)); in diff_deleted_file() 503 if (eb->cancel_func) in diff_deleted_file() 504 SVN_ERR(eb->cancel_func(eb->cancel_baton)); in diff_deleted_file() 551 SVN_ERR(eb->cancel_func(eb->cancel_baton)); in diff_deleted_dir() 637 SVN_ERR(svn_ra_check_path(eb->ra_session, path, eb->revision, &kind, in delete_entry() 1356 struct edit_baton *eb = apr_pcalloc(editor_pool, sizeof(*eb)); in svn_client__get_diff_editor2() local 1361 eb->depth = depth; in svn_client__get_diff_editor2() [all …]
|
| H A D | export.c | 590 SVN_ERR(open_root_internal(eb->root_path, eb->overwrite, in open_root() 591 eb->notify_func, eb->notify_baton, pool)); in open_root() 595 db->edit_baton = eb; in open_root() 629 if (eb->notify_func) in add_directory() 635 (*eb->notify_func)(eb->notify_baton, notify, pool); in add_directory() 640 db->edit_baton = eb; in add_directory() 1053 (*eb->notify_func)(eb->notify_baton, notify, scratch_pool); in add_file_ev2() 1094 (*eb->notify_func)(eb->notify_baton, notify, scratch_pool); in add_directory_ev2() 1125 exb->baton = eb; in get_editor_ev2() 1144 SVN_ERR(open_root_internal(eb->root_path, eb->overwrite, eb->notify_func, in get_editor_ev2() [all …]
|
| /freebsd-13.1/contrib/subversion/subversion/libsvn_fs/ |
| H A D | editor.c | 71 if (eb->root == NULL) in get_root() 72 SVN_ERR(svn_fs_txn_root(&eb->root, eb->txn, eb->txn_pool)); in get_root() 73 *root = eb->root; in get_root() 386 eb->cancel_func, eb->cancel_baton, scratch_pool)); in add_file_cb() 500 eb->cancel_func, eb->cancel_baton, scratch_pool)); in alter_file_cb() 523 SVN_UNUSED(eb); in alter_symlink_cb() 673 eb->txn = NULL; in abort_cb() 701 struct edit_baton *eb = apr_pcalloc(result_pool, sizeof(*eb)); in make_editor() local 703 eb->txn = txn; in make_editor() 769 if (eb->completed) in svn_fs__editor_commit() [all …]
|
| /freebsd-13.1/contrib/subversion/subversion/svnbench/ |
| H A D | null-export-cmd.c | 87 eb->dir_count++; in add_directory() 104 eb->file_count++; in add_file() 113 edit_baton_t *eb = baton; in window_handler() local 142 eb->prop_count++; in change_file_prop() 154 edit_baton_t *eb = dir_baton; in change_dir_prop() local 155 eb->prop_count++; in change_dir_prop() 172 edit_baton_t *eb = baton; in file_write_handler() local 173 eb->byte_count += *len; in file_write_handler() 227 eb->file_count++; in bench_null_export() 288 eb->dir_count++; in bench_null_export() [all …]
|
| /freebsd-13.1/contrib/subversion/subversion/svnrdump/ |
| H A D | dump_editor.c | 55 struct dump_edit_baton *eb = baton; in fetch_base_func() local 63 base_revision = eb->current_revision - 1; in fetch_base_func() 95 struct dump_edit_baton *eb = baton; in fetch_props_func() local 102 base_revision = eb->current_revision - 1; in fetch_props_func() 139 struct dump_edit_baton *eb = baton; in fetch_kind_func() local 145 base_revision = eb->current_revision - 1; in fetch_kind_func() 164 struct dump_edit_baton *eb; in svn_rdump__get_dump_editor() local 168 eb = apr_pcalloc(pool, sizeof(struct dump_edit_baton)); in svn_rdump__get_dump_editor() 169 eb->ra_session = ra_session; in svn_rdump__get_dump_editor() 170 eb->current_revision = revision; in svn_rdump__get_dump_editor() [all …]
|
| /freebsd-13.1/contrib/subversion/subversion/libsvn_ra_svn/ |
| H A D | editorp.c | 71 ra_svn_edit_baton_t *eb; member 135 b->eb = eb; in ra_svn_make_baton() 152 eb->conn->may_check_for_error = eb->conn->error_check_interval == 0; in check_for_error_internal() 194 *root_baton = ra_svn_make_baton(eb->conn, pool, eb, token); in ra_svn_open_root() 416 if (eb->callback) in ra_svn_close_edit() 417 SVN_ERR(eb->callback(eb->callback_baton)); in ra_svn_close_edit() 425 if (eb->got_status) in ra_svn_abort_edit() 441 eb = apr_palloc(pool, sizeof(*eb)); in svn_ra_svn_get_editor() 442 eb->conn = conn; in svn_ra_svn_get_editor() 445 eb->next_token = 0; in svn_ra_svn_get_editor() [all …]
|