/freebsd-src/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() 56 ASSERT_PTR_EQ(av[1], NULL); in test_argv() [all …]
|
/freebsd-src/contrib/wpa/wpa_supplicant/ |
H A D | wmm_ac.c | 2 * Wi-Fi Multimedia Admission Control (WMM-AC) 37 return (tspec->ts_info[0] >> 1) & 0x0f; in wmm_ac_get_tsid() 49 return (tspec->ts_info[1] >> 3) & 0x07; in wmm_ac_get_user_priority() 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() 84 "WMM AC: tspec (ac=%d, dir=%d) already exists!", in wmm_ac_add_ts() 85 ac, dir); in wmm_ac_add_ts() 86 return -1; in wmm_ac_add_ts() 92 return -1; in wmm_ac_add_ts() 118 wmm_ac_del_ts_idx(struct wpa_supplicant * wpa_s,u8 ac,enum ts_dir_idx dir) wmm_ac_del_ts_idx() argument 244 int ac; wmm_ac_find_tsid() local 269 u8 ac = up_to_ac[params->user_priority]; wmm_ac_build_addts_req() local 329 wmm_ac_should_replace_ts(struct wpa_supplicant * wpa_s,u8 tsid,u8 ac,u8 dir) wmm_ac_should_replace_ts() argument 467 u8 ac; wmm_ac_init() local 500 wmm_ac_del_ts(struct wpa_supplicant * wpa_s,u8 ac,int dir_bitmap) wmm_ac_del_ts() argument 552 int ac; wpas_wmm_ac_delts() local 634 int ac; wmm_ac_handle_delts() local 664 u8 ac, tsid, up, dir; wmm_ac_handle_addts_resp() local 815 get_ac_str(u8 ac) get_ac_str() argument 852 u8 ac, up; wpas_wmm_ac_status() local 909 int ac, dir, tspecs_count = 0; wmm_ac_get_tspecs_count() local 924 int ac, dir, tspecs_count; wmm_ac_save_tspecs() local [all...] |
/freebsd-src/usr.sbin/devctl/ |
H A D | devctl.c | 7 * 1. Redistributions of source code must retain the above copyright 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); 87 exit(1); in usage() 92 struct devctl_command **end, int ac, char **av) in devctl_table_handler() argument 96 if (ac < 2) { in devctl_table_handler() 101 if (strcmp((*cmd)->name, av[1]) == 0) in devctl_table_handler() 102 return ((*cmd)->handler(ac - 1, av + 1)); in devctl_table_handler() [all …]
|
/freebsd-src/contrib/one-true-awk/testdir/ |
H A D | T.int-expr | 9 $1 == "pat" { pattern = $2; next } 11 check = ($1 ~ pattern) 12 printf("%s ~ /%s/ -> should be %d, is %d\n", $1, pattern, $2, check) 18 ac 1 22 ac 1 26 ac 1 30 ac 1 34 ac 1 35 abc 1 38 ac 1 [all …]
|
/freebsd-src/share/misc/ |
H A D | usb_hid_usages | 11 1 Generic Desktop 171 0x51 1 Iron 185 0x5F 1 Wood 263 0x1E Keyboard 1 and ! 322 0x59 Keypad 1 and End 587 0x9A Confirmation Tone 1 593 0xB1 Phone Key 1 806 0x1AB AC Spell Check 835 0x201 AC New 836 0x202 AC Open [all …]
|
/freebsd-src/sbin/ipfw/ |
H A D | main.c | 96 * Returns 0 if successful, 1 if empty command, errx() in case of errors. 108 int ch, ac; in ipfw_main() local 118 return 1; /* need at least one argument */ in ipfw_main() 126 char *arg = oldav[1]; /* The string is the first arg. */ in ipfw_main() 128 int copy = 0; /* 1 if we need to copy, 0 otherwise */ in ipfw_main() 148 return 1; in ipfw_main() 152 * processing, this is just the number of blanks plus 1. in ipfw_main() 154 for (i = 0, ac = 1; i < l; i++) in ipfw_main() 156 ac in ipfw_main() 514 ipfw_readfile(int ac,char * av[]) ipfw_readfile() argument 671 main(int ac,char * av[]) main() argument [all...] |
H A D | nat64lsn.c | 12 * 1. Redistributions of source code must retain the above copyright 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); 95 od = (ipfw_obj_data *)(oh + 1); in nat64lsn_print_states() 96 stg = (ipfw_nat64lsn_stg_v1 *)(od + 1); in nat64lsn_print_states() 112 ste = (ipfw_nat64lsn_state_v1 *)(stg + 1); in nat64lsn_print_states() 175 if ((buf = calloc(1, sz)) == NULL) in nat64lsn_states_cb() 179 oh->opheader.version = 1; /* Force using ov new API */ in nat64lsn_states_cb() 180 od = (ipfw_obj_data *)(oh + 1); in nat64lsn_states_cb() 184 *((uint64_t *)(od + 1)) = next_idx; in nat64lsn_states_cb() [all …]
|
H A D | nat64stl.c | 11 * 1. Redistributions of source code must retain the above copyright 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); 78 (a)->__u6_addr.__u6_addr32[1] == 0 && \ 122 ipfw_nat64stl_handler(int ac, char *av[]) in ipfw_nat64stl_handler() argument 129 set = g_co.use_set - 1; in ipfw_nat64stl_handler() 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() [all …]
|
H A D | nat.c | 94 mib[1] = PF_ROUTE; in set_addr_dynamic() 102 if (sysctl(mib, 6, NULL, &needed, NULL, 0) == -1) in set_addr_dynamic() 103 err(1, "iflist-sysctl-estimate"); in set_addr_dynamic() 104 buf = safe_calloc(1, needed); in set_addr_dynamic() 105 if (sysctl(mib, 6, buf, &needed, NULL, 0) == -1) in set_addr_dynamic() 106 err(1, "iflist-sysctl-get"); in set_addr_dynamic() 126 sdl = (struct sockaddr_dl *)(ifm + 1); in set_addr_dynamic() 135 errx(1, "unknown interface name %s", ifn); in set_addr_dynamic() 153 char *cp = (char *)(ifam + 1); in set_addr_dynamic() 155 for (i = 1; in set_addr_dynamic() 321 estimate_redir_addr(int * ac,char *** av) estimate_redir_addr() argument 342 setup_redir_addr(char * buf,int * ac,char *** av) setup_redir_addr() argument 383 estimate_redir_port(int * ac,char *** av) estimate_redir_port() argument 404 setup_redir_port(char * buf,int * ac,char *** av) setup_redir_port() argument 568 setup_redir_proto(char * buf,int * ac,char *** av) setup_redir_proto() argument 778 ipfw_config_nat(int ac,char ** av) ipfw_config_nat() argument 1143 ipfw_show_nat(int ac,char ** av) ipfw_show_nat() argument [all...] |
H A D | dummynet.c | 152 CODEL_ECN_ENABLED = 1 157 PIE_ECN_ENABLED = 1, 165 #define PIE_SCALE (1L<<PIE_FIX_POINT_BITS) 184 * returns -1 if s is not a valid time, otherwise, return time in us 194 return -1; in time_to_us() 198 return -1; in time_to_us() 204 return -1; in time_to_us() 218 return -1; in time_to_us() 233 ep = safe_calloc(1, l); in get_extra_parms() 252 us_to_time(ep->par[1], strt2); in get_extra_parms() [all …]
|
/freebsd-src/sbin/devfs/ |
H A D | rule.c | 10 * 1. Redistributions of source code must retain the above copyright 52 static void rulespec_intok(struct devfs_rule *dr, int ac, char **av, 75 { NULL, -1 } 81 rule_main(int ac, char **av) in rule_main() argument 87 optreset = optind = 1; in rule_main() 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() 104 errx(1, "unknown command: %s", av[0]); in rule_main() [all …]
|
/freebsd-src/usr.bin/split/tests/ |
H A D | split_test.sh | 9 # 1. Redistributions of source code must retain the above copyright 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 88 atf_check split -l 1 foo split- 91 atf_check -o file:foo-ac cat split-ac [all …]
|
/freebsd-src/share/man/man4/ |
H A D | iwlwifi.4 | 12 .\" 1. Redistributions of source code must retain the above copyright 35 .Nd Intel IEEE 802.11a/b/g/n/ac/ax wireless network driver 114 .\" seen[$2]=1; printf ".It\n%s\n", $2; }' iwlwifi_pci_ids_name.txt 117 Intel(R) Dual Band Wireless AC 7260 123 Intel(R) Dual Band Wireless AC 3160 129 Intel(R) Dual Band Wireless AC 3165 131 Intel(R) Dual Band Wireless AC 3168 133 Intel(R) Dual Band Wireless AC 7265 139 Intel(R) Dual Band Wireless AC 8260 143 Intel(R) Dual Band Wireless AC 416 [all...] |
H A D | iwm.4 | 10 .\" 1. Redistributions of source code must retain the above copyright 34 .Nd Intel IEEE 802.11ac wireless network driver 84 driver supports running most Intel Wireless AC series network devices in 101 Intel Dual Band Wireless AC 3160 103 Intel Dual Band Wireless AC 3165 105 Intel Dual Band Wireless AC 3168 107 Intel Dual Band Wireless AC 7260 109 Intel Dual Band Wireless AC 7265 111 Intel Dual Band Wireless AC 8260 113 Intel Dual Band Wireless AC 826 [all...] |
/freebsd-src/tests/sys/aio/ |
H A D | aio_test.c | 8 * 1. Redistributions of source code must retain the above copyright 114 * (1) on a match, (0) on a mismatch. 128 return (1); in aio_test_buffer() 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() [all …]
|
/freebsd-src/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXUtilities.cpp | 44 static AnnotationCache AC; in getAnnotationCache() 45 return AC; 50 auto &AC = getAnnotationCache(); in clearAnnotationCache() 51 std::lock_guard<sys::Mutex> Guard(AC.Lock); in clearAnnotationCache() 52 AC.Cache.erase(Mod); 66 auto &AC = getAnnotationCache(); in cacheAnnotationFromMD() 67 std::lock_guard<sys::Mutex> Guard(AC.Lock); in cacheAnnotationFromMD() 69 assert((MetadataNode->getNumOperands() % 2) == 1 && in cacheAnnotationFromMD() 71 // start index = 1, to skip the global variable key in cacheAnnotationFromMD() 73 for (unsigned i = 1, in cacheAnnotationFromMD() 42 static AnnotationCache AC; getAnnotationCache() local 48 auto &AC = getAnnotationCache(); clearAnnotationCache() local 54 auto &AC = getAnnotationCache(); cacheAnnotationFromMD() local 81 auto &AC = getAnnotationCache(); cacheAnnotationFromMD() local 116 auto &AC = getAnnotationCache(); findOneNVVMAnnotation() local 131 auto &AC = getAnnotationCache(); findAllNVVMAnnotation() local [all...] |
/freebsd-src/contrib/wpa/src/ap/ |
H A D | wmm.c | 47 int ac; 49 for (ac = 0; ac < WMM_AC_NUM; ac++) { 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] in wmm_set_regulatory_limit() 54 int ac; wmm_set_regulatory_limit() local 139 struct wmm_ac_parameter *ac = &wmm->ac[e]; hostapd_eid_wmm() local [all...] |
/freebsd-src/usr.bin/tip/libacu/ |
H A D | v831.c | 13 * 1. Redistributions of source code must retain the above copyright 42 static pid_t child = -1; 60 if ((AC = open(acu, O_RDWR)) < 0) { in v831_dialer() 69 close(AC); in v831_dialer() 98 close(AC); in v831_dialer() 103 while ((pid = wait(&status)) != child && pid != -1) in v831_dialer() 106 close(AC); in v831_dialer() 109 return (1); in v831_dialer() 117 longjmp(jmpbuf, 1); in alarmtr() 148 printf("[abort: AC=%d]\n", AC); in v831_abort() [all …]
|
/freebsd-src/share/man/man5/ |
H A D | rc.conf.5 | 7 .\" 1. Redistributions of source code must retain the above copyright 80 .Ao Ar dir Ac Ns Pa /rc.conf.d 82 .Ao Ar dir Ac 105 .Ao Ar dir Ac Ns Pa /rc.conf.d/ Ns Ao Ar name Ac 114 .Xr sh 1 193 .It Ao Ar name Ac Ns Va _chroot 197 .It Ao Ar name Ac Ns Va _cpuset 201 .Xr cpuset 1 205 .It Ao Ar name Ac N [all...] |
/freebsd-src/crypto/heimdal/lib/gssapi/krb5/ |
H A D | export_sec_context.c | 10 * 1. Redistributions of source code must retain the above copyright 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() [all …]
|
/freebsd-src/sys/dev/atopcase/ |
H A D | atopcase.c | 10 * 1. Redistributions of source code must retain the above copyright 143 struct atopcase_child *ac; in atopcase_process_message() local 168 (dst)[MIN(_len, sizeof(dst) - 1)] = '\0'; \ in atopcase_process_message() 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 in atopcase_process_message() 439 atopcase_add_child(struct atopcase_softc * sc,struct atopcase_child * ac,uint8_t device) atopcase_add_child() argument 574 struct atopcase_child *ac = atopcase_get_child_by_hidbus(child); atopcase_intr_setup() local 597 struct atopcase_child *ac = atopcase_get_child_by_hidbus(child); atopcase_intr_start() local 620 struct atopcase_child *ac = atopcase_get_child_by_hidbus(child); atopcase_intr_stop() local 650 struct atopcase_child *ac = atopcase_get_child_by_hidbus(child); atopcase_get_rdesc() local 664 struct atopcase_child *ac = atopcase_get_child_by_hidbus(child); atopcase_set_report() local [all...] |
/freebsd-src/usr.sbin/ngctl/ |
H A D | main.c | 12 * 1. Any and all reproductions of the source or object code must include the 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 141 int interactive = isatty(0) && isatty(1); in main() 149 while ((ch = getopt(ac, av, "df:n:")) != -1) { in main() 152 NgSetDebug(NgSetDebug(-1) + 1); in main() 169 ac -= optind; in main() [all …]
|
/freebsd-src/crypto/heimdal/lib/krb5/ |
H A D | mk_req_ext.c | 10 * 1. Redistributions of source code must retain the above copyright 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() [all …]
|
/freebsd-src/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
H A D | TypeErasedDataflowAnalysis.cpp | 159 AnalysisContext &AC; in AnalysisContext() 167 return {AC.Analysis.joinTypeErased(L.Lattice, R.Lattice), 168 Environment::join(L.Env, R.Env, AC.Analysis, JoinBehavior)}; 172 JoinedStateBuilder(AnalysisContext &AC, 174 : AC(AC), JoinBehavior(JoinBehavior) {} 188 return {AC.Analysis.typeErasedInitialElement(), AC.InitEnv.fork()}; in print() 189 if (All.size() == 1) 195 AC 223 AnalysisContext &AC; global() member in clang::dataflow::__anonad1e11cc0211::JoinedStateBuilder 235 JoinedStateBuilder(AnalysisContext & AC) JoinedStateBuilder() argument 276 computeBlockInputState(const CFGBlock & Block,AnalysisContext & AC) computeBlockInputState() argument 350 builtinTransferStatement(unsigned CurBlockID,const CFGStmt & Elt,TypeErasedDataflowAnalysisState & InputState,AnalysisContext & AC) builtinTransferStatement() argument 423 builtinTransfer(unsigned CurBlockID,const CFGElement & Elt,TypeErasedDataflowAnalysisState & State,AnalysisContext & AC) builtinTransfer() argument 455 transferCFGBlock(const CFGBlock & Block,AnalysisContext & AC,std::function<void (const CFGElement &,const TypeErasedDataflowAnalysisState &)> PostVisitCFG=nullptr) transferCFGBlock() argument 542 AnalysisContext AC(CFCtx, Analysis, StartingEnv, BlockStates); runTypeErasedDataflowAnalysis() local [all...] |
/freebsd-src/contrib/libarchive/libarchive/ |
H A D | archive_write_set_format_mtree.c | 9 * 1. Redistributions of source code must retain the above copyright 187 #define F_SHA1 0x00004000 /* SHA-1 digest */ 308 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 10 - 1F */ 310 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* 20 - 2F */ 312 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, /* 30 - 3F */ 314 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* 40 - 4F */ 316 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, /* 50 - 5F */ 318 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* 60 - 6F */ 320 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, /* 70 - 7F */ 345 buf[1] = (c / 64) + '0'; in mtree_quote() [all …]
|