Home
last modified time | relevance | path

Searched full:prompt (Results 1 – 25 of 973) sorted by relevance

12345678910>>...39

/freebsd/usr.sbin/ppp/
H A Dlog.c43 #include "prompt.h"
79 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
[all …]
H A Dprompt.h40 struct prompt { struct
48 unsigned nonewline : 1; /* need a newline before our prompt ? */ argument
49 unsigned needprompt : 1; /* Show a prompt at the next UpdateSet() */ argument
50 unsigned active : 1; /* Is the prompt active (^Z) */ argument
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 *, ...)
[all …]
H A Dprompt.c51 #include "prompt.h"
83 prompt_Display(struct prompt *p) in prompt_Display()
135 struct prompt *p = descriptor2prompt(d); in prompt_UpdateSet()
146 log_Printf(LogTIMER, "prompt %s: fdset(r) %d\n", p->src.from, p->fd_in); in prompt_UpdateSet()
151 log_Printf(LogTIMER, "prompt %s: fdset(e) %d\n", p->src.from, p->fd_in); 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()
199 p->nonewline = 1; /* Maybe command_Decode does a prompt */ in prompt_Read()
[all …]
H A Dmain.c92 #include "prompt.h"
109 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()
[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/openpam/lib/libpam/
H A Dpam_get_user.c61 const char *prompt) in pam_get_user() argument
75 prompt = promptp; in pam_get_user()
76 /* no prompt provided, see if there is one tucked away somewhere */ 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()
[all …]
H A Dpam_get_authtok.c66 const char *prompt) in pam_get_authtok() argument
119 prompt = promptp; in pam_get_authtok()
120 /* no prompt provided, see if there is one tucked away somewhere */ 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()
[all …]
/freebsd/crypto/openssl/include/openssl/
H A Dui.h.in59 The following functions are used to add strings to be printed and prompt
60 strings to prompt for data. The names are UI_{add,dup}_<function>_string
64 add add a text or prompt string. The pointers given to these
66 dup make a copy of the text or prompt string, then add the copy
71 input use the string as data prompt.
72 verify use the string as verification prompt. This
80 and are typically used when one wants to prompt for a yes/no response.
82 All of the functions in this group take a UI and a prompt string.
101 int UI_add_input_string(UI *ui, const char *prompt, int flags,
103 int UI_dup_input_string(UI *ui, const char *prompt, int flags,
[all …]
H A Dui.h58 The following functions are used to add strings to be printed and prompt
59 strings to prompt for data. The names are UI_{add,dup}_<function>_string
63 add add a text or prompt string. The pointers given to these
65 dup make a copy of the text or prompt string, then add the copy
70 input use the string as data prompt.
71 verify use the string as verification prompt. This
79 and are typically used when one wants to prompt for a yes/no response.
81 All of the functions in this group take a UI and a prompt string.
100 int UI_add_input_string(UI *ui, const char *prompt, int flags,
102 int UI_dup_input_string(UI *ui, const char *prompt, int flags,
[all …]
/freebsd/contrib/pam-krb5/module/
H A Dprompting.c2 * Prompt users for information.
30 * Build a password prompt.
32 * The default prompt is simply "Password:". Optionally, a string describing
48 * passes the prompt back to the client.
59 char *prompt, *tmp; in build_password_prompt() local
72 /* Build the part of the prompt without the principal name. */ in build_password_prompt()
88 retval = asprintf(&prompt, "%s for %s: ", tmp, principal); in build_password_prompt()
90 retval = asprintf(&prompt, "%s: ", tmp); in build_password_prompt()
98 return prompt; in build_password_prompt()
108 * Prompt for a password.
[all …]
/freebsd/contrib/openpam/doc/man/
H A Dpam_get_authtok.312 .Fn pam_get_authtok "pam_handle_t *pamh" "int item" "const char **authtok" "const char *prompt"
38 .Fa prompt
39 argument specifies a prompt to use if no token is cached.
50 a hardcoded default prompt will be used.
54 the prompt may be affected by module options as described below.
55 The prompt is then expanded using
81 Prompt to use when
86 .Fa prompt
96 Prompt to use when
101 .Fa prompt
[all …]
H A Dpam_get_user.312 .Fn pam_get_user "pam_handle_t *pamh" "const char **user" "const char *prompt"
22 will prompt for a user name.
30 .Fa prompt
31 argument specifies a prompt to use if no user name is
40 a hardcoded default prompt will be used.
44 prompt may be affected by module options as described below.
45 The prompt is then expanded using
56 Prompt to use when asking for the user name.
58 .Fa prompt
/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/share/doc/smm/03.fsck/
H A D4.t69 prints a prompt message and
191 Possible responses to the OK prompt are:
204 Possible responses to the SET TO DEFAULT prompt are:
219 Possible responses to the SET TO DEFAULT prompt are:
232 Possible responses to the SET TO DEFAULT prompt are:
244 Possible responses to the SET TO DEFAULT prompt are:
298 Possible responses to the CONTINUE prompt are:
323 Possible responses to the CONTINUE prompt are:
361 Possible responses to the CONTINUE prompt are:
414 Possible responses to the CLEAR prompt are:
[all …]
/freebsd/crypto/krb5/src/lib/krb5/krb/
H A Dgic_pwd.c26 krb5_prompt prompt; in krb5_get_as_key_password() local
80 prompt.prompt = promptstr; in krb5_get_as_key_password()
81 prompt.hidden = 1; in krb5_get_as_key_password()
82 prompt.reply = &pw; in krb5_get_as_key_password()
87 ret = (*prompter)(context, prompter_data, NULL, NULL, 1, &prompt); in krb5_get_as_key_password()
192 krb5_prompt prompt[2]; in krb5_get_init_creds_password() local
193 krb5_prompt_type prompt_types[sizeof(prompt)/sizeof(prompt[0])]; in krb5_get_init_creds_password()
216 /* historically the default has been to prompt for password change. in krb5_get_init_creds_password()
217 * if the change password prompt option has not been set, we continue in krb5_get_init_creds_password()
218 * to prompt. Prompting is only disabled if the option has been set in krb5_get_init_creds_password()
[all …]
/freebsd/lib/libdpv/
H A Ddialog_util.c217 * Spawn an [X]dialog(1) `--gauge' box with a `--prompt' value of init_prompt.
288 * `--gauge' widget prompt-updates. Add it anyway (in-case it in dialog_spawn_gauge()
337 * Returns the number of lines in buffer pointed to by `prompt'. Takes both
341 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()
376 * `prompt'. Takes newlines and escaped newlines into account. Also discounts
380 dialog_prompt_longestline(const char *prompt, uint8_t nlstate) in dialog_prompt_longestline() argument
384 const char *p = prompt; in dialog_prompt_longestline()
388 /* `prompt' parameter is required */ in dialog_prompt_longestline()
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DUI_new.pod25 int UI_add_input_string(UI *ui, const char *prompt, int flags,
27 int UI_dup_input_string(UI *ui, const char *prompt, int flags,
29 int UI_add_verify_string(UI *ui, const char *prompt, int flags,
32 int UI_dup_verify_string(UI *ui, const char *prompt, int flags,
35 int UI_add_input_boolean(UI *ui, const char *prompt, const char *action_desc,
38 int UI_dup_input_boolean(UI *ui, const char *prompt, const char *action_desc,
71 prompt the user for text-based information. Through user-written methods
77 contains all the information needed to prompt correctly as well as a
87 and UI_get_result_length() to find the result to the prompt and its length.
89 A UI can contain more than one prompt, which are performed in the given
[all …]
/freebsd/secure/lib/libcrypto/man/man3/
H A DUI_new.384 \& int UI_add_input_string(UI *ui, const char *prompt, int flags,
86 \& int UI_dup_input_string(UI *ui, const char *prompt, int flags,
88 \& int UI_add_verify_string(UI *ui, const char *prompt, int flags,
91 \& int UI_dup_verify_string(UI *ui, const char *prompt, int flags,
94 \& int UI_add_input_boolean(UI *ui, const char *prompt, const char *action_desc,
97 \& int UI_dup_input_boolean(UI *ui, const char *prompt, const char *action_desc,
130 prompt the user for text-based information. Through user-written methods
136 contains all the information needed to prompt correctly as well as a
146 and \fBUI_get_result_length()\fR to find the result to the prompt and its length.
148 A UI can contain more than one prompt, which are performed in the given
[all …]
/freebsd/crypto/openssl/crypto/ui/
H A Dui_lib.c95 static UI_STRING *general_allocate_prompt(UI *ui, const char *prompt, in general_allocate_prompt() argument
102 if (prompt == NULL) { in general_allocate_prompt()
108 ret->out_string = prompt; in general_allocate_prompt()
117 static int general_allocate_string(UI *ui, const char *prompt, in general_allocate_string() argument
124 UI_STRING *s = general_allocate_prompt(ui, prompt, prompt_freeable, in general_allocate_string()
145 const char *prompt, in general_allocate_boolean() argument
168 s = general_allocate_prompt(ui, prompt, prompt_freeable, in general_allocate_boolean()
193 * direct reference to the prompt.
195 int UI_add_input_string(UI *ui, const char *prompt, int flags, in UI_add_input_string() argument
198 return general_allocate_string(ui, prompt, 0, in UI_add_input_string()
[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/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/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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_create/
H A Dzfs_create_encrypted.ksh86 log_mustnot zfs create -o keylocation=prompt $TESTPOOL/$TESTFS1/c1
87 log_mustnot zfs create -o keyformat=passphrase -o keylocation=prompt \
91 log_mustnot zfs create -o encryption=off -o keylocation=prompt \
96 -o keylocation=prompt $TESTPOOL/$TESTFS1/c2
99 log_mustnot zfs create -o encryption=on -o keylocation=prompt \
104 "-o keyformat=passphrase -o keylocation=prompt $TESTPOOL/$TESTFS1/c4"
111 log_mustnot zfs create -o keylocation=prompt $TESTPOOL/$TESTFS2/c2
115 "-o keylocation=prompt $TESTPOOL/$TESTFS2/c4"
120 log_mustnot zfs create -o encryption=off -o keylocation=prompt \
125 -o keylocation=prompt $TESTPOOL/$TESTFS2/c5
[all …]
/freebsd/share/examples/ppp/
H A Dlogin-auth33 set pwidth 11; # Prompt field width
47 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;
/freebsd/contrib/libedit/
H A Dprompt.c1 /* $NetBSD: prompt.c,v 1.27 2017/06/27 23:25:13 christos Exp $ */
38 static char sccsid[] = "@(#)prompt.c 8.1 (Berkeley) 6/4/93";
40 __RCSID("$NetBSD: prompt.c,v 1.27 2017/06/27 23:25:13 christos Exp $");
45 * prompt.c: Prompt printing functions
54 * Just a default prompt, in case the user did not provide one
80 * Print the prompt and update the prompt position.
120 * Initialize the prompt stuff
139 * Clean up the prompt stuff
149 * Install a prompt printing function
181 * Retrieve the prompt printing function

12345678910>>...39