/freebsd/contrib/libarchive/unzip/ |
H A D | bsdunzip.c | 1183 int nopts; in main() local 1210 nopts = getopts(argc, argv); in main() 1224 if (argc <= nopts) in main() 1226 zipfile = argv[nopts++]; in main() 1233 while (nopts < argc && *argv[nopts] != '-') in main() 1234 add_pattern(&include, argv[nopts++]); in main() 1236 nopts--; /* fake argv[0] */ in main() 1237 nopts += getopts(argc - nopts, argv + nopts); in main() 1245 while (nopts < argc && *argv[nopts] != '-') in main() 1246 add_pattern(&exclude, argv[nopts++]); in main() [all …]
|
/freebsd/sbin/ifconfig/ |
H A D | ifmedia.c | 329 size_t nopts; in get_media_options() local 342 nopts = 0; in get_media_options() 344 ++nopts; in get_media_options() 345 if (nopts == 0) { in get_media_options() 349 optnames = calloc(nopts, sizeof(*optnames)); in get_media_options() 353 for (size_t i = 0; i < nopts; ++i) { in get_media_options() 361 options = ifconfig_media_lookup_options(media, optnames, nopts); in get_media_options() 365 for (size_t i = 0; i < nopts; ++i) { in get_media_options()
|
/freebsd/crypto/openssh/ |
H A D | ssh-sk.c | 402 size_t nopts = *noptsp; in sshsk_add_option() local 404 if ((opts = recallocarray(opts, nopts, nopts + 2, /* extra for NULL */ in sshsk_add_option() 410 *noptsp = nopts + 1; in sshsk_add_option() 411 if ((opts[nopts] = calloc(1, sizeof(**opts))) == NULL) { in sshsk_add_option() 415 if ((opts[nopts]->name = strdup(name)) == NULL || in sshsk_add_option() 416 (opts[nopts]->value = strdup(value)) == NULL) { in sshsk_add_option() 420 opts[nopts]->required = required; in sshsk_add_option() 429 size_t nopts = 0; in make_options() local 433 (r = sshsk_add_option(&opts, &nopts, "device", device, 0)) != 0) { in make_options() 438 (r = sshsk_add_option(&opts, &nopts, "user", user_id, 0)) != 0) { in make_options() [all …]
|
H A D | ssh-keygen.c | 1525 int print_generic, char * const *opts, size_t nopts) in do_print_resource_record() argument 1533 for (i = 0; i < nopts; i++) { in do_print_resource_record() 2703 sig_process_opts(char * const *opts, size_t nopts, char **hashalgp, in sig_process_opts() argument 2715 for (i = 0; i < nopts; i++) { in sig_process_opts() 2747 int argc, char **argv, char * const *opts, size_t nopts) in sig_sign() argument 2763 if (sig_process_opts(opts, nopts, &hashalg, NULL, NULL) != 0) in sig_sign() 2830 char * const *opts, size_t nopts) in sig_verify() argument 2840 if (sig_process_opts(opts, nopts, NULL, &verify_time, in sig_verify() 2921 char * const *opts, size_t nopts) in sig_find_principals() argument 2929 if (sig_process_opts(opts, nopts, NULL, &verify_time, NULL) != 0) in sig_find_principals() [all …]
|
/freebsd/lib/libifconfig/ |
H A D | libifconfig_media.c | 397 ifconfig_media_lookup_options(ifmedia_t media, const char **opts, size_t nopts) in ifconfig_media_lookup_options() argument 404 assert(nopts > 0); in ifconfig_media_lookup_options() 412 options = calloc(nopts, sizeof(*options)); in ifconfig_media_lookup_options() 415 (void)memset(options, INVALID_IFMEDIA, nopts * sizeof(ifmedia_t)); in ifconfig_media_lookup_options() 419 for (size_t j = 0; j < nopts; ++j) { in ifconfig_media_lookup_options()
|
H A D | libifconfig.h | 270 size_t nopts);
|
/freebsd/contrib/libfido2/openbsd-compat/ |
H A D | getopt_long.c | 133 int cstart, cyclelen, i, j, ncycle, nnonopts, nopts, pos; in permute_args() local 140 nopts = opt_end - panonopt_end; in permute_args() 141 ncycle = gcd(nnonopts, nopts); in permute_args() 151 pos += nopts; in permute_args()
|
/freebsd/contrib/llvm-project/lldb/source/Host/common/ |
H A D | GetOptInc.cpp | 79 int cstart, cyclelen, i, j, ncycle, nnonopts, nopts, pos; in permute_args() local 86 nopts = opt_end - panonopt_end; in permute_args() 87 ncycle = gcd(nnonopts, nopts); in permute_args() 97 pos += nopts; in permute_args()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | getopt_long.c | 156 int cstart, cyclelen, i, j, ncycle, nnonopts, nopts, pos; in permute_args() local 163 nopts = opt_end - panonopt_end; in permute_args() 164 ncycle = gcd(nnonopts, nopts); in permute_args() 174 pos += nopts; in permute_args()
|
/freebsd/contrib/file/src/ |
H A D | getopt_long.c | 143 int cstart, cyclelen, i, j, ncycle, nnonopts, nopts, pos; local 152 nopts = opt_end - panonopt_end; 153 ncycle = gcd(nnonopts, nopts); 163 pos += nopts;
|
/freebsd/lib/libc/stdlib/ |
H A D | getopt_long.c | 150 int cstart, cyclelen, i, j, ncycle, nnonopts, nopts, pos; in permute_args() local 157 nopts = opt_end - panonopt_end; in permute_args() 158 ncycle = gcd(nnonopts, nopts); in permute_args() 168 pos += nopts; in permute_args()
|
/freebsd/contrib/tcpdump/missing/ |
H A D | getopt_long.c | 144 int cstart, cyclelen, i, j, ncycle, nnonopts, nopts, pos; in permute_args() local 151 nopts = opt_end - panonopt_end; in permute_args() 152 ncycle = gcd(nnonopts, nopts); in permute_args() 162 pos += nopts; in permute_args()
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_dof.c | 920 int i, nopts = 0, len = sizeof (dof_hdr_t) + in dtrace_getopt_dof() local 925 nopts++; in dtrace_getopt_dof() 928 len += sizeof (dof_optdesc_t) * nopts; in dtrace_getopt_dof() 953 sec->dofs_size = sizeof (dof_optdesc_t) * nopts; in dtrace_getopt_dof()
|
/freebsd/sys/contrib/openzfs/cmd/zed/ |
H A D | zed_conf.c | 125 struct opt nopts[] = { in _zed_conf_display_help() local 155 for (oo = nopts; oo->o; ++oo) in _zed_conf_display_help()
|