/freebsd/contrib/kyua/utils/config/ |
H A D | tree_test.cpp | 37 namespace config = utils::config; 71 class wrapped_int_node : public config::typed_leaf_node< int_wrapper > { 91 config::typed_leaf_node< int_wrapper >::value().value()); in push_lua() 103 config::typed_leaf_node< int_wrapper >::set(new_value); in set_lua() 113 config::typed_leaf_node< int_wrapper >::set(new_value); in set_string() 123 config::typed_leaf_node< int_wrapper >::value().value(); in to_string() 134 config::tree tree; in ATF_TEST_CASE_BODY() 136 tree.define< config::int_node >("var1"); in ATF_TEST_CASE_BODY() 137 tree.define< config::string_node >("var2"); in ATF_TEST_CASE_BODY() 138 tree.define< config::bool_node >("var3"); in ATF_TEST_CASE_BODY() [all …]
|
H A D | lua_module_test.cpp | 40 namespace config = utils::config; 62 class custom_node : public config::typed_leaf_node< custom_type > { 125 config::tree tree; in ATF_TEST_CASE_BODY() 126 tree.define< config::bool_node >("top_boolean"); in ATF_TEST_CASE_BODY() 127 tree.define< config::int_node >("top_integer"); in ATF_TEST_CASE_BODY() 128 tree.define< config::string_node >("top_string"); in ATF_TEST_CASE_BODY() 132 config::redirect(state, tree); in ATF_TEST_CASE_BODY() 140 ATF_REQUIRE_EQ(true, tree.lookup< config::bool_node >("top_boolean")); in ATF_TEST_CASE_BODY() 141 ATF_REQUIRE_EQ(12345, tree.lookup< config::int_node >("top_integer")); in ATF_TEST_CASE_BODY() 142 ATF_REQUIRE_EQ("a foo", tree.lookup< config::string_node >("top_string")); in ATF_TEST_CASE_BODY() [all …]
|
H A D | parser_test.cpp | 41 namespace config = utils::config; 49 class mock_parser : public config::parser { 56 setup(config::tree& tree, const int syntax_version) in setup() 61 tree.define< config::string_node >("top_string"); in setup() 62 tree.define< config::int_node >("inner.int"); in setup() 74 mock_parser(config::tree& tree) : in mock_parser() 75 config::parser(tree) in mock_parser() 92 config::tree tree; in ATF_TEST_CASE_BODY() 94 ATF_REQUIRE_THROW(config::unknown_key_error, in ATF_TEST_CASE_BODY() 95 tree.lookup< config::string_node >("foo")); in ATF_TEST_CASE_BODY() [all …]
|
H A D | nodes_test.cpp | 39 namespace config = utils::config; 46 class validation_node : public config::int_node { 56 throw config::value_error("Custom validate method"); in validate() 62 class set_validation_node : public config::strings_set_node { 74 throw config::value_error("Custom validate method"); in validate() 85 config::bool_node node; in ATF_TEST_CASE_BODY() 87 config::detail::base_node* raw_copy = node.deep_copy(); in ATF_TEST_CASE_BODY() 88 config::bool_node* copy = static_cast< config::bool_node* >(raw_copy); in ATF_TEST_CASE_BODY() 100 config::bool_node node; in ATF_TEST_CASE_BODY() 110 config::bool_node node; in ATF_TEST_CASE_BODY() [all …]
|
/freebsd/contrib/processor-trace/libipt/test/src/ |
H A D | ptunit-config.c | 44 struct pt_config config; in from_user_null() local 47 errcode = pt_config_from_user(NULL, &config); in from_user_null() 50 errcode = pt_config_from_user(&config, NULL); in from_user_null() 58 struct pt_config config, user; in from_user_too_small() local 61 user.size = sizeof(config.size); in from_user_too_small() 63 errcode = pt_config_from_user(&config, &user); in from_user_too_small() 71 struct pt_config config, user; in from_user_bad_buffer() local 76 errcode = pt_config_from_user(&config, &user); in from_user_bad_buffer() 81 errcode = pt_config_from_user(&config, &user); in from_user_bad_buffer() 87 errcode = pt_config_from_user(&config, &user); in from_user_bad_buffer() [all …]
|
H A D | ptunit-sync.c | 43 struct pt_config config; member 54 memset(&sfix->config, 0, sizeof(sfix->config)); in sfix_init() 55 sfix->config.size = sizeof(sfix->config); in sfix_init() 56 sfix->config.begin = sfix->buffer; in sfix_init() 57 sfix->config.end = sfix->buffer + sizeof(sfix->buffer); in sfix_init() 81 errcode = pt_sync_forward(NULL, sfix->config.begin, &sfix->config); in sync_fwd_null() 84 errcode = pt_sync_forward(&sync, NULL, &sfix->config); in sync_fwd_null() 87 errcode = pt_sync_forward(&sync, sfix->config.begin, NULL); in sync_fwd_null() 98 errcode = pt_sync_backward(NULL, sfix->config.begin, &sfix->config); in sync_bwd_null() 101 errcode = pt_sync_backward(&sync, NULL, &sfix->config); in sync_bwd_null() [all …]
|
/freebsd/share/examples/sound/oss/ |
H A D | audio.c | 68 typedef struct config { struct 114 oss_split(config_t *config, sample_t *input, sample_t *output) in oss_split() argument 118 for (i = 0; i < config->sample_count; ++i) { in oss_split() 119 channel = i % config->channels; in oss_split() 120 index = i / config->channels; in oss_split() 130 oss_merge(config_t *config, sample_t *input, sample_t *output) in oss_merge() argument 134 for (channel = 0; channel < config->channels; ++channel) { in oss_merge() 135 for (index = 0; index < config->chsamples; ++index) { in oss_merge() 136 output[index * config->channels + channel] = in oss_merge() 143 oss_init(config_t *config) in oss_init() argument [all …]
|
/freebsd/sys/isa/ |
H A D | pnpparse.c | 61 struct isa_config *config, int ldn) in pnp_parse_desc() argument 100 if (config->ic_nirq == ISA_NIRQ) { in pnp_parse_desc() 106 config->ic_irqmask[config->ic_nirq] = 0; in pnp_parse_desc() 107 config->ic_nirq++; in pnp_parse_desc() 113 config->ic_irqmask[config->ic_nirq] = I16(res); in pnp_parse_desc() 114 config->ic_nirq++; in pnp_parse_desc() 118 if (config->ic_ndrq == ISA_NDRQ) { in pnp_parse_desc() 124 config->ic_drqmask[config->ic_ndrq] = 0; in pnp_parse_desc() 125 config->ic_ndrq++; in pnp_parse_desc() 131 config->ic_drqmask[config->ic_ndrq] = res[0]; in pnp_parse_desc() [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | config_file.c | 273 static int wpa_config_process_blob(struct wpa_config *config, FILE *f, in wpa_config_process_blob() argument 293 wpa_config_set_blob(config, blob); in wpa_config_process_blob() 307 struct wpa_config *config; in wpa_config_read() local 314 config = cfgp; in wpa_config_read() 316 config = wpa_config_alloc_empty(NULL, NULL); in wpa_config_read() 317 if (config == NULL) { in wpa_config_read() 322 tail = head = config->ssid; in wpa_config_read() 325 cred_tail = cred_head = config->cred; in wpa_config_read() 334 if (config != cfgp) in wpa_config_read() 335 os_free(config); in wpa_config_read() [all …]
|
/freebsd/contrib/netbsd-tests/lib/librefuse/ |
H A D | t_refuse_opt.c | 171 struct foofs_config *config = data; in foo_opt_proc() local 173 if (key == FUSE_OPT_KEY_NONOPT && config->nonopt == NULL) { in foo_opt_proc() 174 config->nonopt = strdup(arg); in foo_opt_proc() 190 struct foofs_config config; in ATF_TC_BODY() local 192 memset(&config, 0, sizeof(config)); in ATF_TC_BODY() 193 ATF_CHECK(fuse_opt_parse(NULL, &config, NULL, NULL) == 0); in ATF_TC_BODY() 194 ATF_CHECK_EQ(config.number, 0); in ATF_TC_BODY() 195 ATF_CHECK_EQ(config.string, NULL); in ATF_TC_BODY() 196 ATF_CHECK_EQ(config.nonopt, NULL); in ATF_TC_BODY() 208 struct foofs_config config; in ATF_TC_BODY() local [all …]
|
/freebsd/contrib/llvm-project/lld/ELF/ |
H A D | LTO.cpp | 47 return lto::getThinLTOOutputFile(modulePath, config->thinLTOPrefixReplaceOld, in getThinLTOOutputFile() 48 config->thinLTOPrefixReplaceNew); in getThinLTOOutputFile() 57 for (StringRef C : config->mllvmOpts) in createConfig() 64 c.Options.BBAddrMap = config->ltoBBAddrMap; in createConfig() 70 if (!config->ltoBasicBlockSections.empty()) { in createConfig() 71 if (config->ltoBasicBlockSections == "all") { in createConfig() 73 } else if (config->ltoBasicBlockSections == "labels") { in createConfig() 75 } else if (config->ltoBasicBlockSections == "none") { in createConfig() 79 MemoryBuffer::getFile(config->ltoBasicBlockSections.str()); in createConfig() 81 error("cannot open " + config->ltoBasicBlockSections + ":" + in createConfig() [all …]
|
H A D | Driver.cpp | 81 ConfigWrapper elf::config; member in elf 88 if (config->noinhibitExec) in errorOrWarn() 153 config = ConfigWrapper(); in link() 161 config->progName = args[0]; in link() 254 if (!config->fatLTOObjects) in tryAddFatLTOFile() 274 if (config->formatBinary) { in addFile() 328 if (config->isStatic) { in addFile() 380 if (config->emachine == EM_MIPS && config->gnuHash) in checkOptions() 383 if (config->emachine == EM_ARM) { in checkOptions() 384 if (!config->cmseImplib) { in checkOptions() [all …]
|
/freebsd/usr.bin/dpv/ |
H A D | dpv.c | 257 struct dpv_config *config; in main() local 264 if ((config = malloc(config_size)) == NULL) in main() 266 memset((void *)(config), '\0', config_size); in main() 275 if (config->aprompt == NULL) { in main() 276 config->aprompt = malloc(DPV_APROMPT_MAX); in main() 277 if (config->aprompt == NULL) in main() 280 snprintf(config->aprompt, DPV_APROMPT_MAX, "%s", in main() 284 if (config->backtitle != NULL) in main() 285 free((char *)config->backtitle); in main() 286 config->backtitle = malloc(strlen(optarg) + 1); in main() [all …]
|
/freebsd/contrib/bmake/mk/ |
H A D | autoconf.mk | 18 .NOPATH: config.h config.gen config.recheck config.status 20 CONFIGURE_DEPS += ${.CURDIR}/config.h.in ${.CURDIR}/configure 22 .if !target(config.h) 23 config.h: .NOTMAIN ${CONFIGURE_DEPS} config.status 24 ./config.status 30 .if !target(config [all...] |
/freebsd/sys/contrib/openzfs/contrib/pam_zfs_key/ |
H A D | pam_zfs_key.c | 449 zfs_key_config_load(pam_handle_t *pamh, zfs_key_config_t *config, in zfs_key_config_load() argument 452 config->homes_prefix = strdup("rpool/home"); in zfs_key_config_load() 453 if (config->homes_prefix == NULL) { in zfs_key_config_load() 457 config->runstatedir = strdup(RUNSTATEDIR "/pam_zfs_key"); in zfs_key_config_load() 458 if (config->runstatedir == NULL) { in zfs_key_config_load() 460 free(config->homes_prefix); in zfs_key_config_load() 467 free(config->runstatedir); in zfs_key_config_load() 468 free(config->homes_prefix); in zfs_key_config_load() 473 free(config->runstatedir); in zfs_key_config_load() 474 free(config->homes_prefix); in zfs_key_config_load() [all …]
|
/freebsd/contrib/llvm-project/lld/COFF/ |
H A D | Driver.cpp | 153 assert(ctx.config.machine != IMAGE_FILE_MACHINE_UNKNOWN); in mangle() 154 if (ctx.config.machine == I386) in mangle() 160 return getMachineArchType(ctx.config.machine); in getArch() 218 if (ctx.config.mingw) { in addBuffer() 354 (!ctx.config.mingw && sym.contains('@')); in isDecorated() 380 if (ctx.config.machine == I386 && ctx.config.mingw) { in parseDirectives() 387 ctx.config.exports.push_back(exp); in parseDirectives() 418 ctx.config.entry = addUndefined(mangle(arg->getValue())); in parseDirectives() 427 ctx.config.manifestDependencies.insert(arg->getValue()); in parseDirectives() 433 ctx.config.noDefaultLibs.insert(findLib(arg->getValue()).lower()); in parseDirectives() [all …]
|
H A D | LTO.cpp | 47 return lto::getThinLTOOutputFile(path, ctx.config.thinLTOPrefixReplaceOld, in getThinLTOOutputFile() 48 ctx.config.thinLTOPrefixReplaceNew); in getThinLTOOutputFile() 55 for (StringRef C : ctx.config.mllvmOpts) in createConfig() 66 if (ctx.config.machine == COFF::IMAGE_FILE_MACHINE_I386) in createConfig() 76 c.DwoDir = ctx.config.dwoDir.str(); in createConfig() 77 c.OptLevel = ctx.config.ltoo; in createConfig() 81 ctx.config.ltoCgo.value_or(args::getCGOptLevel(ctx.config.ltoo))); in createConfig() 84 c.AlwaysEmitRegularLTOObj = !ctx.config.ltoObjPath.empty(); in createConfig() 85 c.DebugPassManager = ctx.config.ltoDebugPassManager; in createConfig() 86 c.CSIRProfile = std::string(ctx.config.ltoCSProfileFile); in createConfig() [all …]
|
/freebsd/contrib/kyua/engine/ |
H A D | config.cpp | 46 namespace config = utils::config; 61 init_tree(config::tree& tree) in init_tree() 63 tree.define< config::string_node >("architecture"); in init_tree() 64 tree.define< config::strings_set_node >("execenvs"); in init_tree() 65 tree.define< config::positive_int_node >("parallelism"); in init_tree() 66 tree.define< config::string_node >("platform"); in init_tree() 77 set_defaults(config::tree& tree) in set_defaults() 79 tree.set< config::string_node >("architecture", KYUA_ARCHITECTURE); in set_defaults() 86 tree.set< config::strings_set_node >("execenvs", supported); in set_defaults() 91 tree.set< config::positive_int_node >("parallelism", 1); in set_defaults() [all …]
|
/freebsd/contrib/processor-trace/libipt/src/ |
H A D | pt_packet.c | 53 const struct pt_config *config) in pt_pkt_read_unknown() argument 59 if (!packet || !pos || !config) in pt_pkt_read_unknown() 62 decode = config->decode.callback; in pt_pkt_read_unknown() 73 size = (*decode)(&packet->payload.unknown, config, pos, in pt_pkt_read_unknown() 74 config->decode.context); in pt_pkt_read_unknown() 84 if (config->end < pos + size) in pt_pkt_read_unknown() 90 int pt_pkt_read_psb(const uint8_t *pos, const struct pt_config *config) in pt_pkt_read_psb() argument 94 if (!pos || !config) in pt_pkt_read_psb() 97 if (config->end < pos + ptps_psb) in pt_pkt_read_psb() 136 const struct pt_config *config) in pt_pkt_read_ip() argument [all …]
|
/freebsd/contrib/llvm-project/lld/MachO/ |
H A D | LTO.cpp | 37 return lto::getThinLTOOutputFile(modulePath, config->thinLTOPrefixReplaceOld, in openFile() 38 config->thinLTOPrefixReplaceNew); in openFile() 44 c.Options.EmitAddrsig = config->icfLevel == ICFLevel::safe; in openFile() 45 for (StringRef C : config->mllvmOpts) in openFile() 55 c.AlwaysEmitRegularLTOObj = !config->ltoObjPath.empty(); in createConfig() 57 c.TimeTraceEnabled = config->timeTraceEnabled; in createConfig() 58 c.TimeTraceGranularity = config->timeTraceGranularity; in createConfig() 59 c.DebugPassManager = config->ltoDebugPassManager; in createConfig() 60 c.CSIRProfile = std::string(config->csProfilePath); in createConfig() 61 c.RunCSIRInstr = config in createConfig() [all...] |
/freebsd/contrib/kyua/model/ |
H A D | metadata.cpp | 51 namespace config = utils::config; 67 static optional< config::tree > defaults; 71 class bytes_node : public config::native_leaf_node< units::bytes > { 101 class delta_node : public config::typed_leaf_node< datetime::delta > { 126 throw config::value_error(F("Invalid time delta %s") % raw_value); in set_string() 162 class user_node : public config::string_node { 183 throw config::value_error("Invalid required user value"); in validate() 193 class paths_set_node : public config::base_set_node< fs::path > { 218 throw config::value_error(e.what()); in parse_one() 234 throw config::value_error(F("Relative path '%s' not allowed") % in validate() [all …]
|
/freebsd/crypto/openssl/ |
H A D | Configure | 23 use OpenSSL::config; 233 our %config = (); 274 $config{sourcedir} = abs2rel($srcdir, $blddir); 275 $config{builddir} = abs2rel($blddir, $blddir); 277 $config{FIPSKEY} = 294 @argvcopy = defined($configdata::config{perlargv}) ? 295 @{$configdata::config{perlargv}} : (); 298 $config{perlenv} = $configdata::config{perlenv} // {}; 304 $config{perlargv} = [ @argvcopy ]; 339 $config{major} = $version{MAJOR} // 'unknown'; [all …]
|
/freebsd/contrib/mandoc/ |
H A D | Makefile.depend | 1 arch.o: arch.c config.h roff.h 2 att.o: att.c config.h roff.h libmdoc.h 3 catman.o: catman.c config.h compat_fts.h 4 cgi.o: cgi.c config.h mandoc_aux.h mandoc.h roff.h mdoc.h man.h mandoc_parse.h main.h manconf.h man… 5 chars.o: chars.c config.h mandoc.h mandoc_aux.h mandoc_ohash.h compat_ohash.h libmandoc.h 6 compat_err.o: compat_err.c config.h 7 compat_fts.o: compat_fts.c config.h compat_fts.h 8 compat_getline.o: compat_getline.c config.h 9 compat_getsubopt.o: compat_getsubopt.c config.h 10 compat_isblank.o: compat_isblank.c config.h [all …]
|
/freebsd/sys/contrib/device-tree/src/arm/st/ |
H A D | ste-dbx5x0-pinctrl.dtsi | 18 ste,config = <&in_pu>; 22 ste,config = <&out_hi>; 29 ste,config = <&slpm_in_wkup_pdis>; 33 ste,config = <&slpm_out_hi_wkup_pdis>; 37 ste,config = <&slpm_out_wkup_pdis>; 50 ste,config = <&in_pu>; 54 ste,config = <&out_hi>; 61 ste,config = <&slpm_in_wkup_pdis>; 65 ste,config = <&slpm_out_wkup_pdis>; 76 ste,config = <&in_pu>; [all …]
|
/freebsd/tools/tools/genericize/ |
H A D | genericize.pl | 40 my %config; 55 $config{$keyword}->{$1} = $2; 57 $config{$keyword}->{$value} = \&EMPTY; 93 $config{$keyword} && $config{$keyword}->{$1} && 94 $config{$keyword}->{$1} != \&EMPTY) { 96 if ($config{$keyword}->{$value} ne $2) { 97 my ($old, $new) = ($2, $config{$keyword}->{$value}); 100 delete($config{$keyword}->{$value}); 101 delete($config{$keyword}) 102 unless %{$config{$keyword}}; [all …]
|