Home
last modified time | relevance | path

Searched refs:items (Results 1 – 25 of 392) sorted by relevance

12345678910>>...16

/freebsd/crypto/openssl/util/perl/OpenSSL/
H A DOrdinals.pm182 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/bsddialog/utility/
H A Dutil_builders.c292 unsigned int *nitems, struct bsddialog_menuitem **items, int *focusitem, in get_menu_items() argument
310 *items = calloc(*nitems, sizeof(struct bsddialog_menuitem)); in get_menu_items()
311 if (items == NULL) 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)[i].on = true; in get_menu_items()
325 (*items)[i].on = false; in get_menu_items()
329 (*items)[i].name, i+1, argv[j]); in get_menu_items()
[all …]
/freebsd/contrib/ncurses/menu/
H A Dm_global.c115 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 Dm_items.c57 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 Dm_new.c55 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/usr.sbin/bsdinstall/partedit/
H A Dgpart_ops.c103 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 Dpartedit.c53 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 Ddiskmenu.c37 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 Dtimer_test.cpp158 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 DTypeCategory.cpp137 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 Dfor.c66 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()
191 char *items; in ForLoop_ParseItems() local
196 items = Var_Subst(p, SCOPE_GLOBAL, VARE_EVAL); in ForLoop_ParseItems()
197 f->items = Substring_Words( in ForLoop_ParseItems()
[all …]
/freebsd/contrib/ntp/ntpdc/
H A Dntpdc_ops.c291 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 Dformbox.c32 #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 Dmenubox.c47 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 Dmixedform.c31 #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 Dchecklist.c46 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 Dtreeview.c42 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 Dbuildlist.c60 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/crypto/openssl/ssl/
H A Dpqueue.c14 pitem *items; member
52 if (pq->items == NULL) { in pqueue_insert()
53 pq->items = item; in pqueue_insert()
57 for (curr = NULL, next = pq->items; in pqueue_insert()
67 pq->items = item; in pqueue_insert()
86 return pq->items; in pqueue_peek()
91 pitem *item = pq->items; in pqueue_pop()
93 if (pq->items != NULL) in pqueue_pop()
94 pq->items = pq->items->next; in pqueue_pop()
104 if (pq->items == NULL) in pqueue_find()
[all …]
/freebsd/crypto/openssl/test/radix/
H A Dquic_tests.c85 SSL_POLL_ITEM items[6] = {0}, expected_items[6] = {0}; in DEF_FUNC() local
96 items[0].desc = SSL_as_poll_descriptor(La); in DEF_FUNC()
97 items[0].events = 0; in DEF_FUNC()
98 items[0].revents = 0; in DEF_FUNC()
101 items[i + 1].desc = SSL_as_poll_descriptor(Lax[i]); in DEF_FUNC()
102 items[i + 1].events = SSL_POLL_EVENT_R | SSL_POLL_EVENT_I; in DEF_FUNC()
103 items[i + 1].revents = 0; in DEF_FUNC()
106 items[5].desc = SSL_as_poll_descriptor(SSL_get0_listener(La)); in DEF_FUNC()
115 items[0].events = SSL_POLL_EVENT_OS; in DEF_FUNC()
121 items[i + 1].events |= SSL_POLL_EVENT_W; in DEF_FUNC()
[all …]
/freebsd/crypto/openssl/ssl/rio/
H A Dpoll_immediate.c28 #define ITEM_N(items, stride, n) \ argument
29 (*(SSL_POLL_ITEM *)((char *)(items) + (n)*(stride)))
36 ITEM_N(items, stride, j).revents = 0; \
46 ITEM_N(items, stride, idx_).revents = SSL_POLL_EVENT_F; \
162 static void postpoll_translation_cleanup(SSL_POLL_ITEM *items, in postpoll_translation_cleanup() argument
172 item = &ITEM_N(items, stride, i); in postpoll_translation_cleanup()
198 static int poll_translate(SSL_POLL_ITEM *items, in poll_translate() argument
217 item = &ITEM_N(items, stride, i); in poll_translate()
274 postpoll_translation_cleanup(items, i, stride, wctx); in poll_translate()
281 static int poll_block(SSL_POLL_ITEM *items, in poll_block() argument
[all …]
/freebsd/sys/dev/zlib/
H A Dzcalloc.c13 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/sys/net/route/
H A Dnhop_utils.c47 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/examples_library/
H A Dtheme.c20 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/contrib/bsddialog/lib/
H A Dformbox.c93 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()
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[i].yfield; in build_privateform()
139 item->xfield = items[i].xfield; in build_privateform()
140 item->secure = items[i].flags & BSDDIALOG_FIELDHIDDEN; in build_privateform()
[all …]

12345678910>>...16