Home
last modified time | relevance | path

Searched refs:prompt (Results 1 – 25 of 408) sorted by relevance

12345678910>>...17

/freebsd/usr.sbin/ppp/
H A Dlog.c79 static struct prompt *promptlist; /* Where to log local stuff */
80 struct prompt *log_PromptContext;
83 struct prompt *
90 log_RegisterPrompt(struct prompt *prompt) in log_RegisterPrompt() argument
92 prompt->next = promptlist; in log_RegisterPrompt()
93 promptlist = prompt; in log_RegisterPrompt()
94 prompt->active = 1; in log_RegisterPrompt()
95 log_DiscardAllLocal(&prompt->logmask); in log_RegisterPrompt()
99 log_ActivatePrompt(struct prompt *prompt) in log_ActivatePrompt() argument
101 prompt->active = 1; in log_ActivatePrompt()
[all …]
H A Dprompt.h40 struct prompt { struct
58 struct prompt *next; /* Maintained in log.c */ argument
66 ((d)->type == PROMPT_DESCRIPTOR ? (struct prompt *)(d) : NULL) argument
69 extern struct prompt *prompt_Create(struct server *, struct bundle *, int);
70 extern void prompt_Destroy(struct prompt *, int);
71 extern void prompt_Required(struct prompt *);
73 extern void prompt_Printf(struct prompt *, const char *, ...)
76 extern void prompt_Printf(struct prompt *, const char *, ...);
79 extern void prompt_vPrintf(struct prompt *, const char *, va_list)
82 extern void prompt_vPrintf(struct prompt *, const char *, va_list);
[all …]
H A Dmain.c109 static struct prompt *SignalPrompt;
286 CheckLabel(const char *label, struct prompt *prompt, int mode) in CheckLabel() argument
290 if ((err = system_IsValid(label, prompt, mode)) != NULL) { in CheckLabel()
309 struct prompt *prompt; in main() local
352 prompt = NULL; in main()
354 SignalPrompt = prompt = prompt_Create(NULL, NULL, PROMPT_STD); in main()
377 CheckLabel(argv[arg], prompt, sw.mode); in main()
379 CheckLabel("default", prompt, sw.mode); in main()
382 prompt_Printf(prompt, "Working in %s mode\n", mode2Nam(sw.mode)); in main()
394 if (system_Select(bundle, "default", CONFFILE, prompt, NULL) < 0) in main()
[all …]
H A Dprompt.c83 prompt_Display(struct prompt *p) in prompt_Display()
135 struct prompt *p = descriptor2prompt(d); in prompt_UpdateSet()
166 struct prompt *p = descriptor2prompt(d); in prompt_IsSet()
172 prompt_ShowHelp(struct prompt *p) in prompt_ShowHelp()
186 struct prompt *p = descriptor2prompt(d); in prompt_Read()
187 struct prompt *op; in prompt_Read()
286 arg.prompt = p; in prompt_Read()
313 struct prompt *
316 struct prompt *p = (struct prompt *)malloc(sizeof(struct prompt)); in prompt_Create()
361 prompt_Destroy(struct prompt *p, int verbose) in prompt_Destroy()
[all …]
H A Dnat_cmd.c108 prompt_Printf(arg->prompt, "Alias not enabled\n"); in nat_RedirectPort()
128 prompt_Printf(arg->prompt, "port redirect: protocol must be" in nat_RedirectPort()
136 prompt_Printf(arg->prompt, "nat port: error reading localaddr:port\n"); in nat_RedirectPort()
143 prompt_Printf(arg->prompt, "nat port: error reading alias port\n"); in nat_RedirectPort()
152 prompt_Printf(arg->prompt, "nat port: error reading " in nat_RedirectPort()
166 prompt_Printf(arg->prompt, "nat port: local & alias port ranges " in nat_RedirectPort()
172 prompt_Printf(arg->prompt, "nat port: local & remote port ranges " in nat_RedirectPort()
184 prompt_Printf(arg->prompt, "nat port: %d: error %d\n", laliasport, in nat_RedirectPort()
204 prompt_Printf(arg->prompt, "nat not enabled\n"); in nat_RedirectAddr()
213 prompt_Printf(arg->prompt, "address redirect: invalid local address\n"); in nat_RedirectAddr()
[all …]
H A Dlog.h62 struct prompt;
96 extern struct prompt *log_PromptContext;
98 extern void log_RegisterPrompt(struct prompt *);
99 extern void log_UnRegisterPrompt(struct prompt *);
102 extern void log_ActivatePrompt(struct prompt *);
103 extern void log_DeactivatePrompt(struct prompt *);
105 extern struct prompt *log_PromptList(void);
H A Dthroughput.c100 throughput_disp(struct pppThroughput *t, struct prompt *prompt) in throughput_disp() argument
105 prompt_Printf(prompt, "Connect time: %d:%02d:%02d", secs_up / 3600, in throughput_disp()
108 prompt_Printf(prompt, " - down at %s", ctime(&t->downtime)); in throughput_disp()
110 prompt_Printf(prompt, "\n"); in throughput_disp()
113 prompt_Printf(prompt, "%llu octets in, %llu octets out\n", in throughput_disp()
115 prompt_Printf(prompt, "%llu packets in, %llu packets out\n", in throughput_disp()
118 prompt_Printf(prompt, " overall %6llu bytes/sec\n", in throughput_disp()
120 prompt_Printf(prompt, " %s %6llu bytes/sec in, %6llu bytes/sec out " in throughput_disp()
125 prompt_Printf(prompt, " peak %6llu bytes/sec on %s", in throughput_disp()
128 prompt_Printf(prompt, "Overall %llu bytes/sec\n", in throughput_disp()
[all …]
H A Dfilter.c451 doShowFilter(struct filterent *fp, struct prompt *prompt) in doShowFilter() argument
458 prompt_Printf(prompt, " %2d %s", n, filter_Action2Nam(fp->f_action)); in doShowFilter()
459 prompt_Printf(prompt, "%c ", fp->f_invert ? '!' : ' '); in doShowFilter()
462 prompt_Printf(prompt, "%s ", addrstr(&fp->f_src, fp->f_srctype)); in doShowFilter()
464 prompt_Printf(prompt, "any "); in doShowFilter()
467 prompt_Printf(prompt, "%s ", addrstr(&fp->f_dst, fp->f_dsttype)); in doShowFilter()
469 prompt_Printf(prompt, "any "); in doShowFilter()
473 prompt_Printf(prompt, "P:%d", fp->f_proto); in doShowFilter()
475 prompt_Printf(prompt, "%s", pe->p_name); in doShowFilter()
478 prompt_Printf(prompt, " src %s %d", filter_Op2Nam(fp->f_srcop), in doShowFilter()
[all …]
/freebsd/contrib/libfido2/tools/
H A Dpin.c24 char prompt[1024]; in pin_set() local
32 r = snprintf(prompt, sizeof(prompt), "Enter new PIN for %s: ", path); in pin_set()
33 if (r < 0 || (size_t)r >= sizeof(prompt)) { in pin_set()
38 if (!readpassphrase(prompt, pin1, sizeof(pin1), RPP_ECHO_OFF)) { in pin_set()
43 r = snprintf(prompt, sizeof(prompt), "Enter the same PIN again: "); in pin_set()
44 if (r < 0 || (size_t)r >= sizeof(prompt)) { in pin_set()
49 if (!readpassphrase(prompt, pin2, sizeof(pin2), RPP_ECHO_OFF)) { in pin_set()
84 char prompt[1024]; in pin_change() local
96 r = snprintf(prompt, sizeof(prompt), "Enter current PIN for %s: ", path); in pin_change()
97 if (r < 0 || (size_t)r >= sizeof(prompt)) { in pin_change()
[all …]
/freebsd/contrib/telnet/telnet/
H A Dmain.c87 prompt, in usage()
129 if ((prompt = strrchr(argv[0], '/'))) in main()
130 ++prompt; in main()
132 prompt = argv[0]; in main()
136 rlogin = (strncmp(prompt, "rlog", 4) == 0) ? '~' : _POSIX_VDISABLE; in main()
194 prompt, ": Bad TOS argument '", in main()
202 prompt, ": Bad TOS argument '", in main()
236 prompt); in main()
243 prompt); in main()
248 prompt); in main()
[all …]
/freebsd/usr.sbin/tzsetup/
H A Dtzsetup.c91 static void message_zoneinfo_file(const char *title, char *prompt);
99 char *prompt; member
120 listitems[i].name = ditems[i].prompt; in xdialog_menu()
188 char prompt[3]; member
213 char title[64], prompt[64]; in continent_country_menu() local
225 snprintf(prompt, sizeof(prompt), "Select a country or region"); in continent_country_menu()
229 snprintf(prompt, sizeof(prompt), "Select an island or group"); in continent_country_menu()
232 rv = xdialog_menu(title, prompt, contp->nitems, contp->menu); in continent_country_menu()
618 continents[i].prompt = continent_items[i].prompt; in make_menus()
640 asprintf(&dmi->prompt, "%d", ++cp->nzones); in make_menus()
[all …]
/freebsd/crypto/heimdal/appl/telnet/telnet/
H A Dmain.c65 fprintf(stderr, "Usage: %s %s%s%s%s\n", prompt, in usage()
172 if ((prompt = strrchr(argv[0], '/'))) in main()
173 ++prompt; in main()
175 prompt = argv[0]; in main()
179 rlogin = (strncmp(prompt, "rlog", 4) == 0) ? '~' : _POSIX_VDISABLE; in main()
233 prompt, ": Bad TOS argument '", in main()
239 prompt); in main()
267 prompt); in main()
274 prompt, ch); in main()
280 prompt); in main()
[all …]
/freebsd/lib/libdpv/
H A Ddialog_util.c341 dialog_prompt_numlines(const char *prompt, uint8_t nlstate) in dialog_prompt_numlines() argument
344 const char *cp = prompt; in dialog_prompt_numlines()
347 if (prompt == NULL || *prompt == '\0') in dialog_prompt_numlines()
380 dialog_prompt_longestline(const char *prompt, uint8_t nlstate) in dialog_prompt_longestline() argument
384 const char *p = prompt; in dialog_prompt_longestline()
389 if (prompt == NULL) in dialog_prompt_longestline()
391 if (*prompt == '\0') in dialog_prompt_longestline()
450 dialog_prompt_lastline(char *prompt, uint8_t nlstate) in dialog_prompt_lastline() argument
456 if (prompt == NULL) in dialog_prompt_lastline()
458 if (*prompt == '\0') in dialog_prompt_lastline()
[all …]
/freebsd/contrib/openpam/lib/libpam/
H A Dpam_get_user.c61 const char *prompt) in pam_get_user() argument
75 prompt = promptp; in pam_get_user()
77 if (prompt == NULL) { in pam_get_user()
80 prompt = promptp; in pam_get_user()
83 if (prompt == NULL) in pam_get_user()
84 prompt = user_prompt; in pam_get_user()
87 r = openpam_subst(pamh, prompt_buf, &prompt_size, prompt); in pam_get_user()
89 prompt = prompt_buf; in pam_get_user()
90 r = pam_prompt(pamh, PAM_PROMPT_ECHO_ON, &resp, "%s", prompt); in pam_get_user()
H A Dpam_get_authtok.c66 const char *prompt) in pam_get_authtok() argument
119 prompt = promptp; in pam_get_authtok()
121 if (prompt == NULL) { in pam_get_authtok()
124 prompt = promptp; in pam_get_authtok()
127 if (prompt == NULL) in pam_get_authtok()
128 prompt = default_prompt; in pam_get_authtok()
131 r = openpam_subst(pamh, prompt_buf, &prompt_size, prompt); in pam_get_authtok()
133 prompt = prompt_buf; in pam_get_authtok()
136 r = pam_prompt(pamh, style, &resp, "%s", prompt); in pam_get_authtok()
140 r = pam_prompt(pamh, style, &resp2, "Retype %s", prompt); in pam_get_authtok()
/freebsd/contrib/libcbor/
H A Drelease.sh8 function prompt() { function
26 prompt "Is the changelog correct and complete?"
30 prompt "Is the Doxyfile version correct?"
34 prompt "Is the CMake version correct?"
38 prompt "Is the version correct?"
42 prompt "Are the versions correct?"
67 prompt "Will proceed to tag the release with $TAG_NAME."
77 prompt "Have you added the release to https://github.com/PJK/libcbor/releases/tag/$TAG_NAME?"
81 prompt "Have you updated the formula?"
/freebsd/crypto/openssl/crypto/evp/
H A Devp_key.c24 void EVP_set_pw_prompt(const char *prompt) in EVP_set_pw_prompt() argument
26 if (prompt == NULL) in EVP_set_pw_prompt()
29 strncpy(prompt_string, prompt, 79); in EVP_set_pw_prompt()
47 int EVP_read_pw_string(char *buf, int len, const char *prompt, int verify) in EVP_read_pw_string() argument
49 return EVP_read_pw_string_min(buf, 0, len, prompt, verify); in EVP_read_pw_string()
52 int EVP_read_pw_string_min(char *buf, int min, int len, const char *prompt, in EVP_read_pw_string_min() argument
59 if ((prompt == NULL) && (prompt_string[0] != '\0')) in EVP_read_pw_string_min()
60 prompt = prompt_string; in EVP_read_pw_string_min()
64 if (UI_add_input_string(ui, prompt, 0, buf, min, in EVP_read_pw_string_min()
67 && UI_add_verify_string(ui, prompt, 0, buff, min, in EVP_read_pw_string_min()
/freebsd/crypto/heimdal/lib/hx509/
H A Dlock.c45 hx509_prompter_fct prompt; member
169 hx509_lock_set_prompter(hx509_lock lock, hx509_prompter_fct prompt, void *data) in hx509_lock_set_prompter() argument
171 lock->prompt = prompt; in hx509_lock_set_prompter()
179 lock->prompt = NULL; in hx509_lock_reset_promper()
189 prompter->prompt, in default_prompter()
195 fputs (prompter->prompt, stdout); in default_prompter()
207 hx509_lock_prompt(hx509_lock lock, hx509_prompt *prompt) in hx509_lock_prompt() argument
209 if (lock->prompt == NULL) in hx509_lock_prompt()
211 return (*lock->prompt)(lock->prompt_data, prompt); in hx509_lock_prompt()
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DIOHandler.cpp136 IOHandlerConfirm::IOHandlerConfirm(Debugger &debugger, llvm::StringRef prompt, in IOHandlerConfirm() argument
141 llvm::StringRef(), // No prompt in IOHandlerConfirm()
142 llvm::StringRef(), // No continuation prompt in IOHandlerConfirm()
144 false, // Don't colorize the prompt (i.e. the confirm message.) in IOHandlerConfirm()
148 prompt_stream.PutCString(prompt); in IOHandlerConfirm()
228 llvm::StringRef prompt, llvm::StringRef continuation_prompt, in IOHandlerEditline() argument
237 prompt, continuation_prompt, multi_line, color, in IOHandlerEditline()
245 llvm::StringRef prompt, llvm::StringRef continuation_prompt, in IOHandlerEditline() argument
256 SetPrompt(prompt); in IOHandlerEditline()
303 SetPrompt(prompt); in IOHandlerEditline()
359 const char *prompt = nullptr; GetLine() local
473 SetPrompt(llvm::StringRef prompt) SetPrompt() argument
488 SetContinuationPrompt(llvm::StringRef prompt) SetContinuationPrompt() argument
620 const char *prompt = GetPrompt(); PrintAsync() local
[all...]
/freebsd/share/examples/ppp/
H A Dlogin-auth47 text .l.prompt -width $pwidth -height 1 -relief flat;
48 .l.prompt insert 1.0 "Login:";
49 pack .l.prompt -side left;
50 .l.prompt configure -state disabled;
58 text .p.prompt -width $pwidth -height 1 -relief flat;
59 .p.prompt insert 1.0 "Password:";
60 pack .p.prompt -side left;
61 .p.prompt configure -state disabled;
H A Dchap-auth46 proc mkhalfframe { n prompt } {
50 text .$n.prompt -width $pwidth -height 1 -relief flat;
51 .$n.prompt insert 1.0 $prompt;
52 pack .$n.prompt -side left;
53 .$n.prompt configure -state disabled;
56 proc mkframe { n prompt value entry } {
59 mkhalfframe $n $prompt;
/freebsd/crypto/openssl/crypto/ui/
H A Dui_lib.c97 static UI_STRING *general_allocate_prompt(UI *ui, const char *prompt, in general_allocate_prompt() argument
104 if (prompt == NULL) { in general_allocate_prompt()
110 ret->out_string = prompt; in general_allocate_prompt()
119 static int general_allocate_string(UI *ui, const char *prompt, in general_allocate_string() argument
126 UI_STRING *s = general_allocate_prompt(ui, prompt, prompt_freeable, in general_allocate_string()
147 const char *prompt, in general_allocate_boolean() argument
170 s = general_allocate_prompt(ui, prompt, prompt_freeable, in general_allocate_boolean()
197 int UI_add_input_string(UI *ui, const char *prompt, int flags, in UI_add_input_string() argument
200 return general_allocate_string(ui, prompt, 0, in UI_add_input_string()
206 int UI_dup_input_string(UI *ui, const char *prompt, int flags, in UI_dup_input_string() argument
[all …]
/freebsd/crypto/openssh/
H A Dreadpass.c123 read_passphrase(const char *prompt, int flags) in read_passphrase() argument
181 if ((ret = ssh_askpass(askpass, prompt, askpass_hint)) == NULL) in read_passphrase()
187 if (readpassphrase(prompt, buf, sizeof buf, rppflags) == NULL) { in read_passphrase()
202 char *p, prompt[1024]; in ask_permission() local
206 vsnprintf(prompt, sizeof(prompt), fmt, args); in ask_permission()
209 p = read_passphrase(prompt, in ask_permission()
242 char *prompt = NULL; in notify_start() local
249 xvasprintf(&prompt, fmt, args); in notify_start()
255 writemsg(prompt); in notify_start()
274 free(prompt); in notify_start()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_create/
H A Dzfs_create_encrypted.ksh85 log_mustnot zfs create -o keylocation=prompt $TESTPOOL/$TESTFS1/c1
86 log_mustnot zfs create -o keyformat=passphrase -o keylocation=prompt \
90 log_mustnot zfs create -o encryption=off -o keylocation=prompt \
95 -o keylocation=prompt $TESTPOOL/$TESTFS1/c2
98 log_mustnot zfs create -o encryption=on -o keylocation=prompt \
110 log_mustnot zfs create -o keylocation=prompt $TESTPOOL/$TESTFS2/c2
119 log_mustnot zfs create -o encryption=off -o keylocation=prompt \
124 -o keylocation=prompt $TESTPOOL/$TESTFS2/c5
128 log_mustnot zfs create -o encryption=on -o keylocation=prompt \
/freebsd/contrib/dialog/
H A Dguage.c43 char *prompt; member
134 dlg_print_autowrap(dialog, obj->prompt, obj->height, obj->width); in repaint_text()
218 if (obj->prompt != obj->prompt_buf) in handle_input()
219 free(obj->prompt); in handle_input()
220 obj->prompt = obj->prompt_buf; in handle_input()
270 if (obj->prompt != obj->prompt_buf) { in my_cleanup()
271 free(obj->prompt); in my_cleanup()
272 obj->prompt = obj->prompt_buf; in my_cleanup()
304 char *prompt = dlg_strclone(cprompt); in dlg_reallocate_gauge() local
309 dlg_tab_correct_str(prompt); in dlg_reallocate_gauge()
[all …]

12345678910>>...17