/freebsd/crypto/openssh/regress/unittests/misc/ |
H A D | test_argv.c | 29 int ac = 0; in test_argv() local 33 argv_free(av, ac); \ in test_argv() 35 ac = -1; \ in test_argv() 39 ASSERT_INT_EQ(argv_split("", &ac, &av, 0), 0); in test_argv() 40 ASSERT_INT_EQ(ac, 0); in test_argv() 44 ASSERT_INT_EQ(argv_split(" ", &ac, &av, 0), 0); in test_argv() 45 ASSERT_INT_EQ(ac, 0); in test_argv() 52 ASSERT_INT_EQ(argv_split("leamas", &ac, &av, 0), 0); in test_argv() 53 ASSERT_INT_EQ(ac, 1); in test_argv() 58 ASSERT_INT_EQ(argv_split("smiley leamas", &ac, &av, 0), 0); in test_argv() [all …]
|
/freebsd/usr.sbin/devctl/ |
H A D | devctl.c | 39 int (*handler)(int ac, char **av); 53 devctl_ ## name ## _table_handler(int ac, char **av) \ 56 SET_LIMIT(DEVCTL_DATASET(name)), ac, av)); \ 61 struct devctl_command **end, int ac, char **av); 92 struct devctl_command **end, int ac, char **av) in devctl_table_handler() argument 96 if (ac < 2) { in devctl_table_handler() 102 return ((*cmd)->handler(ac - 1, av + 1)); in devctl_table_handler() 110 help(int ac __unused, char **av __unused) in help() 119 attach(int ac, char **av) in attach() argument 122 if (ac != 2) in attach() [all …]
|
/freebsd/sbin/ipfw/ |
H A D | main.c | 108 int ch, ac; in ipfw_main() local 154 for (i = 0, ac = 1; i < l; i++) in ipfw_main() 156 ac++; in ipfw_main() 165 ac++; /* add 1 for the program name */ in ipfw_main() 166 av_size = (ac+1) * sizeof(char *) + l + 1; in ipfw_main() 174 av_p = (char *)&av[ac+1]; in ipfw_main() 175 for (ac = 1, i = j = 0; i < l; i++) { in ipfw_main() 180 av[ac] = av_p; in ipfw_main() 183 ac++; in ipfw_main() 212 for (first = i = ac = 1, l = 0; i < oldac; i++) { in ipfw_main() [all …]
|
H A D | nat64lsn.c | 58 static void nat64lsn_create(const char *name, uint8_t set, int ac, char **av); 59 static void nat64lsn_config(const char *name, uint8_t set, int ac, char **av); 202 ipfw_nat64lsn_stats_handler(const char *name, uint8_t set, int ac, char *av[]) in ipfw_nat64lsn_stats_handler() argument 206 if (ac == 0) { in ipfw_nat64lsn_stats_handler() 225 ipfw_nat64lsn_list_handler(const char *name, uint8_t set, int ac, char *av[]) in ipfw_nat64lsn_list_handler() argument 229 if (ac == 0) { in ipfw_nat64lsn_list_handler() 253 ipfw_nat64lsn_handler(int ac, char *av[]) in ipfw_nat64lsn_handler() argument 263 ac--; av++; in ipfw_nat64lsn_handler() 274 ac--; av++; in ipfw_nat64lsn_handler() 282 ac--; av++; in ipfw_nat64lsn_handler() [all …]
|
H A D | nat64stl.c | 55 static void nat64stl_create(const char *name, uint8_t set, int ac, char **av); 56 static void nat64stl_config(const char *name, uint8_t set, int ac, char **av); 122 ipfw_nat64stl_handler(int ac, char *av[]) in ipfw_nat64stl_handler() argument 132 ac--; av++; in ipfw_nat64stl_handler() 143 ac--; av++; in ipfw_nat64stl_handler() 151 ac--; av++; in ipfw_nat64stl_handler() 152 nat64stl_create(name, set, ac, av); in ipfw_nat64stl_handler() 155 ac--; av++; in ipfw_nat64stl_handler() 156 nat64stl_config(name, set, ac, av); in ipfw_nat64stl_handler() 168 ac--; av++; in ipfw_nat64stl_handler() [all …]
|
H A D | nat.c | 321 estimate_redir_addr(int *ac, char ***av) in estimate_redir_addr() argument 327 (void)ac; /* UNUSED */ in estimate_redir_addr() 342 setup_redir_addr(char *buf, int *ac, char ***av) in setup_redir_addr() argument 373 (*av)++; (*ac)--; in setup_redir_addr() 377 (*av)++; (*ac)--; in setup_redir_addr() 383 estimate_redir_port(int *ac, char ***av) in estimate_redir_port() argument 389 (void)ac; /* UNUSED */ in estimate_redir_port() 404 setup_redir_port(char *buf, int *ac, char ***av) in setup_redir_port() argument 425 (*av)++; (*ac)--; in setup_redir_port() 458 (*av)++; (*ac)--; in setup_redir_port() [all …]
|
H A D | dummynet.c | 1025 process_extra_parms(int *ac, char **av, struct dn_extra_parms *ep, in process_extra_parms() argument 1047 while (*ac > 0) { in process_extra_parms() 1049 (*ac)--; av++; in process_extra_parms() 1052 if (*ac <= 0 || time_to_us(av[0]) < 0) in process_extra_parms() 1056 (*ac)--; av++; in process_extra_parms() 1060 if (*ac <= 0 || time_to_us(av[0]) < 0) in process_extra_parms() 1064 (*ac)--; av++; in process_extra_parms() 1077 if (*ac <= 0 || !is_valid_number(av[0])) in process_extra_parms() 1081 (*ac)--; av++; in process_extra_parms() 1087 if (*ac < in process_extra_parms() 1277 ipfw_config_pipe(int ac,char ** av) ipfw_config_pipe() argument 1882 parse_range(int ac,char * av[],uint32_t * v,int len) parse_range() argument 1936 dummynet_list(int ac,char * av[],int show_counters) dummynet_list() argument [all...] |
H A D | nat64clat.c | 56 static void nat64clat_create(const char *name, uint8_t set, int ac, char **av); 57 static void nat64clat_config(const char *name, uint8_t set, int ac, char **av); 90 ipfw_nat64clat_handler(int ac, char *av[]) in ipfw_nat64clat_handler() argument 100 ac--; av++; in ipfw_nat64clat_handler() 111 ac--; av++; in ipfw_nat64clat_handler() 119 ac--; av++; in ipfw_nat64clat_handler() 120 nat64clat_create(name, set, ac, av); in ipfw_nat64clat_handler() 123 ac--; av++; in ipfw_nat64clat_handler() 124 nat64clat_config(name, set, ac, av); in ipfw_nat64clat_handler() 136 ac--; av++; in ipfw_nat64clat_handler() [all …]
|
/freebsd/contrib/one-true-awk/testdir/ |
H A D | T.int-expr | 18 ac 1 22 ac 1 26 ac 1 30 ac 1 34 ac 1 38 ac 1 42 ac 1 46 ac 1 50 ac 0 55 ac 0 [all …]
|
/freebsd/crypto/heimdal/lib/gssapi/krb5/ |
H A D | export_sec_context.c | 46 krb5_auth_context ac; in _gsskrb5_export_sec_context() local 70 ac = ctx->auth_context; in _gsskrb5_export_sec_context() 75 if (ac->local_address) in _gsskrb5_export_sec_context() 77 if (ac->remote_address) in _gsskrb5_export_sec_context() 79 if (ac->keyblock) in _gsskrb5_export_sec_context() 81 if (ac->local_subkey) in _gsskrb5_export_sec_context() 83 if (ac->remote_subkey) in _gsskrb5_export_sec_context() 94 kret = krb5_store_int32 (sp, ac->flags); in _gsskrb5_export_sec_context() 99 if (ac->local_address) { in _gsskrb5_export_sec_context() 100 kret = krb5_store_address (sp, *ac->local_address); in _gsskrb5_export_sec_context() [all …]
|
H A D | import_sec_context.c | 47 krb5_auth_context ac; in _gsskrb5_import_sec_context() local 95 ac = ctx->auth_context; in _gsskrb5_import_sec_context() 98 ac->flags = tmp; in _gsskrb5_import_sec_context() 109 krb5_auth_con_setaddrs (context, ac, localp, remotep); in _gsskrb5_import_sec_context() 116 if (krb5_ret_int16 (sp, &ac->local_port) != 0) in _gsskrb5_import_sec_context() 119 if (krb5_ret_int16 (sp, &ac->remote_port) != 0) in _gsskrb5_import_sec_context() 124 krb5_auth_con_setkey (context, ac, &keyblock); in _gsskrb5_import_sec_context() 130 krb5_auth_con_setlocalsubkey (context, ac, &keyblock); in _gsskrb5_import_sec_context() 136 krb5_auth_con_setremotesubkey (context, ac, &keyblock); in _gsskrb5_import_sec_context() 139 if (krb5_ret_uint32 (sp, &ac->local_seqnumber)) in _gsskrb5_import_sec_context() [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | wmm_ac.c | 76 u8 ac = up_to_ac[up]; in wmm_ac_add_ts() local 82 if (wpa_s->tspecs[ac][idx]) { in wmm_ac_add_ts() 85 ac, dir); in wmm_ac_add_ts() 106 wpa_s->tspecs[ac][idx] = _tspec; in wmm_ac_add_ts() 118 static void wmm_ac_del_ts_idx(struct wpa_supplicant *wpa_s, u8 ac, in wmm_ac_del_ts_idx() argument 121 struct wmm_tspec_element *tspec = wpa_s->tspecs[ac][dir]; in wmm_ac_del_ts_idx() 128 wpa_printf(MSG_DEBUG, "WMM AC: Del TS ac=%d tsid=%d", ac, tsid); in wmm_ac_del_ts_idx() 137 os_free(wpa_s->tspecs[ac][dir]); in wmm_ac_del_ts_idx() 138 wpa_s->tspecs[ac][dir] = NULL; in wmm_ac_del_ts_idx() 244 int ac; in wmm_ac_find_tsid() local [all …]
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | mk_req_ext.c | 50 krb5_auth_context ac; in _krb5_mk_req_internal() local 57 ac = *auth_context; in _krb5_mk_req_internal() 59 ret = krb5_auth_con_init(context, &ac); in _krb5_mk_req_internal() 63 if(ac->local_subkey == NULL && (ap_req_options & AP_OPTS_USE_SUBKEY)) { in _krb5_mk_req_internal() 65 ac, in _krb5_mk_req_internal() 71 krb5_free_keyblock(context, ac->keyblock); in _krb5_mk_req_internal() 72 ret = krb5_copy_keyblock(context, &in_creds->session, &ac->keyblock); in _krb5_mk_req_internal() 82 if(ac->keyblock->keytype == ETYPE_DES_CBC_CRC) { in _krb5_mk_req_internal() 91 } else if(ac->keyblock->keytype == ETYPE_ARCFOUR_HMAC_MD5 || in _krb5_mk_req_internal() 92 ac->keyblock->keytype == ETYPE_ARCFOUR_HMAC_MD5_56 || in _krb5_mk_req_internal() [all …]
|
/freebsd/sys/dev/atopcase/ |
H A D | atopcase.c | 143 struct atopcase_child *ac; in atopcase_process_message() local 171 if ((ac = atopcase_get_child_by_device(sc, device)) != NULL in atopcase_process_message() 173 if (ac->open) in atopcase_process_message() 174 ac->intr_handler(ac->intr_ctx, payload, pl_len); in atopcase_process_message() 177 && (ac = atopcase_get_child_by_device(sc, hdr->type_arg)) != NULL) { in atopcase_process_message() 179 CPOFF(ac->name, iface->name_len, iface->name_off); in atopcase_process_message() 180 DPRINTF("Interface #%d name: %s\n", ac->device, ac->name); in atopcase_process_message() 183 && (ac = atopcase_get_child_by_device(sc, hdr->type_arg)) != NULL) { in atopcase_process_message() 184 memcpy(ac->rdesc, payload, pl_len); in atopcase_process_message() 185 ac->rdesc_len = ac->hw.rdescsize = pl_len; in atopcase_process_message() [all …]
|
/freebsd/sbin/devfs/ |
H A D | rule.c | 52 static void rulespec_intok(struct devfs_rule *dr, int ac, char **av, 81 rule_main(int ac, char **av) in rule_main() argument 88 while ((ch = getopt(ac, av, "s:")) != -1) in rule_main() 96 ac -= optind; in rule_main() 98 if (ac < 1) in rule_main() 103 exit((*c->handler)(ac, av)); in rule_main() 108 rule_add(int ac, char **av) in rule_add() argument 113 if (ac < 2) in rule_add() 118 rulespec_intok(&dr, ac - 1, av + 1, in_rsnum); in rule_add() 127 rule_apply(int ac __unused, char **av __unused) in rule_apply() [all …]
|
/freebsd/contrib/wpa/src/ap/ |
H A D | wmm.c | 47 int ac; in wmm_set_regulatory_limit() local 49 for (ac = 0; ac < WMM_AC_NUM; ac++) { in wmm_set_regulatory_limit() 50 wmm[ac].cwmin = MAX(wmm_conf[ac].cwmin, wmm_reg[ac].min_cwmin); in wmm_set_regulatory_limit() 51 wmm[ac].cwmax = MAX(wmm_conf[ac].cwmax, wmm_reg[ac].min_cwmax); in wmm_set_regulatory_limit() 52 wmm[ac].aifs = MAX(wmm_conf[ac].aifs, wmm_reg[ac].min_aifs); in wmm_set_regulatory_limit() 53 wmm[ac].txop_limit = in wmm_set_regulatory_limit() 54 MIN(wmm_conf[ac].txop_limit, wmm_reg[ac].max_txop); in wmm_set_regulatory_limit() 55 wmm[ac].admission_control_mandatory = in wmm_set_regulatory_limit() 56 wmm_conf[ac].admission_control_mandatory; in wmm_set_regulatory_limit() 132 struct wmm_ac_parameter *ac = &wmm->ac[e]; in hostapd_eid_wmm() local [all …]
|
/freebsd/tests/sys/aio/ |
H A D | aio_test.c | 136 aio_context_init(struct aio_context *ac, int read_fd, in aio_context_init() argument 143 bzero(ac, sizeof(*ac)); in aio_context_init() 144 ac->ac_read_fd = read_fd; in aio_context_init() 145 ac->ac_write_fd = write_fd; in aio_context_init() 146 ac->ac_buflen = buflen; in aio_context_init() 148 ac->ac_seed = random(); in aio_context_init() 149 aio_fill_buffer(ac->ac_buffer, buflen, ac->ac_seed); in aio_context_init() 150 ATF_REQUIRE_MSG(aio_test_buffer(ac->ac_buffer, buflen, in aio_context_init() 151 ac->ac_seed) != 0, "aio_test_buffer: internal error"); in aio_context_init() 301 aio_write_test(struct aio_context *ac, completion comp, struct sigevent *sev) in aio_write_test() argument [all …]
|
/freebsd/usr.bin/split/tests/ |
H A D | split_test.sh | 36 printf "ccc\n" > foo-ac 42 atf_check -o file:foo-ac cat split-ac 51 jot -ns "" -b "c" 12 > foo-ac 57 atf_check -o file:foo-ac cat split-ac 72 jot -ns "" -b "c" 4100 > foo-ac 77 atf_check -o file:foo-ac cat split-ac 85 echo "the lazy dog" > foo-ac 91 atf_check -o file:foo-ac cat split-ac 98 atf_check -o file:foo-ac cat split-ac 103 cat foo-ac > foo-ab-ng [all …]
|
/freebsd/usr.sbin/ngctl/ |
H A D | main.c | 72 static int DoCommand(int ac, char **av); 77 static int ReadCmd(int ac, char **av); 78 static int HelpCmd(int ac, char **av); 79 static int QuitCmd(int ac, char **av); 138 main(int ac, char *av[]) in main() argument 149 while ((ch = getopt(ac, av, "df:n:")) != -1) { in main() 169 ac -= optind; in main() 177 if (ac == 0) { in main() 185 rtn = DoCommand(ac, av); in main() 430 int ac; in DoParseCommand() local [all …]
|
/freebsd/usr.sbin/mfiutil/ |
H A D | mfi_drive.c | 435 fail_drive(int ac, char **av) in fail_drive() argument 438 if (ac != 2) { in fail_drive() 439 warnx("fail: %s", ac > 2 ? "extra arguments" : in fail_drive() 449 good_drive(int ac, char **av) in good_drive() argument 452 if (ac != 2) { in good_drive() 453 warnx("good: %s", ac > 2 ? "extra arguments" : in good_drive() 463 rebuild_drive(int ac, char **av) in rebuild_drive() argument 466 if (ac != 2) { in rebuild_drive() 467 warnx("rebuild: %s", ac > 2 ? "extra arguments" : in rebuild_drive() 477 syspd_drive(int ac, char **av) in syspd_drive() argument [all …]
|
H A D | mfi_volume.c | 183 process_cache_command(int ac, char **av, struct mfi_ld_props *props) in process_cache_command() argument 224 if (ac < 2) { in process_cache_command() 243 if (ac < 2) { in process_cache_command() 265 if (ac < 2) { in process_cache_command() 287 volume_cache(int ac, char **av) in volume_cache() argument 293 if (ac < 2) { in volume_cache() 319 if (ac == 2) { in volume_cache() 372 ac -= 2; in volume_cache() 373 while (ac > 0) { in volume_cache() 374 consumed = process_cache_command(ac, av, &new); in volume_cache() [all …]
|
H A D | mfi_foreign.c | 45 foreign_clear(__unused int ac, __unused char **av) in foreign_clear() argument 82 foreign_scan(__unused int ac, __unused char **av) in foreign_scan() argument 212 display_format(int ac, char **av, int diagnostic, mfi_dcmd_t display_cmd) in display_format() argument 218 if (ac > 2) { in display_format() 244 if (ac == 1) { in display_format() 255 } else if (ac == 2) { in display_format() 269 foreign_display(int ac, char **av) in foreign_display() argument 271 return(display_format(ac, av, 1/*diagnostic output*/, MFI_DCMD_CFG_FOREIGN_DISPLAY)); in foreign_display() 276 foreign_preview(int ac, char **av) in foreign_preview() argument 278 return(display_format(ac, av, 1/*diagnostic output*/, MFI_DCMD_CFG_FOREIGN_PREVIEW)); in foreign_preview() [all …]
|
H A D | mfi_properties.c | 69 mfi_ctrl_rebuild_rate(int ac, char **av) in mfi_ctrl_rebuild_rate() argument 74 if (ac > 2) { in mfi_ctrl_rebuild_rate() 96 if (ac > 1) { in mfi_ctrl_rebuild_rate() 97 ctrl_props.rebuild_rate = atoi(av[ac - 1]); in mfi_ctrl_rebuild_rate() 121 mfi_ctrl_alarm_enable(int ac, char **av) in mfi_ctrl_alarm_enable() argument 126 if (ac > 2) { in mfi_ctrl_alarm_enable() 148 if (ac > 1) { in mfi_ctrl_alarm_enable() 149 ctrl_props.alarm_enable = atoi(av[ac - 1]); in mfi_ctrl_alarm_enable()
|
/freebsd/contrib/mandoc/ |
H A D | mdoc_macro.c | 479 enum margserr ac; in append_delims() local 486 ac = mdoc_args(mdoc, line, pos, buf, TOKEN_NONE, &p); in append_delims() 487 if (ac == ARGS_EOLN) in append_delims() 505 if (ac == ARGS_ALLOC) in append_delims() 553 enum margserr ac; in blk_exp_close() local 728 ac = mdoc_args(mdoc, line, pos, buf, tok, &p); in blk_exp_close() 729 if (ac == ARGS_PUNCT || ac == ARGS_EOLN) in blk_exp_close() 737 if (ac == ARGS_ALLOC) in blk_exp_close() 741 if (ac == ARGS_ALLOC) in blk_exp_close() 772 enum margserr ac; in in_line() local [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_write_set_format_mtree.c | 568 struct attr_counter *ac; in attr_counter_new() 570 ac = malloc(sizeof(*ac)); in attr_counter_new() 571 if (ac != NULL) { in attr_counter_new() 572 ac->prev = prev; in attr_counter_new() 573 ac->next = NULL; in attr_counter_new() 574 ac->count = 1; in attr_counter_new() 575 ac->m_entry = me; in attr_counter_new() 577 return (ac); in attr_counter_new() 583 struct attr_counter *ac, *ta in attr_counter_free() 569 struct attr_counter *ac; attr_counter_new() local 584 struct attr_counter *ac, *tac; attr_counter_free() local 598 attr_counter_inc(struct attr_counter ** top,struct attr_counter * ac,struct attr_counter * last,struct mtree_entry * me) attr_counter_inc() argument 641 struct attr_counter *ac, *last; attr_counter_set_collect() local [all...] |