| /freebsd/crypto/openssh/.github/workflows/ |
| H A D | c-cpp.yml | 5 ….m4', '**.sh', '**/Makefile.in', 'configure.ac', '.github/configs', '.github/workflows/c-cpp.yml' ] 7 ….m4', '**.sh', '**/Makefile.in', 'configure.ac', '.github/configs', '.github/workflows/c-cpp.yml' ] 11 name: "${{ matrix.target }} ${{ matrix.config }}" 12 if: github.repository != 'openssh/openssh-portable-selfhosted' 14 fail-fast: false 18 - ubuntu-22.04 19 - ubuntu-latest 20 - ubuntu-22.04-arm 21 - ubuntu-24.04-arm 22 - macos-13 [all …]
|
| H A D | selfhosted.yml | 1 name: C/C++ CI self-hosted 9 name: "${{ matrix.target }} ${{ matrix.config }}" 10 if: github.repository == 'openssh/openssh-portable-selfhosted' 11 runs-on: ${{ matrix.host }} 12 timeout-minutes: 600 17 TARGET_CONFIG: ${{ matrix.config }} 18 …IN: ${{ startsWith(matrix.host, 'libvirt') && format('{0}-{1}-{2}', matrix.target, matrix.config, … 24 …: ${{ matrix.target == 'aix51' || matrix.target == 'fbsd14-ppc64' || matrix.target == 'openwrt-mip… 26 fail-fast: false 28 # default config. "target" corresponds to a label associated with the [all …]
|
| /freebsd/contrib/wpa/wpa_supplicant/ |
| H A D | config_file.c | 3 * Copyright (c) 2003-2019, Jouni Malinen <j@w1.fi> 19 #include "config.h" 26 #include "utils/config.h" 33 if (ssid->passphrase) { in wpa_config_validate_network() 34 if (ssid->psk_set) { in wpa_config_validate_network() 42 if (ssid->disabled == 2) in wpa_config_validate_network() 43 ssid->p2p_persistent_group = 1; in wpa_config_validate_network() 45 if ((ssid->group_cipher & WPA_CIPHER_CCMP) && in wpa_config_validate_network() 46 !(ssid->pairwise_cipher & (WPA_CIPHER_CCMP | WPA_CIPHER_CCMP_256 | in wpa_config_validate_network() 53 ssid->group_cipher &= ~WPA_CIPHER_CCMP; in wpa_config_validate_network() [all …]
|
| /freebsd/sys/isa/ |
| H A D | pnpparse.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 60 struct isa_config *config, int ldn) in pnp_parse_desc() argument 99 if (config->ic_nirq == ISA_NIRQ) { in pnp_parse_desc() 105 config->ic_irqmask[config->ic_nirq] = 0; in pnp_parse_desc() 106 config->ic_nirq++; in pnp_parse_desc() 112 config->ic_irqmask[config->ic_nirq] = I16(res); in pnp_parse_desc() 113 config->ic_nirq++; in pnp_parse_desc() 117 if (config->ic_ndrq == ISA_NDRQ) { in pnp_parse_desc() 123 config->ic_drqmask[config->ic_ndrq] = 0; in pnp_parse_desc() [all …]
|
| /freebsd/contrib/pam-krb5/tests/module/ |
| H A D | password-t.c | 2 * Authentication tests for the pam-krb5 module with ticket cache. 11 * Copyright 2011-2012, 2014 14 * SPDX-License-Identifier: BSD-3-clause or GPL-1+ 17 #include <config.h> 36 check_authtok(pam_handle_t *pamh, const struct script_config *config, in check_authtok() argument 44 is_string(config->newpass, authtok, "...and it is correct"); in check_authtok() 51 struct script_config config; in main() local 57 memset(&config, 0, sizeof(config)); in main() 58 config.user = krbconf->username; in main() 59 config.password = krbconf->password; in main() [all …]
|
| H A D | expired-t.c | 2 * Tests for the pam-krb5 module with an expired password. 10 * Copyright 2011-2012 13 * SPDX-License-Identifier: BSD-3-clause or GPL-1+ 16 #include <config.h> 34 struct script_config config; in main() local 42 memset(&config, 0, sizeof(config)); in main() 43 config.user = krbconf->username; in main() 44 config.password = krbconf->password; in main() 45 config.extra[0] = krbconf->userprinc; in main() 51 now = time(NULL) - 1; in main() [all …]
|
| H A D | alt-auth-t.c | 2 * Tests for the alt_auth_map functionality in libpam-krb5. 14 * SPDX-License-Identifier: BSD-3-clause or GPL-1+ 17 #include <config.h> 29 struct script_config config; in main() local 40 memset(&config, 0, sizeof(config)); in main() 41 config.user = "bogus-nonexistent-account"; in main() 42 config.authtok = krbconf->password; in main() 43 config.extra[0] = krbconf->username; in main() 44 config.extra[1] = krbconf->userprinc; in main() 48 * that we can be sure that our principals will stay fully-qualified in in main() [all …]
|
| /freebsd/contrib/processor-trace/libipt/test/src/ |
| H A D | ptunit-sync.c | 2 * Copyright (c) 2014-2019, Intel Corporation 34 #include "intel-pt.h" 43 struct pt_config config; member 52 memset(sfix->buffer, 0xcd, sizeof(sfix->buffer)); in sfix_init() 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() 82 ptu_int_eq(errcode, -pte_internal); in sync_fwd_null() [all …]
|
| H A D | ptunit-config.c | 2 * Copyright (c) 2015-2019, Intel Corporation 34 #include "intel-pt.h" 44 struct pt_config config; in from_user_null() local 47 errcode = pt_config_from_user(NULL, &config); in from_user_null() 48 ptu_int_eq(errcode, -pte_internal); in from_user_null() 50 errcode = pt_config_from_user(&config, NULL); in from_user_null() 51 ptu_int_eq(errcode, -pte_invalid); 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() [all …]
|
| /freebsd/contrib/pam-krb5/tests/pam-util/ |
| H A D | options-t.c | 4 * The canonical version of this file is maintained in the rra-c-util package, 5 * which can be found at <https://www.eyrie.org/~eagle/software/rra-c-util/>. 9 * Copyright 2010-2014 30 * SPDX-License-Identifier: MIT 33 #include <config.h> 39 #include <pam-util/args.h> 40 #include <pam-util/options.h> 41 #include <pam-util/vector.h> 64 /* clang-format off */ 71 /* clang-format on */ [all …]
|
| /freebsd/share/examples/sound/ |
| H A D | oss.h | 2 * SPDX-License-Identifier: BSD-2-Clause 41 struct config { struct 63 * example, a 24-bit sample will be represented with 3 bytes. If you're porting 64 * an audio application from Linux, you should be aware that 24-bit samples on 67 * number_of_fragments - 1 late. That's called jitter tolerance. 84 oss_init(struct config *config) in oss_init() argument 89 if ((config->fd = open(config->device, config->mode)) < 0) in oss_init() 90 err(1, "Error opening the device %s", config->device); in oss_init() 93 if (ioctl(config->fd, SNDCTL_ENGINEINFO, &config->audio_info) < 0) in oss_init() 97 if (ioctl(config->fd, SNDCTL_DSP_GETCAPS, &config->audio_info.caps) < 0) in oss_init() [all …]
|
| H A D | simple.c | 2 * SPDX-License-Identifier: BSD-2-Clause 41 to_channels(struct config *config, void *output) in to_channels() argument 43 uint8_t *in = config->buf; in to_channels() 48 for (byte = 0; byte < config->buffer_info.bytes; in to_channels() 49 byte += config->sample_size) { in to_channels() 54 i = byte / config->sample_size; in to_channels() 57 channel = i % config->audio_info.max_channels; in to_channels() 60 offset = i / config->audio_info.max_channels; in to_channels() 63 index = (channel * config->chsamples + offset) * in to_channels() 64 config->sample_size; in to_channels() [all …]
|
| /freebsd/contrib/kyua/utils/config/ |
| H A D | tree_test.cpp | 29 #include "utils/config/tree.ipp" 31 #include <atf-c++.hpp> 33 #include "utils/config/nodes.ipp" 37 namespace config = utils::config; 71 class wrapped_int_node : public config::typed_leaf_node< int_wrapper > { 75 /// \return A dynamically-allocated node. 80 new_node->_value = _value; in deep_copy() 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() [all …]
|
| H A D | nodes_test.cpp | 29 #include "utils/config/nodes.ipp" 31 #include <atf-c++.hpp> 35 #include "utils/config/exceptions.hpp" 36 #include "utils/config/keys.hpp" 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() [all …]
|
| /freebsd/contrib/llvm-project/lld/ELF/ |
| H A D | LTO.cpp | 1 //===- LTO.cpp ------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 10 #include "Config.h" 25 #include "llvm/LTO/Config.h" 47 return lto::getThinLTOOutputFile(modulePath, config->thinLTOPrefixReplaceOld, in getThinLTOOutputFile() 48 config->thinLTOPrefixReplaceNew); in getThinLTOOutputFile() 51 static lto::Config createConfig() { in createConfig() 52 lto::Config c; in createConfig() 54 // LLD supports the new relocations and address-significance tables. in createConfig() [all …]
|
| H A D | Driver.cpp | 1 //===- Driver.cpp ---------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 19 // be harmful when you are doing cross-linking. Therefore, in LLD, we 23 //===----------------------------------------------------------------------===// 26 #include "Config.h" 53 #include "llvm/Config/llvm-config.h" 81 ConfigWrapper elf::config; member in elf 88 if (config->noinhibitExec) in errorOrWarn() 130 // This driver-specific context will be freed later by unsafeLldMain(). in link() [all …]
|
| /freebsd/contrib/pam-krb5/module/ |
| H A D | options.c | 2 * Option handling for pam-krb5. 8 * Copyright 2005-2010, 2014, 2020 Russ Allbery <eagle@eyrie.org> 9 * Copyright 2011-2012 12 * Copyright 1999-2000 Frank Cusack <fcusack@fcusack.com> 14 * SPDX-License-Identifier: BSD-3-clause or GPL-1+ 17 #include <config.h> 24 #include <pam-util/args.h> 25 #include <pam-util/logging.h> 26 #include <pam-util/options.h> 27 #include <pam-util/vector.h> [all …]
|
| /freebsd/contrib/netbsd-tests/lib/librefuse/ |
| H A D | t_refuse_opt.c | 3 /*- 34 #include <atf-c.h> 121 struct fuse_opt o1[] = { FUSE_OPT_KEY("-x" , 0), FUSE_OPT_END }; in ATF_TC_BODY() 125 struct fuse_opt o5[] = { FUSE_OPT_KEY("-x " , 0), FUSE_OPT_END }; in ATF_TC_BODY() 126 struct fuse_opt o6[] = { FUSE_OPT_KEY("-x %s" , 0), FUSE_OPT_END }; in ATF_TC_BODY() 128 ATF_CHECK(fuse_opt_match(o1, "-x") == 1); in ATF_TC_BODY() 132 ATF_CHECK(fuse_opt_match(o2, "-foo") == 0); in ATF_TC_BODY() 140 ATF_CHECK(fuse_opt_match(o5, "-xbar" ) == 1); in ATF_TC_BODY() 141 ATF_CHECK(fuse_opt_match(o5, "-x" ) == 1); in ATF_TC_BODY() 142 ATF_CHECK(fuse_opt_match(o5, "-x=bar") == 1); in ATF_TC_BODY() [all …]
|
| /freebsd/contrib/llvm-project/lld/COFF/ |
| H A D | Driver.cpp | 1 //===- Driver.cpp ---------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 #include "Config.h" 29 #include "llvm/Config/llvm-config.h" 51 #include "llvm/ToolDrivers/llvm-lib/LibDriver.h" 67 // This driver-specific context will be freed later by unsafeLldMain(). in link() 70 ctx->e.initialize(stdoutOS, stderrOS, exitEarly, disableOutput); in link() 71 ctx->e.logName = args::getFilenameWithoutExe(args[0]); in link() 72 ctx->e.errorLimitExceededMsg = "too many errors emitted, stopping now" in link() [all …]
|
| /freebsd/sys/contrib/openzfs/contrib/pam_zfs_key/ |
| H A D | pam_zfs_key.c | 1 // SPDX-License-Identifier: BSD-3-Clause 100 for (int i = retries; i > 0; --i) { in try_lock() 117 pw->len = len; in alloc_pw_size() 127 pw->value = mmap(NULL, pw->len, PROT_READ | PROT_WRITE, MAP_FLAGS, in alloc_pw_size() 128 -1, 0); in alloc_pw_size() 130 if (pw->value == MAP_FAILED) { in alloc_pw_size() 134 if (try_lock(mlock, pw->value, pw->len) != 0) { in alloc_pw_size() 135 (void) munmap(pw->value, pw->len); in alloc_pw_size() 151 memcpy(pw->value, source, pw->len); in alloc_pw_string() 158 memset(pw->value, 0, pw->len); in pw_free() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
| H A D | allocator_config.h | 1 //===-- allocator_config.h --------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 24 // aliasing the `Config` like: 27 // // The instance of Scudo will be initiated with `Config`. 28 // typedef CustomConfig Config; 29 // // Aliasing as default configuration to run the tests with this config. 72 template <typename Config> using PrimaryT = SizeClassAllocator64<Config>; 74 template <typename Config> using PrimaryT = SizeClassAllocator32<Config>; 86 template <typename Config> using CacheT = MapAllocatorCache<Config>; [all …]
|
| /freebsd/contrib/processor-trace/libipt/src/ |
| H A D | pt_packet.c | 2 * Copyright (c) 2013-2019, Intel Corporation 32 #include "intel-pt.h" 53 const struct pt_config *config) in pt_pkt_read_unknown() argument 59 if (!packet || !pos || !config) in pt_pkt_read_unknown() 60 return -pte_internal; in pt_pkt_read_unknown() 62 decode = config->decode.callback; in pt_pkt_read_unknown() 64 return -pte_bad_opc; in pt_pkt_read_unknown() 67 packet->payload.unknown.packet = pos; in pt_pkt_read_unknown() 68 packet->payload.unknown.priv = NULL; in pt_pkt_read_unknown() 73 size = (*decode)(&packet->payload.unknown, config, pos, in pt_pkt_read_unknown() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ELF/ |
| H A D | ELFObjcopy.cpp | 1 //===- ELFObjcopy.cpp -----------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 111 // If Sec's type is changed from SHT_NOBITS due to --set-section-flags, in setSectionType() 126 // may promote more non-ALLOC sections than GNU objcopy, but it is fine as in setSectionFlagsAndType() 127 // non-ALLOC SHT_NOBITS sections do not make much sense. in setSectionFlagsAndType() 157 static std::unique_ptr<Writer> createELFWriter(const CommonConfig &Config, in createELFWriter() argument 163 return std::make_unique<ELFWriter<ELF32LE>>(Obj, Out, !Config.StripSections, in createELFWriter() 164 Config.OnlyKeepDebug); in createELFWriter() 166 return std::make_unique<ELFWriter<ELF64LE>>(Obj, Out, !Config.StripSections, in createELFWriter() [all …]
|
| /freebsd/stand/lua/ |
| H A D | config.lua.8 | 2 .\" SPDX-License-Identifier: BSD-2-Clause 31 .Nm config.lua 41 .Dl local config = require("config") 45 .Bl -tag -width "config.setCarouselIndex(id, idx)" -offset indent 46 .It Fn config.getCarouselIndex id 51 for a more in-depth explanation of carousels. 52 .It Fn config.setCarouselIndex id idx 60 .It Fn config.readConf file loaded_files 69 variable. Additionnaly, the top-level call to readConf will process files listed in the 79 argument, which uses filenames as keys and any non-nil value to [all …]
|
| /freebsd/contrib/sqlite3/autosetup/ |
| H A D | pkg-config.tcl | 6 # The 'pkg-config' module allows package information to be found via 'pkg-config'. 8 # If not cross-compiling, the package path should be determined automatically 9 # by 'pkg-config'. 10 # If cross-compiling, the default package path is the compiler sysroot. 11 # If the C compiler doesn't support '-print-sysroot', the path can be supplied 12 # by the '--sysroot' option or by defining 'SYSROOT'. 14 # 'PKG_CONFIG' may be set to use an alternative to 'pkg-config'. 19 sysroot:dir => "Override compiler sysroot for pkg-config search path" 22 # @pkg-config-init ?required? 24 # Initialises the 'pkg-config' system. Unless '$required' is set to 0, [all …]
|