Lines Matching refs:prog

47 static char prog[40];  variable
82 if (n > sizeof(prog) - 1) in opt_progname()
83 n = sizeof(prog) - 1; in opt_progname()
84 for (q = prog, i = 0; i < n; i++, p++) in opt_progname()
87 return prog; in opt_progname()
112 if (prog != p) in opt_progname()
113 strncpy(prog, p, sizeof(prog) - 1); in opt_progname()
114 prog[sizeof(prog) - 1] = '\0'; in opt_progname()
115 if (q != NULL && q - p < sizeof(prog)) in opt_progname()
116 prog[q - p] = '\0'; in opt_progname()
117 return prog; in opt_progname()
140 if (prog != p) in opt_progname()
141 strncpy(prog, p, sizeof(prog) - 1); in opt_progname()
142 prog[sizeof(prog) - 1] = '\0'; in opt_progname()
143 return prog; in opt_progname()
149 size_t len = strlen(prog); in opt_appname()
152 BIO_snprintf(prog + len, sizeof(prog) - len - 1, " %s", argv0); in opt_appname()
153 return prog; in opt_appname()
158 return prog; in opt_getprog()
212 prog, o->name); in opt_init()
224 return prog; in opt_init()
252 opt_printf_stderr("%s: Bad format \"%s\"; must be one of: ", prog, s); in opt_format_error()
266 opt_printf_stderr("%s: Bad format \"%s\"\n", prog, s); in opt_format()
345 opt_printf_stderr("%s: Bad format \"%s\"\n", prog, s); in opt_format()
421 opt_printf_stderr("%s: Unknown option or cipher: %s\n", prog, name); in opt_cipher_any()
437 opt_printf_stderr("%s XTS ciphers not supported\n", prog); in opt_cipher()
439 opt_printf_stderr("%s: AEAD ciphers not supported\n", prog); in opt_cipher()
481 prog, name); in opt_md()
503 opt_printf_stderr("%s: Value must be one of:\n", prog); in opt_pair()
517 opt_printf_stderr("%s: Value must be one of:\n", prog); in opt_string()
533 prog, value); in opt_int()
563 prog, v, b[i].name); in opt_number_error()
567 opt_printf_stderr("%s: Can't parse \"%s\" as a number\n", prog, v); in opt_number_error()
726 opt_printf_stderr("%s: Invalid Policy %s\n", prog, opt_arg()); in opt_verify()
732 prog, opt_arg()); in opt_verify()
740 opt_printf_stderr("%s: Invalid purpose %s\n", prog, opt_arg()); in opt_verify()
752 prog, opt_arg()); in opt_verify()
760 prog, opt_arg()); in opt_verify()
780 prog, opt_arg()); in opt_verify()
921 prog, p); in opt_next()
931 prog, o->name); in opt_next()
950 opt_printf_stderr("%s: Not a directory: %s\n", prog, arg); in opt_next()
965 prog, arg, o->name); in opt_next()
970 prog, arg, o->name); in opt_next()
1004 prog, arg, o->name); in opt_next()
1014 prog, unknown_name, dunno, p); in opt_next()
1020 opt_printf_stderr("%s: Unknown option: -%s\n", prog, p); in opt_next()
1072 opt_printf_stderr("%s: Missing argument: %s\n", prog, expected); in opt_check_rest_arg()
1079 opt_printf_stderr("%s: Extra argument after %s: \"%s\"\n", prog, expected, opt); in opt_check_rest_arg()
1083 opt_printf_stderr("%s: Extra option: \"%s\"\n", prog, opt); in opt_check_rest_arg()
1086 prog, opt_unknown(), opt); in opt_check_rest_arg()
1143 opt_printf_stderr(help, prog); in opt_print()
1147 opt_printf_stderr(help, prog); in opt_print()
1217 opt_printf_stderr("Usage: %s [options]\n", prog); in opt_help()
1219 opt_printf_stderr("Valid options are:\n", prog); in opt_help()