| /freebsd-13.1/contrib/subversion/subversion/libsvn_fs_fs/ |
| H A D | fs_fs.c | 129 fs_fs_data_t *ffd = baton_void; in reset_lock_flag() local 130 ffd->has_write_lock = FALSE; in reset_lock_flag() 745 read_config(fs_fs_data_t *ffd, in read_config() argument 1181 if (!ffd->use_block_read) in read_global_config() 1182 ffd->block_size = MIN(0x1000, ffd->block_size); in read_global_config() 1236 ffd->format = format; in svn_fs_fs__read_format_file() 1824 ffd->format = format; in svn_fs_fs__create_file_tree() 1839 if (ffd->max_files_per_dir) in svn_fs_fs__create_file_tree() 2296 *fs_format = ffd->format; in svn_fs_fs__info_format() 2304 switch (ffd->format) in svn_fs_fs__info_format() [all …]
|
| H A D | rep-cache.c | 62 fs_fs_data_t *ffd = fs->fsap_data; in open_rep_cache() local 117 ffd->rep_cache_db = sdb; in open_rep_cache() 126 fs_fs_data_t *ffd = fs->fsap_data; in svn_fs_fs__open_rep_cache() local 140 if (ffd->rep_cache_db) in svn_fs_fs__close_rep_cache() 143 ffd->rep_cache_db = NULL; in svn_fs_fs__close_rep_cache() 144 ffd->rep_cache_db_opened = 0; in svn_fs_fs__close_rep_cache() 186 if (! ffd->rep_cache_db) in svn_fs_fs__walk_rep_reference() 275 if (! ffd->rep_cache_db) in svn_fs_fs__get_rep_reference() 336 if (! ffd->rep_cache_db) in svn_fs_fs__set_rep_reference() 368 if (! ffd->rep_cache_db) in svn_fs_fs__del_rep_reference() [all …]
|
| H A D | util.c | 41 fs_fs_data_t *ffd = fs->fsap_data; in svn_fs_fs__is_packed_rev() local 50 fs_fs_data_t *ffd = fs->fsap_data; in svn_fs_fs__is_packed_revprop() local 62 fs_fs_data_t *ffd = fs->fsap_data; in svn_fs_fs__packed_base_rev() local 109 fs_fs_data_t *ffd = fs->fsap_data; in svn_fs_fs__path_rev_packed() local 111 assert(ffd->max_files_per_dir); in svn_fs_fs__path_rev_packed() 124 fs_fs_data_t *ffd = fs->fsap_data; in svn_fs_fs__path_rev_shard() local 126 assert(ffd->max_files_per_dir); in svn_fs_fs__path_rev_shard() 140 if (ffd->max_files_per_dir) in svn_fs_fs__path_rev() 185 assert(ffd->max_files_per_dir); in svn_fs_fs__path_revprops_shard() 199 assert(ffd->max_files_per_dir); in svn_fs_fs__path_revprops_pack_shard() [all …]
|
| H A D | caching.c | 353 fs_fs_data_t *ffd = fs->fsap_data; in svn_fs_fs__initialize_caches() local 582 ffd->fulltext_cache = NULL; in svn_fs_fs__initialize_caches() 583 ffd->mergeinfo_cache = NULL; in svn_fs_fs__initialize_caches() 607 ffd->properties_cache = NULL; in svn_fs_fs__initialize_caches() 660 ffd->txdelta_window_cache = NULL; in svn_fs_fs__initialize_caches() 661 ffd->combined_window_cache = NULL; in svn_fs_fs__initialize_caches() 834 fs_fs_data_t *ffd = fs->fsap_data; in svn_fs_fs__initialize_txn_caches() local 839 if (ffd->txn_dir_cache != NULL || ffd->concurrent_transactions) in svn_fs_fs__initialize_txn_caches() 841 ffd->txn_dir_cache = NULL; in svn_fs_fs__initialize_txn_caches() 897 fs_fs_data_t *ffd = fs->fsap_data; in svn_fs_fs__reset_txn_caches() local [all …]
|
| H A D | revprops.c | 49 fs_fs_data_t *ffd = fs->fsap_data; in svn_fs_fs__upgrade_pack_revprops() local 54 = ffd->min_unpacked_rev / ffd->max_files_per_dir; in svn_fs_fs__upgrade_pack_revprops() 103 fs_fs_data_t *ffd = fs->fsap_data; in svn_fs_fs__upgrade_cleanup_pack_revprops() local 107 = ffd->min_unpacked_rev / ffd->max_files_per_dir; in svn_fs_fs__upgrade_cleanup_pack_revprops() 214 ffd->revprop_prefix = 0; in svn_fs_fs__reset_revprop_cache() 225 if (!ffd->revprop_prefix) in prepare_revprop_cache() 248 key.second = ffd->revprop_prefix; in cache_revprops() 440 return (r1 / ffd->max_files_per_dir) == (r2 / ffd->max_files_per_dir); in same_shard() 852 if (ffd->flush_to_disk) in write_non_packed_revprop() 1007 if (ffd->flush_to_disk) in repack_revprops() [all …]
|
| H A D | pack.c | 260 fs_fs_data_t *ffd = fs->fsap_data; in initialize_pack_context() local 1084 return ffd->block_size - (context->pack_offset % ffd->block_size); in get_block_left() 1647 fs_fs_data_t *ffd = fs->fsap_data; in svn_fs_fs__get_packed_offset() local 1925 ffd->min_unpacked_rev in synced_pack_shard() 2032 if (ffd->min_unpacked_rev == (completed_shards * ffd->max_files_per_dir)) in get_pack_status() 2071 ffd->min_unpacked_rev / ffd->max_files_per_dir, in pack_body() 2077 completed_shards = (ffd->youngest_rev_cache + 1) / ffd->max_files_per_dir; in pack_body() 2084 for (pb->shard = ffd->min_unpacked_rev / ffd->max_files_per_dir; in pack_body() 2119 ffd->format); in svn_fs_fs__pack() 2122 if (!ffd->max_files_per_dir) in svn_fs_fs__pack() [all …]
|
| H A D | cached_data.c | 82 fs_fs_data_t *ffd = fs->fsap_data; in dbg_log_access() local 2816 return ffd->dir_cache; in locate_dir_cache() 2824 return ffd->txn_dir_cache; in locate_dir_cache() 2833 return ffd->dir_cache; in locate_dir_cache() 3076 if (ffd->changes_cache) in svn_fs_fs__get_changes() 3392 && (!ffd->txdelta_window_cache || !ffd->raw_window_cache)) in block_read_windows() 3453 if (ffd->rep_header_cache) in read_rep_header() 3465 if (ffd->rep_header_cache) in read_rep_header() 3568 if (!ffd->changes_cache) in block_read_changes() 3572 if (ffd->changes_cache) in block_read_changes() [all …]
|
| H A D | fs.c | 66 fs_fs_data_t *ffd = fs->fsap_data; in fs_serialized_init() local 95 SVN_ERR_ASSERT(ffd->instance_id); in fs_serialized_init() 133 ffd->shared = ffsd; in fs_serialized_init() 212 fs_fs_data_t *ffd = fs->fsap_data; in fs_freeze() local 235 fs_fs_data_t *ffd = fs->fsap_data; in fs_info() local 371 fs_fs_data_t *ffd = apr_pcalloc(fs->pool, sizeof(*ffd)); in initialize_fs_struct() local 372 ffd->use_log_addressing = FALSE; in initialize_fs_struct() 373 ffd->revprop_prefix = 0; in initialize_fs_struct() 374 ffd->flush_to_disk = TRUE; in initialize_fs_struct() 377 fs->fsap_data = ffd; in initialize_fs_struct() [all …]
|
| H A D | transaction.c | 139 fs_fs_data_t *ffd = fs->fsap_data; in get_shared_txn() local 547 if ( ffd->rep_sharing_allowed in store_sha1_rep_mapping() 1577 if (ffd->txn_dir_cache) in svn_fs_fs__set_entry() 1609 if (ffd->txn_dir_cache) in svn_fs_fs__set_entry() 1663 if (ffd->txn_dir_cache) in svn_fs_fs__set_entry() 1983 int shard_size = ffd->max_files_per_dir ? ffd->max_files_per_dir : 1; in shards_spanned() 3307 if (ffd->rep_sharing_allowed) in write_final_rev() 3703 if (!ffd->dir_cache) in promote_cached_directories() 3840 if (ffd->flush_to_disk) in commit_body() 3851 if (ffd->max_files_per_dir && new_rev % ffd->max_files_per_dir == 0) in commit_body() [all …]
|
| H A D | index.c | 777 fs_fs_data_t *ffd = fs->fsap_data; in svn_fs_fs__l2p_index_append() local 973 fs_fs_data_t *ffd = fs->fsap_data; in get_l2p_header_body() local 1208 fs_fs_data_t *ffd = fs->fsap_data; in get_l2p_page_info() local 1300 fs_fs_data_t *ffd = fs->fsap_data; in get_l2p_page_table() local 1387 fs_fs_data_t *ffd = fs->fsap_data; in prefetch_l2p_pages() local 1536 fs_fs_data_t *ffd = fs->fsap_data; in l2p_index_lookup() local 1589 if (ffd->use_block_read) in l2p_index_lookup() 1690 fs_fs_data_t *ffd = fs->fsap_data; in get_l2p_header() local 2765 = APR_ALIGN(page_info.start_offset, ffd->block_size) - ffd->block_size; in p2l_index_lookup() 2773 if (ffd->use_block_read) in p2l_index_lookup() [all …]
|
| H A D | verify.c | 349 fs_fs_data_t *ffd = fs->fsap_data; in compare_p2l_to_l2p_index() local 375 offset, ffd->p2l_page_size, in compare_p2l_to_l2p_index() 607 fs_fs_data_t *ffd = fs->fsap_data; in compare_p2l_to_rev() local 643 offset, ffd->p2l_page_size, in compare_p2l_to_rev() 790 fs_fs_data_t *ffd = fs->fsap_data; in pack_size() local 792 return rev < ffd->min_unpacked_rev ? ffd->max_files_per_dir : 1; in pack_size() 814 fs_fs_data_t *ffd = fs->fsap_data; in verify_f7_metadata_consistency() local 828 if (notify_func && (pack_start % ffd->max_files_per_dir == 0)) in verify_f7_metadata_consistency() 858 = svn_fs_fs__read_min_unpacked_rev(&ffd->min_unpacked_rev, in verify_f7_metadata_consistency() 897 fs_fs_data_t *ffd = fs->fsap_data; in svn_fs_fs__verify() local [all …]
|
| /freebsd-13.1/contrib/subversion/subversion/libsvn_fs_x/ |
| H A D | rep-cache.c | 65 svn_fs_x__data_t *ffd = fs->fsap_data; in open_rep_cache() local 117 ffd->rep_cache_db = sdb; in open_rep_cache() 126 svn_fs_x__data_t *ffd = fs->fsap_data; in svn_fs_x__open_rep_cache() local 141 if (ffd->rep_cache_db) in svn_fs_x__close_rep_cache() 144 ffd->rep_cache_db = NULL; in svn_fs_x__close_rep_cache() 145 ffd->rep_cache_db_opened = 0; in svn_fs_x__close_rep_cache() 185 if (! ffd->rep_cache_db) in svn_fs_x__walk_rep_reference() 274 if (! ffd->rep_cache_db) in svn_fs_x__get_rep_reference() 332 if (! ffd->rep_cache_db) in svn_fs_x__set_rep_reference() 385 if (! ffd->rep_cache_db) in svn_fs_x__del_rep_reference() [all …]
|
| H A D | fs_x.c | 185 SVN_ERR_ASSERT(1 <= ffd->format && ffd->format <= SVN_FS_X__FORMAT_NUMBER); in svn_fs_x__write_format() 288 ffd->delta_compression_level in read_config() 331 ffd->block_size *= 0x400; in read_config() 332 ffd->p2l_page_size *= 0x400; in read_config() 594 ffd->format = format; in svn_fs_x__read_format_file() 623 ffd->youngest_rev_cache = 0; in svn_fs_x__open() 973 ffd->format = format; in svn_fs_x__create_file_tree() 1031 ffd->youngest_rev_cache = 0; in svn_fs_x__create_file_tree() 1077 ffd->youngest_rev_cache = 0; in svn_fs_x__create() 1260 *fs_format = ffd->format; in svn_fs_x__info_format() [all …]
|
| H A D | caching.c | 380 svn_fs_x__data_t *ffd = fs->fsap_data; in svn_fs_x__initialize_caches() local 389 svn_boolean_t no_handler = ffd->fail_stop; in svn_fs_x__initialize_caches() 437 SVN_ERR(create_cache(&(ffd->dir_cache), in svn_fs_x__initialize_caches() 468 SVN_ERR(create_cache(&(ffd->rep_header_cache), in svn_fs_x__initialize_caches() 484 SVN_ERR(create_cache(&(ffd->changes_cache), in svn_fs_x__initialize_caches() 500 SVN_ERR(create_cache(&(ffd->fulltext_cache), in svn_fs_x__initialize_caches() 501 ffd->memcache, in svn_fs_x__initialize_caches() 515 SVN_ERR(create_cache(&(ffd->properties_cache), in svn_fs_x__initialize_caches() 531 SVN_ERR(create_cache(&(ffd->revprop_cache), in svn_fs_x__initialize_caches() 637 SVN_ERR(create_cache(&(ffd->l2p_page_cache), in svn_fs_x__initialize_caches() [all …]
|
| H A D | revprops.c | 150 ffd->revprop_generation = -1; in write_revprop_generation_file() 160 ffd->revprop_generation = current; in write_revprop_generation_file() 184 return ffd->revprop_cache != NULL; in has_revprop_cache() 210 assert(ffd->has_write_lock); in revprop_generation_fixup() 252 if (!ffd->has_write_lock) in read_revprop_generation() 271 if (ffd->has_write_lock) in read_revprop_generation() 280 ffd->revprop_generation = current; in read_revprop_generation() 288 ffd->revprop_generation = -1; in svn_fs_x__invalidate_revprop_generation() 296 return ffd->revprop_generation >= 0; in is_generation_valid() 315 ++ffd->revprop_generation; in begin_revprop_change() [all …]
|
| H A D | fs.c | 69 svn_fs_x__data_t *ffd = fs->fsap_data; in x_serialized_init() local 97 SVN_ERR_ASSERT(ffd->instance_id); in x_serialized_init() 135 ffd->shared = ffsd; in x_serialized_init() 224 svn_fs_x__data_t *ffd = fs->fsap_data; in x_info() local 227 info->shard_size = ffd->max_files_per_dir; in x_info() 324 svn_fs_x__data_t *ffd = apr_pcalloc(fs->pool, sizeof(*ffd)); in initialize_fs_struct() local 325 ffd->revprop_generation = -1; in initialize_fs_struct() 326 ffd->flush_to_disk = TRUE; in initialize_fs_struct() 329 fs->fsap_data = ffd; in initialize_fs_struct() 613 svn_fs_x__data_t *ffd = fs->fsap_data; in x_set_svn_fs_open() local [all …]
|
| H A D | cached_data.c | 80 svn_fs_x__data_t *ffd = fs->fsap_data; in dbg__log_access() local 96 if (revision < ffd->min_unpacked_rev) in dbg__log_access() 168 (long)(offset % ffd->block_size), in dbg__log_access() 278 svn_fs_x__data_t *ffd = fs->fsap_data; in get_node_revision_body() local 558 svn_fs_x__data_t *ffd = fs->fsap_data; in create_rep_state_body() local 577 && revision < ffd->min_unpacked_rev in create_rep_state_body() 818 svn_fs_x__data_t *ffd = fs->fsap_data; in svn_fs_x__rep_chain_length() local 1391 svn_fs_x__data_t *ffd = fs->fsap_data; in read_container_window() local 1557 svn_fs_x__data_t *ffd = fs->fsap_data; in init_rep_state() local 1674 svn_fs_x__data_t *ffd = fs->fsap_data; in read_rep_header() local [all …]
|
| H A D | dag_cache.c | 419 svn_fs_x__data_t *ffd = root->fs->fsap_data; in dag_node_cache_get() local 422 auto_clear_dag_cache(ffd->dag_node_cache); in dag_node_cache_get() 432 svn_fs_x__dag_cache_t *cache = ffd->dag_node_cache; in svn_fs_x__update_dag_cache() 447 svn_fs_x__data_t *ffd = root->fs->fsap_data; in svn_fs_x__invalidate_dag_cache() local 448 svn_fs_x__dag_cache_t *cache = ffd->dag_node_cache; in svn_fs_x__invalidate_dag_cache() 487 svn_fs_x__data_t *ffd = root->fs->fsap_data; in try_match_last_node() local 557 svn_fs_x__data_t *ffd = fs->fsap_data; in dag_step() local 595 if (auto_clear_dag_cache(ffd->dag_node_cache)) in dag_step() 600 ffd->dag_node_cache->pool, in dag_step() 622 svn_fs_x__data_t *ffd = fs->fsap_data; in get_root_node() local [all …]
|
| H A D | util.c | 58 svn_fs_x__data_t *ffd = fs->fsap_data; in svn_fs_x__is_packed_rev() local 60 return (rev < ffd->min_unpacked_rev); in svn_fs_x__is_packed_rev() 67 svn_fs_x__data_t *ffd = fs->fsap_data; in svn_fs_x__is_packed_revprop() local 76 svn_fs_x__data_t *ffd = fs->fsap_data; in svn_fs_x__packed_base_rev() local 78 return rev < ffd->min_unpacked_rev in svn_fs_x__packed_base_rev() 79 ? rev - (rev % ffd->max_files_per_dir) in svn_fs_x__packed_base_rev() 86 svn_fs_x__data_t *ffd = fs->fsap_data; in svn_fs_x__pack_size() local 88 return rev < ffd->min_unpacked_rev ? ffd->max_files_per_dir : 1; in svn_fs_x__pack_size() 166 svn_fs_x__data_t *ffd = fs->fsap_data; in construct_shard_sub_path() local 523 svn_fs_x__data_t *ffd = fs->fsap_data; in svn_fs_x__update_min_unpacked_rev() local [all …]
|
| H A D | pack.c | 252 svn_fs_x__data_t *ffd = fs->fsap_data; in initialize_pack_context() local 829 return ffd->block_size - (context->pack_offset % ffd->block_size); in get_block_left() 2077 svn_fs_x__data_t *ffd = fs->fsap_data; in pack_shard() local 2145 svn_fs_x__data_t *ffd = fs->fsap_data; in get_pack_status() local 2156 if (ffd->min_unpacked_rev == (completed_shards * ffd->max_files_per_dir)) in get_pack_status() 2194 svn_fs_x__data_t *ffd = pb->fs->fsap_data; in pack_body() local 2208 ffd->min_unpacked_rev / ffd->max_files_per_dir, in pack_body() 2214 completed_shards = (ffd->youngest_rev_cache + 1) / ffd->max_files_per_dir; in pack_body() 2218 for (i = ffd->min_unpacked_rev / ffd->max_files_per_dir; in pack_body() 2258 svn_fs_x__data_t *ffd = fs->fsap_data; in svn_fs_x__pack() local [all …]
|
| H A D | transaction.c | 96 svn_fs_x__data_t *ffd = fs->fsap_data; in get_shared_txn() local 141 svn_fs_x__data_t *ffd = fs->fsap_data; in free_shared_txn() local 203 svn_fs_x__data_t *ffd = baton_void; in reset_lock_flag() local 204 ffd->has_write_lock = FALSE; in reset_lock_flag() 282 ffd->has_write_lock = TRUE; in with_some_lock_file() 847 if ( ffd->rep_sharing_allowed in store_sha1_rep_mapping() 2361 if (!ffd->rep_sharing_allowed) in get_shared_rep() 3243 if (ffd->rep_sharing_allowed) in write_final_rev() 3728 if (!ffd->dir_cache) in promote_cached_directories() 3937 if (ffd->rep_sharing_allowed) in svn_fs_x__commit() [all …]
|
| H A D | index.c | 902 svn_fs_x__data_t *ffd = fs->fsap_data; in svn_fs_x__l2p_index_append() local 934 if (ffd->l2p_page_size > APR_INT32_MAX) in svn_fs_x__l2p_index_append() 1074 svn_fs_x__data_t *ffd = fs->fsap_data; in base_revision() local 1241 svn_fs_x__data_t *ffd = fs->fsap_data; in get_l2p_header_body() local 1375 svn_fs_x__data_t *ffd = fs->fsap_data; in get_l2p_page_info() local 1413 svn_fs_x__data_t *ffd = fs->fsap_data; in get_l2p_header() local 1645 svn_fs_x__data_t *ffd = fs->fsap_data; in get_l2p_page_table() local 1683 svn_fs_x__data_t *ffd = fs->fsap_data; in prefetch_l2p_pages() local 1769 svn_fs_x__data_t *ffd = fs->fsap_data; in l2p_index_lookup() local 1811 ffd->block_size); in l2p_index_lookup() [all …]
|
| /freebsd-13.1/usr.bin/mkuzip/ |
| H A D | mkuz_insize.c | 45 int ffd; in mkuz_get_insize() local 59 ffd = open(statfsbuf.f_mntfromname, O_RDONLY); in mkuz_get_insize() 60 if (ffd < 0) { in mkuz_get_insize() 64 if (ioctl(ffd, DIOCGMEDIASIZE, &ms) < 0) { in mkuz_get_insize() 66 close(ffd); in mkuz_get_insize() 69 close(ffd); in mkuz_get_insize()
|
| /freebsd-13.1/contrib/openbsm/bin/auditdistd/ |
| H A D | openat.h | 40 int cfd, ffd, error; in openat() local 61 ffd = open(path, flags, mode); in openat() 63 ffd = open(path, flags); in openat() 70 return (ffd); in openat()
|
| /freebsd-13.1/sbin/gbde/ |
| H A D | gbde.c | 276 int ffd; in cmd_attach() local 287 ffd = open(lfile, O_RDONLY, 0); in cmd_attach() 288 if (ffd < 0) in cmd_attach() 290 read(ffd, buf, 16); in cmd_attach() 292 close(ffd); in cmd_attach() 324 int ffd; in cmd_open() local 345 if (ffd < 0) in cmd_open() 348 close(ffd); in cmd_open() 391 int i, ffd; in cmd_write() local 420 if (ffd < 0) in cmd_write() [all …]
|