/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 62 .Pa file 63 as a configuration file [all …]
|
/freebsd/sys/tools/syscalls/ |
H A D | main.lua | 2 -- 3 -- SPDX-License-Identifier: BSD-2-Clause 4 -- 5 -- Copyright (c) 2024 Tyler Baxter <agge@FreeBSD.org> 6 -- Copyright (c) 2023 Warner Losh <imp@bsdimp.com> 7 -- Copyright (c) 2019 Kyle Evans <kevans@FreeBSD.org> 8 -- 9 -- Thanks to Kyle Evans for his makesyscall.lua in FreeBSD which served as 10 -- inspiration for this, and as a source of code at times. 11 -- [all …]
|
H A D | config.lua | 1 -- 2 -- SPDX-License-Identifier: BSD-2-Clause 3 -- 4 -- Copyright (c) 2021-2024 SRI International 5 -- Copyright (c) 2024 Tyler Baxter <agge@FreeBSD.org> 6 -- Copyright (c) 2023 Warner Losh <imp@bsdimp.com> 7 -- Copyright (c) 2019 Kyle Evans <kevans@FreeBSD.org> 8 -- 10 -- 11 -- Code to read in the config file that drives this. Since we inherit from the [all …]
|
/freebsd/usr.bin/dpv/ |
H A D | dpv.c | 1 /*- 2 * Copyright (c) 2013-2016 Devin Teske <dteske@FreeBSD.org> 58 static int fd = -1; 64 static uint8_t multiple = FALSE; /* `-m' */ 71 static int operate_common(struct dpv_file_node *file, int out); 72 static int operate_on_bytes(struct dpv_file_node *file, int out); 73 static int operate_on_lines(struct dpv_file_node *file, int out); 76 operate_common(struct dpv_file_node *file, int out) in operate_common() argument 80 /* Open the file if necessary */ in operate_common() 83 /* Resolve the file path and attempt to open it */ in operate_common() [all …]
|
/freebsd/contrib/llvm-project/lld/ELF/ |
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 …]
|
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 …]
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | config_file.c | 2 * WPA Supplicant / Configuration backend: text file 3 * Copyright (c) 2003-2019, Jouni Malinen <j@w1.fi> 8 * This file implements a configuration backend for text files. All the 9 * configuration information is stored in a text file that uses a format 10 * described in the sample configuration file, wpa_supplicant.conf. 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() [all …]
|
/freebsd/contrib/pam-krb5/tests/tap/ |
H A D | kerberos.c | 8 * are utility functions for setting up a krb5.conf file and reporting 14 * The canonical version of this file is maintained in the rra-c-util package, 15 * which can be found at <https://www.eyrie.org/~eagle/software/rra-c-util/>. 19 * Copyright 2006-2007, 2009-2014 40 * SPDX-License-Identifier: MIT 43 #include <config.h> 62 # pragma GCC diagnostic ignored "-Wformat-nonliteral" 68 * point to a different Kerberos ticket cache, keytab, and configuration file, 73 static struct kerberos_config *config = NULL; variable 82 * Obtain Kerberos tickets and fill in the principal config entry. [all …]
|
/freebsd/crypto/openssl/ |
H A D | configdata.pm.in | 1 #! {- $config{HASHBANGPERL} -} 2 # -*- mode: perl -*- 3 {- 7 # we must ensure that it returns a Unix style path. Mixing File::Spec 8 # and File::Spec::Unix does just that. 9 use File::Spec::Unix; 10 use File::Spec; 19 # Convert any path of the VMS form VOLUME:[DIR1.DIR2]FILE to the 20 # Unix form /VOLUME/DIR1/DIR2/FILE, which is what VMS perl supports 24 (my $vol, my $dirs, my $file) = File::Spec->splitpath($path); [all …]
|
/freebsd/contrib/pam-krb5/tests/module/ |
H A D | cache-t.c | 2 * Authentication tests for the pam-krb5 module with ticket cache. 10 * Copyright 2017, 2020-2021 Russ Allbery <eagle@eyrie.org> 14 * SPDX-License-Identifier: BSD-3-clause or GPL-1+ 17 #include <config.h> 44 check_cache(const char *file, const struct script_config *config, in check_cache() argument 57 is_int(0, stat(file, &st), "cache exists"); in check_cache() 66 code = krb5_cc_resolve(ctx, file, &ccache); in check_cache() 72 is_string(config->extra[0], principal, "...and matches our principal"); in check_cache() 76 ctx, &tgtprinc, (unsigned int) strlen(extra->realm), extra->realm, in check_cache() 77 KRB5_TGS_NAME_SIZE, KRB5_TGS_NAME, strlen(extra->realm), extra->realm, in check_cache() [all …]
|
H A D | realm-t.c | 2 * Authentication tests for realm support in pam-krb5. 10 * Copyright 2011-2012 13 * SPDX-License-Identifier: BSD-3-clause or GPL-1+ 16 #include <config.h> 32 struct script_config config; in main() local 35 FILE *file; in main() local 38 /* Load the Kerberos principal and password from a file. */ in main() 40 memset(&config, 0, sizeof(config)); in main() 41 config.user = krbconf->username; in main() 42 config.authtok = krbconf->password; in main() [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 …]
|
H A D | Writer.cpp | 1 //===- Writer.cpp ---------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 12 #include "Config.h" 50 /* To re-generate DOSProgram: 56 ; Point ds:dx at the $-terminated string. 67 $ nasm -fbin /tmp/DOSProgram.asm -o /tmp/DOSProgram.bin 68 $ xxd -i /tmp/DOSProgram.bin 104 uint64_t offs = os->getFileOff() + (c->getRVA() - os->getRVA()); in writeTo() 105 fillEntry(d, record.first, c->getSize(), c->getRVA(), offs); in writeTo() [all …]
|
/freebsd/contrib/kyua/engine/ |
H A D | config.cpp | 29 #include "engine/config.hpp" 32 # include "config.h" 39 #include "utils/config/exceptions.hpp" 40 #include "utils/config/parser.hpp" 41 #include "utils/config/tree.ipp" 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() [all …]
|
/freebsd/contrib/kyua/cli/ |
H A D | config_test.cpp | 29 #include "cli/config.hpp" 31 #include <atf-c++.hpp> 33 #include "engine/config.hpp" 37 #include "utils/config/tree.ipp" 44 namespace config = utils::config; 51 /// Creates a configuration file for testing purposes. 53 /// To ensure that the loaded file is the one created by this function, use 56 /// \param name The name of the configuration file to create. 57 /// \param cookie The magic value to set in the configuration file, or NULL if a 58 /// broken configuration file is desired. [all …]
|
/freebsd/contrib/llvm-project/lld/MachO/ |
H A D | Driver.cpp | 1 //===- Driver.cpp ---------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 10 #include "Config.h" 39 #include "llvm/Config/llvm-config.h" 65 std::unique_ptr<Configuration> macho::config; member in macho 69 // TODO: -r, -dylinker, -preload... in getOutputType() 74 switch (outputArg->getOption().getID()) { in getOutputType() 91 return entry->second; in findLibrary() 97 return findPathCombination(name, config->librarySearchPaths, {""}); in findLibrary() [all …]
|
H A D | LTO.cpp | 1 //===- LTO.cpp --------- 37 openFile(StringRef file) openFile() argument [all...] |
/freebsd/contrib/kyua/utils/config/ |
H A D | parser.cpp | 29 #include "utils/config/parser.hpp" 36 #include "utils/config/exceptions.hpp" 37 #include "utils/config/lua_module.hpp" 38 #include "utils/config/tree.ipp" 43 namespace config = utils::config; 46 // History of configuration file versions: 48 // 2 - Changed the syntax() call to take only a version number, instead of the 49 // word 'config' as the first argument and the version as the second one. 50 // Files now start with syntax(2) instead of syntax('config', 1). 52 // 1 - Initial version. [all …]
|
/freebsd/contrib/kyua/integration/ |
H A D | cmd_config_test.sh | 32 atf_check -s exit:0 \ 33 -o match:'^architecture = ' \ 34 -o match:'^platform = ' \ 35 kyua config 44 architecture = "my-architecture" 45 execenvs = "my-env1 my-env2" 47 platform = "my-platform" 48 unprivileged_user = "$(id -u -n)" 54 architecture = my-architecture 55 execenvs = my-env1 my-env2 [all …]
|
/freebsd/usr.sbin/iovctl/ |
H A D | parse.c | 1 /*- 2 * Copyright (c) 2014-2015 Sandvine Inc. 54 * Verifies that the value specified in the config file is a boolean value, and 58 add_bool_config(const char *key, const ucl_object_t *obj, nvlist_t *config) in add_bool_config() argument 65 nvlist_add_bool(config, key, val); in add_bool_config() 69 * Verifies that the value specified in the config file is a string, and then 73 add_string_config(const char *key, const ucl_object_t *obj, nvlist_t *config) in add_string_config() argument 80 nvlist_add_string(config, key, val); in add_string_config() 84 * Verifies that the value specified in the config file is a integer value 88 add_uint_config(const char *key, const ucl_object_t *obj, nvlist_t *config, in add_uint_config() argument [all …]
|
/freebsd/tests/ |
H A D | conftest.py | 10 def set_handler(config): argument 12 DEFAULT_HANDLER = ATFHandler(report_file_name=config.option.atf_file) 22 """Add file output""" 23 # Add meta-values 26 "--atf-source-dir", 32 "--atf-cleanup", 40 "--atf", 46 "--atf-file", 49 help="Path to the status file provided by atf runtime", 54 def atf_vars() -> Dict[str, str]: [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | spa_config.c | 1 // SPDX-License-Identifier: CDDL-1.0 5 * The contents of this file are subject to the terms of the 7 * You may not use this file except in compliance with the License. 10 * or https://opensource.org/licenses/CDDL-1.0. 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 32 #include <sys/file.h> 57 * For each cache file, we have a single nvlist which holds all the 78 * file into the SPA namespace. It does not actually open or load the pools; it 99 * Open the configuration file. in spa_config_load() 123 * Read the nvlist from the file. in spa_config_load() [all …]
|
/freebsd/sys/tools/syscalls/scripts/ |
H A D | syscall_h.lua | 2 -- 3 -- SPDX-License-Identifier: BSD-2-Clause 4 -- 5 -- Copyright (c) 2024 Tyler Baxter <agge@FreeBSD.org> 6 -- Copyright (c) 2023 Warner Losh <imp@bsdimp.com> 7 -- Copyright (c) 2019 Kyle Evans <kevans@FreeBSD.org> 8 -- 10 -- Setup to be a module, or ran as its own script. 12 local script = not pcall(debug.getlocal, 4, 1) -- TRUE if script. 14 -- Add library root to the package path. [all …]
|
H A D | syscalls_map.lua | 2 -- 3 -- SPDX-License-Identifier: BSD-2-Clause 4 -- 5 -- Copyright (c) 2024 SRI International 6 -- Copyright (c) 2024 Tyler Baxter <agge@FreeBSD.org> 7 -- Copyright (c) 2023 Warner Losh <imp@bsdimp.com> 8 -- Copyright (c) 2019 Kyle Evans <kevans@FreeBSD.org> 9 -- 11 -- Setup to be a module, or ran as its own script. 13 local script = not pcall(debug.getlocal, 4, 1) -- TRUE if script. [all …]
|
/freebsd/crypto/openssl/doc/man7/ |
H A D | fips_module.pod | 5 fips_module - OpenSSL fips module guide 18 L<https://github.com/openssl/openssl/blob/master/README-FIPS.md>. 44 All of the above APIs are deprecated in OpenSSL 3.0 - so a simple rule is to 55 default config file or its settings then they can automatically start using the 58 To do this the default OpenSSL config file will have to be modified. The 59 location of this config file will depend on the platform, and any options that 60 were given during the build process. You can check the location of the config 61 file by running this command: 63 $ openssl version -d 70 $ openssl version -v [all …]
|