/dports/devel/util-linux/util-linux-2.36/libfdisk/src/ |
H A D | alignment.c | 206 (cxt->geom.heads * cxt->geom.sectors); in recount_geometry() 379 cxt->sector_size = cxt->min_io_size = in fdisk_apply_user_device_properties() 380 cxt->io_size = cxt->user_log_sector; in fdisk_apply_user_device_properties() 488 cxt->total_sectors = cxt->dev_st.st_size / cxt->sector_size; in fdisk_discover_geometry() 539 cxt->io_size = cxt->optimal_io_size; in fdisk_discover_topology() 542 cxt->io_size = cxt->min_io_size; in fdisk_discover_topology() 549 cxt->io_size = cxt->phy_sector_size; in fdisk_discover_topology() 563 cxt->min_io_size = cxt->sector_size; in fdisk_discover_topology() 565 cxt->io_size = cxt->sector_size; in fdisk_discover_topology() 570 cxt->io_size, cxt->optimal_io_size, cxt->min_io_size)); in fdisk_discover_topology() [all …]
|
H A D | context.c | 52 cxt = calloc(1, sizeof(*cxt)); in fdisk_new_context() 68 cxt->labels[ cxt->nlabels++ ] = fdisk_new_gpt_label(cxt); in fdisk_new_context() 69 cxt->labels[ cxt->nlabels++ ] = fdisk_new_dos_label(cxt); in fdisk_new_context() 70 cxt->labels[ cxt->nlabels++ ] = fdisk_new_bsd_label(cxt); in fdisk_new_context() 71 cxt->labels[ cxt->nlabels++ ] = fdisk_new_sgi_label(cxt); in fdisk_new_context() 72 cxt->labels[ cxt->nlabels++ ] = fdisk_new_sun_label(cxt); in fdisk_new_context() 154 cxt = calloc(1, sizeof(*cxt)); in fdisk_new_nested_context() 292 return cxt ? cxt->nlabels : 0; in fdisk_get_nlabels() 318 return cxt && cxt->label; in fdisk_has_label() 490 return cxt && cxt->label ? cxt->label->nparts_max : 0; in fdisk_get_npartitions() [all …]
|
H A D | sgi.c | 75 assert(cxt); in self_disklabel() 85 assert(cxt); in self_label() 239 assert(cxt); in sgi_probe_label() 262 cxt->label->nparts_cur = count_used_partitions(cxt); in sgi_probe_label() 272 assert(cxt); in sgi_get_disklabel_item() 343 return cxt->geom.heads * cxt->geom.sectors * cxt->geom.cylinders; in sgi_get_lastblock() 471 assert(cxt); in sgi_write_disklabel() 810 cxt->label->nparts_cur = count_used_partitions(cxt); in sgi_delete_partition() 958 cxt->label->nparts_cur = count_used_partitions(cxt); in sgi_add_partition() 974 if (cxt->geom.heads && cxt->geom.sectors) { in sgi_create_disklabel() [all …]
|
/dports/sysutils/linrename/util-linux-2.25.2/libmount/src/ |
H A D | context.c | 49 cxt = calloc(1, sizeof(*cxt)); in mnt_new_context() 50 if (!cxt) in mnt_new_context() 80 if (!cxt) in mnt_free_context() 125 if (!cxt) in mnt_reset_context() 253 return cxt->mtab_writable ? cxt->mtab_path : cxt->utab_path; in mnt_context_get_writable_tabpath() 1047 cxt->mtab_path, cxt->utab); in mnt_context_get_mtab() 1270 if (!cxt || mnt_context_is_nomtab(cxt)) in mnt_context_get_lock() 1451 if (!cxt || !cxt->fs) in mnt_context_prepare_srcpath() 1569 if (!cxt || !cxt->fs) in mnt_context_prepare_target() 1651 if (!cxt || !cxt->fs) in mnt_context_guess_fstype() [all …]
|
H A D | context_umount.c | 202 assert(cxt); in has_utab_entry() 239 assert(cxt); in lookup_umount_fs() 389 assert(cxt); in evaluate_permissions() 393 if (!cxt || !cxt->fs) in evaluate_permissions() 529 assert(cxt); in exec_helper() 586 cxt->helper, cxt->helper_status)); in exec_helper() 680 if (cxt->restricted && !mnt_context_is_fake(cxt)) { in do_umount() 722 mnt_context_set_mflags(cxt, (cxt->mountflags | in do_umount() 773 if (!cxt || !cxt->fs || mnt_fs_is_swaparea(cxt->fs)) in mnt_context_prepare_umount() 805 if (!rc && mnt_context_is_loopdel(cxt) && cxt->fs) { in mnt_context_prepare_umount() [all …]
|
H A D | context_mount.c | 55 assert(cxt); in mnt_context_append_additional_mount() 161 assert(cxt); in fix_optstr() 165 if (!cxt) in fix_optstr() 167 if (!cxt->fs || (cxt->flags & MNT_FL_MOUNTOPTS_FIXED)) in fix_optstr() 172 fs = cxt->fs; in fix_optstr() 319 assert(cxt); in generate_helper_optstr() 392 assert(cxt); in evaluate_permissions() 396 if (!cxt) in evaluate_permissions() 604 cxt->helper, cxt->helper_status)); in exec_helper() 857 if (!cxt || !cxt->fs || mnt_fs_is_swaparea(cxt->fs)) in mnt_context_prepare_mount() [all …]
|
/dports/shells/bash/bash-5.1/lib/readline/ |
H A D | isearch.c | 95 cxt->hlen = cxt->hindex = 0; in _rl_scxt_alloc() 111 cxt->prevc = cxt->lastc = 0; in _rl_scxt_alloc() 408 memcpy (cxt->pmb, cxt->mb, sizeof (cxt->pmb)); in _rl_isearch_dispatch() 479 cxt->lastc = cxt->prevc; in _rl_isearch_dispatch() 490 memcpy (cxt->mb, cxt->pmb, sizeof (cxt->mb)); in _rl_isearch_dispatch() 532 if (cxt->lastc >= 0 && (cxt->mb[0] && cxt->mb[1] == '\0') && ENDSRCH_CHAR (cxt->lastc)) in _rl_isearch_dispatch() 741 if (STREQN (cxt->search_string, cxt->sline + cxt->sline_index, cxt->search_string_index)) in _rl_isearch_dispatch() 774 cxt->sline = cxt->lines[cxt->history_pos]; in _rl_isearch_dispatch() 801 …rl_display_search (cxt->search_string, cxt->sflags, (cxt->history_pos == cxt->save_line) ? -1 : cx… in _rl_isearch_dispatch() 810 cxt->prev_line_found = cxt->lines[cxt->history_pos]; in _rl_isearch_dispatch() [all …]
|
/dports/devel/gdb/gdb-11.1/readline/readline/ |
H A D | isearch.c | 95 cxt->hlen = cxt->hindex = 0; in _rl_scxt_alloc() 111 cxt->prevc = cxt->lastc = 0; in _rl_scxt_alloc() 408 memcpy (cxt->pmb, cxt->mb, sizeof (cxt->pmb)); in _rl_isearch_dispatch() 479 cxt->lastc = cxt->prevc; in _rl_isearch_dispatch() 490 memcpy (cxt->mb, cxt->pmb, sizeof (cxt->mb)); in _rl_isearch_dispatch() 532 if (cxt->lastc >= 0 && (cxt->mb[0] && cxt->mb[1] == '\0') && ENDSRCH_CHAR (cxt->lastc)) in _rl_isearch_dispatch() 741 if (STREQN (cxt->search_string, cxt->sline + cxt->sline_index, cxt->search_string_index)) in _rl_isearch_dispatch() 774 cxt->sline = cxt->lines[cxt->history_pos]; in _rl_isearch_dispatch() 801 …rl_display_search (cxt->search_string, cxt->sflags, (cxt->history_pos == cxt->save_line) ? -1 : cx… in _rl_isearch_dispatch() 810 cxt->prev_line_found = cxt->lines[cxt->history_pos]; in _rl_isearch_dispatch() [all …]
|
/dports/devel/readline/readline-8.1/ |
H A D | isearch.c | 95 cxt->hlen = cxt->hindex = 0; in _rl_scxt_alloc() 111 cxt->prevc = cxt->lastc = 0; in _rl_scxt_alloc() 408 memcpy (cxt->pmb, cxt->mb, sizeof (cxt->pmb)); in _rl_isearch_dispatch() 479 cxt->lastc = cxt->prevc; in _rl_isearch_dispatch() 490 memcpy (cxt->mb, cxt->pmb, sizeof (cxt->mb)); in _rl_isearch_dispatch() 532 if (cxt->lastc >= 0 && (cxt->mb[0] && cxt->mb[1] == '\0') && ENDSRCH_CHAR (cxt->lastc)) in _rl_isearch_dispatch() 741 if (STREQN (cxt->search_string, cxt->sline + cxt->sline_index, cxt->search_string_index)) in _rl_isearch_dispatch() 774 cxt->sline = cxt->lines[cxt->history_pos]; in _rl_isearch_dispatch() 801 …rl_display_search (cxt->search_string, cxt->sflags, (cxt->history_pos == cxt->save_line) ? -1 : cx… in _rl_isearch_dispatch() 810 cxt->prev_line_found = cxt->lines[cxt->history_pos]; in _rl_isearch_dispatch() [all …]
|
/dports/sysutils/linrename/util-linux-2.25.2/libfdisk/src/ |
H A D | alignment.c | 128 cxt->geom.cylinders = cxt->total_sectors / in recount_geometry() 129 (cxt->geom.heads * cxt->geom.sectors); in recount_geometry() 228 cxt->sector_size = cxt->min_io_size = in fdisk_apply_user_device_properties() 229 cxt->io_size = cxt->user_log_sector; in fdisk_apply_user_device_properties() 232 cxt->geom.heads = cxt->user_geom.heads; in fdisk_apply_user_device_properties() 347 cxt->io_size = cxt->optimal_io_size; in fdisk_discover_topology() 350 cxt->io_size = cxt->min_io_size; in fdisk_discover_topology() 362 cxt->min_io_size = cxt->sector_size; in fdisk_discover_topology() 364 cxt->io_size = cxt->sector_size; in fdisk_discover_topology() 369 cxt->io_size, cxt->optimal_io_size, cxt->min_io_size)); in fdisk_discover_topology() [all …]
|
H A D | context.c | 11 cxt = calloc(1, sizeof(*cxt)); in fdisk_new_context() 12 if (!cxt) in fdisk_new_context() 24 cxt->labels[ cxt->nlabels++ ] = fdisk_new_gpt_label(cxt); in fdisk_new_context() 25 cxt->labels[ cxt->nlabels++ ] = fdisk_new_dos_label(cxt); in fdisk_new_context() 26 cxt->labels[ cxt->nlabels++ ] = fdisk_new_bsd_label(cxt); in fdisk_new_context() 27 cxt->labels[ cxt->nlabels++ ] = fdisk_new_sgi_label(cxt); in fdisk_new_context() 28 cxt->labels[ cxt->nlabels++ ] = fdisk_new_sun_label(cxt); in fdisk_new_context() 41 cxt = calloc(1, sizeof(*cxt)); in fdisk_new_nested_context() 67 lb = cxt->labels[ cxt->nlabels++ ] = fdisk_new_bsd_label(cxt); in fdisk_new_nested_context() 69 lb = cxt->labels[ cxt->nlabels++ ] = fdisk_new_dos_label(cxt); in fdisk_new_nested_context() [all …]
|
H A D | label.c | 53 return cxt && cxt->label; in fdisk_dev_has_disklabel() 65 return cxt && cxt->label && cxt->label->id == l; in fdisk_dev_is_disklabel() 78 if (!cxt || !cxt->label || cxt->readonly) in fdisk_write_disklabel() 189 if (!cxt || !cxt->label) in fdisk_verify_disklabel() 214 if (!cxt || !cxt->label) in fdisk_list_disklabel() 272 if (!cxt || !cxt->label) in fdisk_locate_disklabel() 291 if (!cxt || !cxt->label) in fdisk_get_disklabel_id() 308 if (!cxt || !cxt->label) in fdisk_set_disklabel_id() 329 if (!cxt || !cxt->label) in fdisk_set_partition_type() 346 if (!cxt || !cxt->label) in fdisk_get_nparttypes() [all …]
|
H A D | sgi.c | 70 assert(cxt); in self_disklabel() 80 assert(cxt); in self_label() 224 assert(cxt); in sgi_probe_label() 247 cxt->label->nparts_cur = count_used_partitions(cxt); in sgi_probe_label() 262 cxt->geom.heads, cxt->geom.sectors, in sgi_list_table() 302 return cxt->geom.heads * cxt->geom.sectors * cxt->geom.cylinders; in sgi_get_lastblock() 419 assert(cxt); in sgi_write_disklabel() 756 cxt->label->nparts_cur = count_used_partitions(cxt); in sgi_delete_partition() 902 cxt->label->nparts_cur = count_used_partitions(cxt); in sgi_add_partition() 918 if (cxt->geom.heads && cxt->geom.sectors) { in sgi_create_disklabel() [all …]
|
/dports/devel/gdb761/gdb-7.6.1/readline/ |
H A D | isearch.c | 97 cxt->hlen = cxt->hindex = 0; 102 cxt->last_found_line = cxt->save_line; 244 cxt->history_pos = cxt->save_line; 290 cxt->sline_index = cxt->save_point; 377 cxt->keymap = cxt->okeymap; 407 if (cxt->lastc >= 0 && (cxt->mb[0] && cxt->mb[1] == '\0') && ENDSRCH_CHAR (cxt->lastc)) 548 cxt->search_string[cxt->search_string_index++] = cxt->mb[j++]; 564 if (STREQN (cxt->search_string, cxt->sline + cxt->sline_index, cxt->search_string_index)) 584 if ((cxt->sflags & SF_REVERSE) ? (cxt->history_pos < 0) : (cxt->history_pos == cxt->hlen)) 591 cxt->sline = cxt->lines[cxt->history_pos]; [all …]
|
/dports/devel/avr-gdb/gdb-7.3.1/readline/ |
H A D | isearch.c | 96 cxt->hlen = cxt->hindex = 0; 101 cxt->last_found_line = cxt->save_line; 240 cxt->history_pos = cxt->save_line; 286 cxt->sline_index = cxt->save_point; 376 if (cxt->lastc >= 0 && (cxt->mb[0] && cxt->mb[1] == '\0') && ENDSRCH_CHAR (cxt->lastc)) 517 cxt->search_string[cxt->search_string_index++] = cxt->mb[j++]; 533 if (STREQN (cxt->search_string, cxt->sline + cxt->sline_index, cxt->search_string_index)) 553 if ((cxt->sflags & SF_REVERSE) ? (cxt->history_pos < 0) : (cxt->history_pos == cxt->hlen)) 560 cxt->sline = cxt->lines[cxt->history_pos]; 563 while ((cxt->prev_line_found && STREQ (cxt->prev_line_found, cxt->lines[cxt->history_pos])) || [all …]
|
/dports/databases/mariadb104-server/mariadb-10.4.24/extra/readline/ |
H A D | isearch.c | 96 cxt->hlen = cxt->hindex = 0; 101 cxt->last_found_line = cxt->save_line; 240 cxt->history_pos = cxt->save_line; 286 cxt->sline_index = cxt->save_point; 376 if (cxt->lastc >= 0 && (cxt->mb[0] && cxt->mb[1] == '\0') && ENDSRCH_CHAR (cxt->lastc)) 517 cxt->search_string[cxt->search_string_index++] = cxt->mb[j++]; 533 if (STREQN (cxt->search_string, cxt->sline + cxt->sline_index, cxt->search_string_index)) 553 if ((cxt->sflags & SF_REVERSE) ? (cxt->history_pos < 0) : (cxt->history_pos == cxt->hlen)) 560 cxt->sline = cxt->lines[cxt->history_pos]; 563 while ((cxt->prev_line_found && STREQ (cxt->prev_line_found, cxt->lines[cxt->history_pos])) || [all …]
|
/dports/databases/mariadb105-client/mariadb-10.5.15/extra/readline/ |
H A D | isearch.c | 96 cxt->hlen = cxt->hindex = 0; 101 cxt->last_found_line = cxt->save_line; 240 cxt->history_pos = cxt->save_line; 286 cxt->sline_index = cxt->save_point; 376 if (cxt->lastc >= 0 && (cxt->mb[0] && cxt->mb[1] == '\0') && ENDSRCH_CHAR (cxt->lastc)) 517 cxt->search_string[cxt->search_string_index++] = cxt->mb[j++]; 533 if (STREQN (cxt->search_string, cxt->sline + cxt->sline_index, cxt->search_string_index)) 553 if ((cxt->sflags & SF_REVERSE) ? (cxt->history_pos < 0) : (cxt->history_pos == cxt->hlen)) 560 cxt->sline = cxt->lines[cxt->history_pos]; 563 while ((cxt->prev_line_found && STREQ (cxt->prev_line_found, cxt->lines[cxt->history_pos])) || [all …]
|
/dports/databases/mariadb105-server/mariadb-10.5.15/extra/readline/ |
H A D | isearch.c | 96 cxt->hlen = cxt->hindex = 0; 101 cxt->last_found_line = cxt->save_line; 240 cxt->history_pos = cxt->save_line; 286 cxt->sline_index = cxt->save_point; 376 if (cxt->lastc >= 0 && (cxt->mb[0] && cxt->mb[1] == '\0') && ENDSRCH_CHAR (cxt->lastc)) 517 cxt->search_string[cxt->search_string_index++] = cxt->mb[j++]; 533 if (STREQN (cxt->search_string, cxt->sline + cxt->sline_index, cxt->search_string_index)) 553 if ((cxt->sflags & SF_REVERSE) ? (cxt->history_pos < 0) : (cxt->history_pos == cxt->hlen)) 560 cxt->sline = cxt->lines[cxt->history_pos]; 563 while ((cxt->prev_line_found && STREQ (cxt->prev_line_found, cxt->lines[cxt->history_pos])) || [all …]
|
/dports/databases/mariadb103-server/mariadb-10.3.34/extra/readline/ |
H A D | isearch.c | 96 cxt->hlen = cxt->hindex = 0; 101 cxt->last_found_line = cxt->save_line; 240 cxt->history_pos = cxt->save_line; 286 cxt->sline_index = cxt->save_point; 376 if (cxt->lastc >= 0 && (cxt->mb[0] && cxt->mb[1] == '\0') && ENDSRCH_CHAR (cxt->lastc)) 517 cxt->search_string[cxt->search_string_index++] = cxt->mb[j++]; 533 if (STREQN (cxt->search_string, cxt->sline + cxt->sline_index, cxt->search_string_index)) 553 if ((cxt->sflags & SF_REVERSE) ? (cxt->history_pos < 0) : (cxt->history_pos == cxt->hlen)) 560 cxt->sline = cxt->lines[cxt->history_pos]; 563 while ((cxt->prev_line_found && STREQ (cxt->prev_line_found, cxt->lines[cxt->history_pos])) || [all …]
|
/dports/databases/mariadb103-client/mariadb-10.3.34/extra/readline/ |
H A D | isearch.c | 96 cxt->hlen = cxt->hindex = 0; 101 cxt->last_found_line = cxt->save_line; 240 cxt->history_pos = cxt->save_line; 286 cxt->sline_index = cxt->save_point; 376 if (cxt->lastc >= 0 && (cxt->mb[0] && cxt->mb[1] == '\0') && ENDSRCH_CHAR (cxt->lastc)) 517 cxt->search_string[cxt->search_string_index++] = cxt->mb[j++]; 533 if (STREQN (cxt->search_string, cxt->sline + cxt->sline_index, cxt->search_string_index)) 553 if ((cxt->sflags & SF_REVERSE) ? (cxt->history_pos < 0) : (cxt->history_pos == cxt->hlen)) 560 cxt->sline = cxt->lines[cxt->history_pos]; 563 while ((cxt->prev_line_found && STREQ (cxt->prev_line_found, cxt->lines[cxt->history_pos])) || [all …]
|
/dports/databases/mariadb104-client/mariadb-10.4.24/extra/readline/ |
H A D | isearch.c | 96 cxt->hlen = cxt->hindex = 0; 101 cxt->last_found_line = cxt->save_line; 240 cxt->history_pos = cxt->save_line; 286 cxt->sline_index = cxt->save_point; 376 if (cxt->lastc >= 0 && (cxt->mb[0] && cxt->mb[1] == '\0') && ENDSRCH_CHAR (cxt->lastc)) 517 cxt->search_string[cxt->search_string_index++] = cxt->mb[j++]; 533 if (STREQN (cxt->search_string, cxt->sline + cxt->sline_index, cxt->search_string_index)) 553 if ((cxt->sflags & SF_REVERSE) ? (cxt->history_pos < 0) : (cxt->history_pos == cxt->hlen)) 560 cxt->sline = cxt->lines[cxt->history_pos]; 563 while ((cxt->prev_line_found && STREQ (cxt->prev_line_found, cxt->lines[cxt->history_pos])) || [all …]
|
/dports/databases/mysql55-client/mysql-5.5.62/cmd-line-utils/readline/ |
H A D | isearch.c | 96 cxt->hlen = cxt->hindex = 0; 101 cxt->last_found_line = cxt->save_line; 240 cxt->history_pos = cxt->save_line; 286 cxt->sline_index = cxt->save_point; 376 if (cxt->lastc >= 0 && (cxt->mb[0] && cxt->mb[1] == '\0') && ENDSRCH_CHAR (cxt->lastc)) 517 cxt->search_string[cxt->search_string_index++] = cxt->mb[j++]; 533 if (STREQN (cxt->search_string, cxt->sline + cxt->sline_index, cxt->search_string_index)) 553 if ((cxt->sflags & SF_REVERSE) ? (cxt->history_pos < 0) : (cxt->history_pos == cxt->hlen)) 560 cxt->sline = cxt->lines[cxt->history_pos]; 563 while ((cxt->prev_line_found && STREQ (cxt->prev_line_found, cxt->lines[cxt->history_pos])) || [all …]
|
/dports/devel/util-linux/util-linux-2.36/libmount/src/ |
H A D | context.c | 56 cxt = calloc(1, sizeof(*cxt)); in mnt_new_context() 57 if (!cxt) in mnt_new_context() 71 cxt->ns_cur = &cxt->ns_orig; in mnt_new_context() 91 if (!cxt) in mnt_free_context() 262 return cxt && cxt->fs_template ? 1 : 0; in mnt_context_has_template() 400 return cxt->mtab_writable ? cxt->mtab_path : cxt->utab_path; in mnt_context_get_writable_tabpath() 1061 return cxt ? cxt->tgt_prefix : NULL; in mnt_context_get_target_prefix() 1308 cxt->mtab_path, cxt->utab); in mnt_context_get_mtab() 1595 if (!cxt || mnt_context_is_nomtab(cxt)) in mnt_context_get_lock() 2435 if (!cxt || !cxt->fs) in mnt_context_apply_fstab() [all …]
|
H A D | context_umount.c | 57 assert(cxt); in __mtab_find_umount_fs() 218 assert(cxt); in has_utab_entry() 357 assert(cxt); in lookup_umount_fs() 506 assert(cxt); in evaluate_permissions() 666 assert(cxt); in exec_helper() 776 assert(cxt); in mnt_context_umount_setopt() 830 assert(cxt); in do_umount() 888 mnt_context_set_mflags(cxt, (cxt->mountflags | in do_umount() 935 if (!cxt || !cxt->fs || mnt_fs_is_swaparea(cxt->fs)) in mnt_context_prepare_umount() 974 if (!rc && mnt_context_is_loopdel(cxt) && cxt->fs) { in mnt_context_prepare_umount() [all …]
|
H A D | context_mount.c | 60 assert(cxt); in mnt_context_append_additional_mount() 145 assert(cxt); in init_bind_remount() 222 assert(cxt); in fix_optstr() 225 if (!cxt->fs || (cxt->flags & MNT_FL_MOUNTOPTS_FIXED)) in fix_optstr() 228 fs = cxt->fs; in fix_optstr() 395 assert(cxt); in generate_helper_optstr() 469 assert(cxt); in evaluate_permissions() 571 assert(cxt); in mnt_context_mount_setopt() 619 assert(cxt); in exec_helper() 968 if (!cxt || !cxt->fs || mnt_fs_is_swaparea(cxt->fs)) in mnt_context_prepare_mount() [all …]
|