/freebsd/crypto/openssl/util/perl/OpenSSL/ |
H A D | Ordinals.pm | 182 foreach ($self->items(sort => by_number())) { 235 foreach ($self->items(%opts, sort => by_number())) { 267 sub items { subroutine 310 my @items = @_; 312 if (scalar @items < 1 || scalar @items > 2) { 313 croak "Wrong number of items: ", scalar @items, "\n ", 314 join("\n ", map { $_->{source}.": ".$_->name() } @items), "\n"; 316 if (scalar @items == 2) { 321 foreach (@items) { 331 join(", ", map { $_->name()." => ".$_->intnum() } @items), "\n" [all …]
|
/freebsd/contrib/ncurses/menu/ |
H A D | m_global.c | 115 ITEM **items; in ComputeMaximum_NameDesc_Lengths() local 117 assert(menu && menu->items); in ComputeMaximum_NameDesc_Lengths() 118 for (items = menu->items; *items; items++) in ComputeMaximum_NameDesc_Lengths() 120 unsigned check = (unsigned)_nc_Calculate_Text_Width(&((*items)->name)); in ComputeMaximum_NameDesc_Lengths() 125 check = (unsigned)_nc_Calculate_Text_Width(&((*items)->description)); in ComputeMaximum_NameDesc_Lengths() 145 ResetConnectionInfo(MENU *menu, ITEM **items) in ResetConnectionInfo() argument 149 assert(menu && items); in ResetConnectionInfo() 150 for (item = items; *item; item++) in ResetConnectionInfo() 159 menu->items = (ITEM **)0; in ResetConnectionInfo() 175 _nc_Connect_Items(MENU *menu, ITEM **items) in _nc_Connect_Items() argument [all …]
|
H A D | m_items.c | 57 set_menu_items(MENU *menu, ITEM **items) in MENU_EXPORT() 59 T((T_CALLED("set_menu_items(%p,%p)"), (void *)menu, (void *)items)); in MENU_EXPORT() 61 if (!menu || (items && !(*items))) in MENU_EXPORT() 67 if (menu->items) in MENU_EXPORT() 70 if (items) in MENU_EXPORT() 72 if (!_nc_Connect_Items(menu, items)) in MENU_EXPORT() 76 menu->items = items; in MENU_EXPORT() 92 returnItemPtr(menu ? menu->items : (ITEM **)0); in menu_items()
|
H A D | m_new.c | 55 NCURSES_SP_NAME(new_menu) (NCURSES_SP_DCLx ITEM **items) in MENU_EXPORT() 60 T((T_CALLED("new_menu(%p,%p)"), (void *)SP_PARM, (void *)items)); in MENU_EXPORT() 75 if (items && *items) in MENU_EXPORT() 77 if (!_nc_Connect_Items(menu, items)) in MENU_EXPORT() 107 new_menu(ITEM **items) in new_menu() argument 109 return NCURSES_SP_NAME(new_menu) (CURRENT_SCREEN, items); in new_menu() 134 if (menu->items) in free_menu()
|
/freebsd/contrib/bsddialog/utility/ |
H A D | util_builders.c | 292 unsigned int *nitems, struct bsddialog_menuitem **items, int *focusitem, in get_menu_items() 307 exit_error(true, "%s bad arguments items number", opt->name); in get_menu_items() 310 *items = calloc(*nitems, sizeof(struct bsddialog_menuitem)); in get_menu_items() 311 if (items == NULL) in get_menu_items() 312 exit_error(false, "%s cannot allocate items", opt->name); in get_menu_items() 316 (*items)[i].prefix = setprefix ? argv[j++] : ""; in get_menu_items() 317 (*items)[i].depth = setdepth ? in get_menu_items() 319 (*items)[i].name = setname ? argv[j++] : ""; in get_menu_items() 320 (*items)[i].desc = setdesc ? argv[j++] : ""; in get_menu_items() 323 (*items)[ in get_menu_items() 291 get_menu_items(int argc,char ** argv,bool setprefix,bool setdepth,bool setname,bool setdesc,bool setstatus,bool sethelp,unsigned int * nitems,struct bsddialog_menuitem ** items,int * focusitem,struct options * opt) get_menu_items() argument 341 print_menu_items(int output,int nitems,struct bsddialog_menuitem * items,int focusitem,struct options * opt) print_menu_items() argument 434 struct bsddialog_menuitem *items; checklist_builder() local 459 struct bsddialog_menuitem *items; menu_builder() local 485 struct bsddialog_menuitem *items; radiolist_builder() local 510 struct bsddialog_menuitem *items; treeview_builder() local 536 print_form_items(int output,int nitems,struct bsddialog_formitem * items,int focusitem,struct options * opt) print_form_items() argument 569 struct bsddialog_formitem *items; form_builder() local 648 struct bsddialog_formitem *items; mixedform_builder() local 721 struct bsddialog_formitem *items; passwordform_builder() local [all...] |
/freebsd/usr.sbin/bsdinstall/partedit/ |
H A D | gpart_ops.c | 103 struct bsddialog_menuitem items[] = { in newfs_command() local 121 nitems(items), items, NULL); in newfs_command() 127 for (i = 0; i < (int)nitems(items); i++) { in newfs_command() 128 if (items[i].on == false) in newfs_command() 130 if (strcmp(items[i].name, "UFS1") == 0) in newfs_command() 132 else if (strcmp(items[i].name, "SU") == 0) in newfs_command() 134 else if (strcmp(items[i].name, "SUJ") == 0) in newfs_command() 136 else if (strcmp(items[i].name, "TRIM") == 0) in newfs_command() 141 struct bsddialog_menuitem items[] = { in newfs_command() local 159 nitems(items), items, NULL); in newfs_command() [all …]
|
H A D | partedit.c | 53 struct partedit_item **items, int *nitems); 55 static void get_mount_points(struct partedit_item *items, int nitems); 79 struct partedit_item *items = NULL; in main() local 132 items = read_geom_mesh(&mesh, &nitems); in main() 133 if (error || items == NULL) { in main() 141 get_mount_points(items, nitems); in main() 145 op = diskmenu_show("Partition Editor", prompt, items, nitems, in main() 150 gpart_create((struct gprovider *)(items[i].cookie), in main() 154 gpart_delete((struct gprovider *)(items[i].cookie)); in main() 157 gpart_edit((struct gprovider *)(items[i].cookie)); in main() [all …]
|
H A D | diskmenu.c | 37 diskmenu_show(const char *title, const char *text, struct partedit_item *items, in diskmenu_show() argument 51 bsditems[i].depth = 2 * items[i].indentation; in diskmenu_show() 53 bsditems[i].name = items[i].name; in diskmenu_show() 54 humanize_number(size, 7, items[i].size, "B", in diskmenu_show() 56 mp = items[i].mountpoint != NULL ? items[i].mountpoint : ""; in diskmenu_show() 58 " %-9s %-15s %s", size, items[i].type, mp); in diskmenu_show()
|
/freebsd/contrib/kyua/utils/signals/ |
H A D | timer_test.cpp | 158 std::vector< int > items, exp_items; in ATF_TEST_CASE_BODY() local 166 items, i)); in ATF_TEST_CASE_BODY() 172 ATF_REQUIRE_EQ(exp_items, items); in ATF_TEST_CASE_BODY() 184 std::vector< int > items; in ATF_TEST_CASE_BODY() local 188 datetime::delta(0, 100000), items, 1)); in ATF_TEST_CASE_BODY() 193 datetime::delta(0, 50000), items, 2)); in ATF_TEST_CASE_BODY() 198 datetime::delta(0, 200000), items, 3)); in ATF_TEST_CASE_BODY() 203 datetime::delta(0, 150000), items, 4)); in ATF_TEST_CASE_BODY() 213 ATF_REQUIRE_EQ(exp_items, items); in ATF_TEST_CASE_BODY() 225 std::vector< int > items; in ATF_TEST_CASE_BODY() local [all …]
|
/freebsd/contrib/llvm-project/lldb/source/DataFormatters/ |
H A D | TypeCategory.cpp | 137 void TypeCategoryImpl::Clear(FormatCategoryItems items) { in Clear() argument 138 if (items & eFormatCategoryItemFormat) in Clear() 141 if (items & eFormatCategoryItemSummary) in Clear() 144 if (items & eFormatCategoryItemFilter) in Clear() 147 if (items & eFormatCategoryItemSynth) in Clear() 151 bool TypeCategoryImpl::Delete(ConstString name, FormatCategoryItems items) { in Delete() argument 154 if (items & eFormatCategoryItemFormat) in Delete() 157 if (items & eFormatCategoryItemSummary) in Delete() 160 if (items & eFormatCategoryItemFilter) in Delete() 163 if (items & eFormatCategoryItemSynth) in Delete() [all …]
|
/freebsd/contrib/bmake/ |
H A D | for.c | 66 SubstringWords items; /* Substitution items */ member 97 SubstringWords_Init(&f->items); in ForLoop_New() 111 SubstringWords_Free(f->items); in ForLoop_Free() 122 const Substring *items; in ForLoop_Details() local 126 vars = f->vars.items; in ForLoop_Details() 128 items = f->items.words + f->nextItem - n; in ForLoop_Details() 136 Buf_AddRange(&buf, items[i].start, items[i].end); in ForLoop_Details() 196 char *items; in ForLoop_ParseItems() local 200 items = Var_Subst(p, SCOPE_GLOBAL, VARE_EVAL); in ForLoop_ParseItems() 203 f->items = Substring_Words(items, false); in ForLoop_ParseItems() [all …]
|
/freebsd/crypto/openssl/ssl/ |
H A D | pqueue.c | 14 pitem *items; member 57 if (pq->items == NULL) { in pqueue_insert() 58 pq->items = item; in pqueue_insert() 62 for (curr = NULL, next = pq->items; in pqueue_insert() 72 pq->items = item; in pqueue_insert() 91 return pq->items; in pqueue_peek() 96 pitem *item = pq->items; in pqueue_pop() 98 if (pq->items != NULL) in pqueue_pop() 99 pq->items = pq->items->next; in pqueue_pop() 109 if (pq->items == NULL) in pqueue_find() [all …]
|
/freebsd/contrib/ntp/ntpdc/ |
H A D | ntpdc_ops.c | 291 size_t items, in checkitems() argument 295 if (items == 0) { in checkitems() 327 size_t items, in check1item() argument 331 if (items == 0) { in check1item() 335 if (items > 1) { in check1item() 337 (u_long)items); in check1item() 356 size_t items; in peerlist() local 361 res = doquery(impl_ver, REQ_PEER_LIST, 0, 0, 0, (char *)NULL, &items, in peerlist() 373 if (!checkitems(items, fp)) in peerlist() 380 while (items > 0) { in peerlist() [all …]
|
/freebsd/contrib/dialog/ |
H A D | formbox.c | 32 #define ItemName(i) items[LLEN(i) + 0] 33 #define ItemNameY(i) items[LLEN(i) + 1] 34 #define ItemNameX(i) items[LLEN(i) + 2] 35 #define ItemText(i) items[LLEN(i) + 3] 36 #define ItemTextY(i) items[LLEN(i) + 4] 37 #define ItemTextX(i) items[LLEN(i) + 5] 38 #define ItemTextFLen(i) items[LLEN(i) + 6] 39 #define ItemTextILen(i) items[LLEN(i) + 7] 40 #define ItemHelp(i) (dialog_vars.item_help ? items[LLEN(i) + 8] : dlg_strempty()) 408 dlg_default_formitem(DIALOG_FORMITEM * items) in dlg_default_formitem() argument [all …]
|
H A D | menubox.c | 47 DIALOG_LISTITEM *items; member 143 DIALOG_LISTITEM * items, in input_menu_edit() argument 156 int max_len = dlg_max_input(MAX((int) strlen(items->text) + 1, MAX_LEN)); in input_menu_edit() 163 strcpy(result, items->text); in input_menu_edit() 165 print_item(data, data->menu, items, choice, Editing, TRUE); in input_menu_edit() 195 print_item(data, data->menu, items, choice, Selected, TRUE); in input_menu_edit() 203 handle_button(int code, DIALOG_LISTITEM * items, int choice) in handle_button() argument 210 dlg_add_string(items[choice].name); in handle_button() 213 dlg_add_help_listitem(&code, &help_result, &items[choice]); in handle_button() 222 dlg_renamed_menutext(DIALOG_LISTITEM * items, int current, char *newtext) in dlg_renamed_menutext() argument [all …]
|
H A D | mixedform.c | 31 #define ItemName(i) items[LLEN(i) + 0] 32 #define ItemNameY(i) items[LLEN(i) + 1] 33 #define ItemNameX(i) items[LLEN(i) + 2] 34 #define ItemText(i) items[LLEN(i) + 3] 35 #define ItemTextY(i) items[LLEN(i) + 4] 36 #define ItemTextX(i) items[LLEN(i) + 5] 37 #define ItemTextFLen(i) items[LLEN(i) + 6] 38 #define ItemTextILen(i) items[LLEN(i) + 7] 39 #define ItemTypep(i) items[LLEN(i) + 8] 40 #define ItemHelp(i) (dialog_vars.item_help ? items[LLEN(i) + 9] : dlg_strempty()) [all …]
|
H A D | checklist.c | 46 DIALOG_LISTITEM *items; member 110 &data->items[i + scrollamt], in print_list() 132 check_hotkey(DIALOG_LISTITEM * items, int choice) in check_hotkey() argument 138 ? items[choice].text in check_hotkey() 139 : items[choice].name))) { in check_hotkey() 158 DIALOG_LISTITEM * items, in dlg_checklist() argument 197 int choice = dlg_default_listitem(items); in dlg_checklist() 223 all.items = items; in dlg_checklist() 237 if (items[i].state) { in dlg_checklist() 241 items[i].state = 0; in dlg_checklist() [all …]
|
H A D | treeview.c | 42 DIALOG_LISTITEM *items; member 113 &data->items[scrollamt + i], in print_list() 136 check_hotkey(DIALOG_LISTITEM * items, int choice) in check_hotkey() argument 142 ? items[choice].text in check_hotkey() 143 : items[choice].name))) { in check_hotkey() 161 DIALOG_LISTITEM * items, in dlg_treeview() argument 201 int choice = dlg_default_listitem(items); in dlg_treeview() 221 all.items = items; in dlg_treeview() 238 if (items[i].state) { in dlg_treeview() 242 items[i].state = 0; in dlg_treeview() [all …]
|
H A D | buildlist.c | 60 DIALOG_LISTITEM *items; /* all items in the widget */ member 86 choice, all->items + choice, in index2row() 88 if (myItem(data, row) == all->items + choice) { in index2row() 110 n, all->items + n)); in row2index() 111 if (myItem(data, row) == all->items + n) { in row2index() 175 ? all->items + choice in print_1_list() 233 check_hotkey(DIALOG_LISTITEM * items, int choice, int selected) in check_hotkey() argument 237 if ((items[choice].state != 0) == selected) { in check_hotkey() 240 ? items[choice].text in check_hotkey() 241 : items[choice].name))) { in check_hotkey() [all …]
|
/freebsd/sys/dev/zlib/ |
H A D | zcalloc.c | 13 zcalloc_waitok(void *nil, u_int items, u_int size) in zcalloc_waitok() argument 16 return mallocarray(items, size, M_ZLIB, M_WAITOK); in zcalloc_waitok() 20 zcalloc_nowait(void *nil, u_int items, u_int size) in zcalloc_nowait() argument 23 return mallocarray(items, size, M_ZLIB, M_NOWAIT); in zcalloc_nowait() 27 zcalloc(void *nil, u_int items, u_int size) in zcalloc() argument 30 return zcalloc_nowait(nil, items, size); in zcalloc()
|
/freebsd/contrib/bsddialog/examples_library/ |
H A D | theme.c | 20 struct bsddialog_menuitem items[4] = { in main() local 43 items, &focusitem); in main() 45 if (output != BSDDIALOG_OK || items[3].on) in main() 48 if (items[0].on) { in main() 51 } else if (items[1].on) { in main() 54 } else if (items[2].on) { in main()
|
/freebsd/sys/net/route/ |
H A D | nhop_utils.c | 47 static void _bitmask_init_idx(void *index, uint32_t items); 79 _bitmask_get_blocks(uint32_t items) 82 return (items / BLOCK_ITEMS); 87 bitmask_get_size(uint32_t items) in bitmask_get_size() argument 90 KASSERT((items % BLOCK_ITEMS) == 0, in bitmask_get_size() 94 assert((items % BLOCK_ITEMS) == 0); in bitmask_get_size() 97 return (items / 8); in bitmask_get_size() 101 _bitmask_init_idx(void *_idx, uint32_t items) in _bitmask_init_idx() argument 103 size_t size = bitmask_get_size(items); in _bitmask_init_idx()
|
/freebsd/contrib/bsddialog/lib/ |
H A D | formbox.c | 80 unsigned int y; /* changes moving focus around items */ 93 struct bsddialog_formitem *items, struct privateform *f) in build_privateform() argument 102 CHECK_ARRAY(nitems, items); in build_privateform() 104 if (items[i].fieldlen == 0) in build_privateform() 107 if (items[i].maxvaluelen == 0) in build_privateform() 127 /* alloc and set private items */ in build_privateform() 135 item->label = CHECK_STR(items[i].label); in build_privateform() 136 item->ylabel = items[i].ylabel; in build_privateform() 137 item->xlabel = items[i].xlabel; in build_privateform() 138 item->yfield = items[ in build_privateform() 359 return_values(struct bsddialog_conf * conf,struct privateform * f,struct bsddialog_formitem * items) return_values() argument 394 firstitem(unsigned int nitems,struct privateitem * items) firstitem() argument 405 lastitem(unsigned int nitems,struct privateitem * items) lastitem() argument 417 previtem(unsigned int nitems,struct privateitem * items,int curritem) previtem() argument 433 nextitem(unsigned int nitems,struct privateitem * items,int curritem) nextitem() argument 677 bsddialog_form(struct bsddialog_conf * conf,const char * text,int rows,int cols,unsigned int formheight,unsigned int nitems,struct bsddialog_formitem * items,int * focusitem) bsddialog_form() argument [all...] |
/freebsd/crypto/openssl/crypto/rsa/ |
H A D | rsa_schemes.c | 19 const OSSL_ITEM *items, size_t items_n) in meth2nid() argument 25 if (meth_is_a(meth, items[i].ptr)) in meth2nid() 26 return (int)items[i].id; in meth2nid() 30 static const char *nid2name(int meth, const OSSL_ITEM *items, size_t items_n) in nid2name() argument 35 if (meth == (int)items[i].id) in nid2name() 36 return items[i].ptr; in nid2name()
|
/freebsd/lib/libnv/tests/ |
H A D | nvlist_append_test.c | 51 nvlist_t *nvl, *nvl1, *nvl2, **items; in main() local 106 items = nvlist_take_nvlist_array(nvl, "nvl/nvl_array", &nitems); in main() 107 CHECK(nvlist_get_number(items[0], "key1") == 10); in main() 108 CHECK(nvlist_get_number(items[1], "key1") == 20); in main() 109 CHECK(nvlist_error(items[0]) == 0); in main() 110 CHECK(nvlist_error(items[1]) == 0); in main() 112 nvlist_move_nvlist_array(nvl, "nvl/nvl_new_array", items, nitems); in main()
|