Home
last modified time | relevance | path

Searched refs:ui (Results 1 – 25 of 106) sorted by relevance

12345

/openbsd-src/lib/libcrypto/ui/
H A Dui_lib.c116 UI_free(UI *ui) in UI_free() argument
118 if (ui == NULL) in UI_free()
121 sk_UI_STRING_pop_free(ui->strings, free_string); in UI_free()
122 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_UI, ui, &ui->ex_data); in UI_free()
123 free(ui); in UI_free()
128 allocate_string_stack(UI *ui) in allocate_string_stack() argument
130 if (ui->strings == NULL) { in allocate_string_stack()
131 if ((ui->strings = sk_UI_STRING_new_null()) == NULL) { in allocate_string_stack()
179 general_allocate_string(UI *ui, const char *prompt, int dup_prompt, in general_allocate_string() argument
193 if (allocate_string_stack(ui) < 0) in general_allocate_string()
[all …]
H A Dui.h1 /* $OpenBSD: ui.h,v 1.19 2024/08/31 10:28:03 tb Exp $ */
87 void UI_free(UI *ui);
133 int UI_add_input_string(UI *ui, const char *prompt, int flags,
135 int UI_dup_input_string(UI *ui, const char *prompt, int flags,
137 int UI_add_verify_string(UI *ui, const char *prompt, int flags,
139 int UI_dup_verify_string(UI *ui, const char *prompt, int flags,
141 int UI_add_input_boolean(UI *ui, const char *prompt, const char *action_desc,
144 int UI_dup_input_boolean(UI *ui, const char *prompt, const char *action_desc,
147 int UI_add_info_string(UI *ui, const char *text);
148 int UI_dup_info_string(UI *ui, cons
[all...]
H A Dui_openssl.c146 static int read_string_inner(UI *ui, UI_STRING *uis, int echo, int strip_nl);
148 static int read_string(UI *ui, UI_STRING *uis);
149 static int write_string(UI *ui, UI_STRING *uis);
151 static int open_console(UI *ui);
152 static int echo_console(UI *ui);
153 static int noecho_console(UI *ui);
154 static int close_console(UI *ui);
175 write_string(UI *ui, UI_STRING *uis) in write_string() argument
190 read_string(UI *ui, UI_STRING *uis) in read_string() argument
199 return read_string_inner(ui, uis, in read_string()
[all …]
H A Dui_util.c
H A Dui_local.h82 int (*ui_open_session)(UI *ui);
84 int (*ui_write_string)(UI *ui, UI_STRING *uis);
88 int (*ui_flush)(UI *ui);
90 int (*ui_read_string)(UI *ui, UI_STRING *uis);
92 int (*ui_close_session)(UI *ui);
100 char *(*ui_construct_prompt)(UI *ui, const char *object_desc,
/openbsd-src/gnu/usr.bin/binutils/gdb/testsuite/gdb.base/
H A Dfuncargs.c41 unsigned int ui = 7; variable
42 unsigned int *uip = &ui;
132 void call1a (unsigned char uc, unsigned short us, unsigned int ui, unsigned long ul) in call1a() argument
134 call1a (uc, us, ui, ul) in call1a()
135 unsigned char uc; unsigned short us; unsigned int ui; unsigned long ul; in call1a()
138 uc = 5; us = 6; ui = 7; ul = 8;
142 void call1b (unsigned short us, unsigned int ui, unsigned long ul, unsigned char uc) in call1b() argument
144 call1b (us, ui, ul, uc) in call1b()
145 unsigned short us; unsigned int ui; unsigned long ul; unsigned char uc; in call1b()
148 uc = 5; us = 6; ui = 7; ul = 8;
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/unsorted/
H A Dconv_tst.c5 unsigned ui; variable
18 ui = (unsigned) ID_2; in conv_i2()
31 ui = (unsigned) d;
49 printf ("%lf, %u, %d\n", ID_1, ui, si); in main()
52 printf ("%lf, %u, %d\n", ID_2, ui, si); in main()
55 printf ("%lf, %u, %d\n", ID_3, ui, si); in main()
58 printf ("%lf, %u, %d\n", ID_1, ui, si); in main()
61 printf ("%lf, %u, %d\n", ID_2, ui, si); in main()
64 printf ("%lf, %u, %d\n", ID_3, ui, si); in main()
/openbsd-src/games/hack/
H A Dhack.cmd.c312 int i, ui = u.di; in finddir() local
315 if(flags.run & 1) ui++; else ui += 7; in finddir()
316 ui %= 8; in finddir()
322 if(!isroom(u.ux+xdir[ui], u.uy+ydir[ui])) in finddir()
326 if(flags.run & 1) ui += 7; else ui++; in finddir()
327 ui %= 8; in finddir()
333 if(isroom(u.ux+xdir[ui], u.uy+ydir[ui])) in finddir()
336 u.di = ui; in finddir()
337 u.dx = xdir[ui]; in finddir()
338 u.dy = ydir[ui]; in finddir()
/openbsd-src/sys/lib/libsa/
H A Dnetudp.c64 struct udpiphdr *ui; in sendudp() local
102 ui = (struct udpiphdr *)ip; in sendudp()
103 bzero(ui->ui_x1, sizeof(ui->ui_x1)); in sendudp()
104 ui->ui_len = uh->uh_ulen; in sendudp()
105 uh->uh_sum = in_cksum(ui, len); in sendudp()
133 struct udpiphdr *ui; in readudp() local
228 ui = (struct udpiphdr *)ip; in readudp()
229 bzero(ui->ui_x1, sizeof(ui->ui_x1)); in readudp()
230 ui->ui_len = uh->uh_ulen; in readudp()
231 if (in_cksum(ui, n) != 0) { in readudp()
/openbsd-src/usr.sbin/sa/
H A Dusrdb.c223 struct userinfo uistore, *ui = &uistore; in usracct_print() local
232 memcpy(ui, data.data, sizeof(struct userinfo)); in usracct_print()
235 user_from_uid(ui->ui_uid, 0), ui->ui_calls); in usracct_print()
237 t = (double) (ui->ui_utime + ui->ui_stime) / in usracct_print()
246 printf("%12llu%s", ui->ui_io / ui->ui_calls, "avio"); in usracct_print()
248 printf("%12llu%s", ui->ui_io, "tio"); in usracct_print()
252 printf("%12.0f%s", ui->ui_mem / t, "k"); in usracct_print()
254 printf("%12llu%s", ui->ui_mem, "k*sec"); in usracct_print()
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A D20020503-1.c9 unsigned long ui = i; in inttostr() local
13 ui = -ui; in inttostr()
15 *--p = '0' + ui % 10; in inttostr()
16 while ((ui /= 10) != 0); in inttostr()
H A D20020226-1.c23 unsigned int ui = INT_VALUE; variable
43 if (ROR (ui, shift1) != ROR (INT_VALUE, SHIFT1)) in main()
46 if (ROR (ui, SHIFT1) != ROR (INT_VALUE, SHIFT1)) in main()
79 if (ROL (ui, shift1) != ROL (INT_VALUE, SHIFT1)) in main()
82 if (ROL (ui, SHIFT1) != ROL (INT_VALUE, SHIFT1)) in main()
H A D20020508-1.c23 unsigned int ui = INT_VALUE; variable
43 if (ROR (ui, shift1) != ROR (INT_VALUE, SHIFT1)) in main()
46 if (ROR (ui, SHIFT1) != ROR (INT_VALUE, SHIFT1)) in main()
79 if (ROL (ui, shift1) != ROL (INT_VALUE, SHIFT1)) in main()
82 if (ROL (ui, SHIFT1) != ROL (INT_VALUE, SHIFT1)) in main()
/openbsd-src/usr.bin/tmux/
H A Dutf8.c265 struct utf8_item ui; in utf8_put_item()
267 memcpy(ui.data, data, size); in utf8_put_item()
268 ui.size = size; in utf8_put_item()
270 return (RB_FIND(utf8_data_tree, &utf8_data_tree, &ui)); in utf8_put_item()
277 struct utf8_item ui; in utf8_put_item()
279 ui.index = index; in utf8_put_item()
281 return (RB_FIND(utf8_index_tree, &utf8_index_tree, &ui)); in utf8_put_item()
402 struct utf8_item *ui; in utf8_width()
404 ui = utf8_item_by_data(data, size); in utf8_width()
405 if (ui ! in utf8_width()
241 struct utf8_item ui; utf8_item_by_data() local
253 struct utf8_item ui; utf8_item_by_index() local
264 struct utf8_item *ui; utf8_put_item() local
348 struct utf8_item *ui; utf8_to_data() local
[all...]
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.bugs/
H A D900210_01.C24 unsigned int ui; variable
86 ui = vp; /* ERROR - */ in global_function()
87 ui = cp; /* ERROR - */ in global_function()
88 ui = ip; /* ERROR - */ in global_function()
89 ui = ep; /* ERROR - */ in global_function()
90 ui = sp; /* ERROR - */ in global_function()
91 ui = fp; /* ERROR - */ in global_function()
H A D900210_02.C24 unsigned int ui; variable
46 vp = ui; /* ERROR - */ in global_function()
58 cp = ui; /* ERROR - */ in global_function()
70 ip = ui; /* ERROR - */ in global_function()
82 ep = ui; /* ERROR - */ in global_function()
94 sp = ui; /* ERROR - */ in global_function()
106 fp = ui; /* ERROR - */ in global_function()
/openbsd-src/lib/libcrypto/evp/
H A Devp_key.c104 UI *ui = NULL; in EVP_read_pw_string_min() local
117 if ((ui = UI_new()) == NULL) in EVP_read_pw_string_min()
119 if (UI_add_input_string(ui, prompt, 0, buf, min, len - 1) < 0) in EVP_read_pw_string_min()
122 if (UI_add_verify_string(ui, prompt, 0, buff, min, len - 1, in EVP_read_pw_string_min()
127 ret = UI_process(ui); in EVP_read_pw_string_min()
130 UI_free(ui); in EVP_read_pw_string_min()
/openbsd-src/sbin/disklabel/
H A Deditor.c707 u_int64_t ui, sz, off; in editor_resize() local
722 ui = getuint64(lp, "[+|-]new size (with unit)", in editor_resize()
726 if (ui == CMD_ABORTED) in editor_resize()
728 else if (ui == CMD_BADVALUE) in editor_resize()
730 else if (ui == 0) { in editor_resize()
737 ui = ROUNDUP(ui, lp->d_secpercyl); in editor_resize()
739 if (DL_GETPOFFSET(pp) + ui > ending_sector) { in editor_resize()
744 DL_SETPSIZE(pp, ui); in editor_resize()
1279 u_int64_t ui, start_temp; in set_bounds() local
1283 ui = getuint64(lp, "Starting sector", in set_bounds()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.benjamin/
H A D18208.C16 uint_32 ui; in foo() local
20 ui = static_cast<uint_32>(obj); // ERROR - // ERROR - in foo()
23 ui = (uint_32) obj.f; // ERROR - // ERROR - in foo()
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.jason/
H A Dtempdest.C13 typedef unsigned int ui; typedef
17 A<ui> *ap = new A<ui>; in main()
/openbsd-src/gnu/usr.bin/binutils/gdb/
H A Dhppa-tdep.c413 struct hppa_unwind_info *ui; in read_unwind_info() local
417 ui = (struct hppa_unwind_info *) obstack_alloc (&objfile->objfile_obstack, in read_unwind_info()
420 ui->table = NULL; in read_unwind_info()
421 ui->cache = NULL; in read_unwind_info()
422 ui->last = -1; in read_unwind_info()
466 ui->table = (struct unwind_table_entry *) in read_unwind_info()
468 ui->last = total_entries - 1; in read_unwind_info()
483 internalize_unwinds (objfile, &ui->table[index], unwind_sec, in read_unwind_info()
503 memset (&ui->table[index], 0, sizeof (struct unwind_table_entry)); in read_unwind_info()
507 ui->table[index].region_start = bfd_get_32 (objfile->obfd, in read_unwind_info()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dfp-test.c76 volatile unsigned int ui; variable
119 ui = f1; in main()
130 f1 = ui; in main()
165 ui = d1; in main()
176 d1 = ui; in main()
211 ui = D1; in main()
222 D1 = ui; in main()
H A Dra.c582 unsigned int ui; local
589 for (ui = 0; ui < df->def_id; ui++)
590 if (!df->defs[ui])
591 bitmap_set_bit (empty_defs, ui);
592 for (ui = 0; ui < df->use_id; ui++)
593 if (!df->uses[ui])
594 bitmap_set_bit (empty_uses, ui);
/openbsd-src/gnu/gcc/gcc/
H A Dfp-test.c76 volatile unsigned int ui; variable
119 ui = f1; in main()
130 f1 = ui; in main()
165 ui = d1; in main()
176 d1 = ui; in main()
211 ui = D1; in main()
222 D1 = ui; in main()
/openbsd-src/usr.sbin/smtpd/
H A Dmda_variables.c50 const struct deliver *dlv, const struct userinfo *ui, const char *mda_command) in mda_expand_token() argument
133 string = ui->username; in mda_expand_token()
135 string = ui->directory; in mda_expand_token()
240 const struct userinfo *ui, const char *mda_command) in mda_expand_format() argument
260 tmpret = snprintf(ptmp, sizeof tmpbuf, "%s/", ui->directory); in mda_expand_format()
263 ui->directory); in mda_expand_format()
299 ui, mda_command); in mda_expand_format()

12345