Home
last modified time | relevance | path

Searched +full:config +full:- +full:file (Results 1 – 25 of 1168) sorted by relevance

12345678910>>...47

/freebsd/stand/lua/
H A Dconfig.lua.82 .\" 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 Dmain.lua2 --
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 Dconfig.lua1 --
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 Ddpv.c1 /*-
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 DDriver.cpp1 //===- 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 DLTO.cpp1 //===- 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 Dconfig_file.c2 * 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 Dkerberos.c8 * 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 Dconfigdata.pm.in1 #! {- $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 Dcache-t.c2 * 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 Drealm-t.c2 * 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 …]
H A Dcache-cleanup-t.c12 * SPDX-License-Identifier: BSD-3-clause or GPL-1+
15 #include <config.h>
30 struct script_config config; in main() local
33 struct dirent *file; in main() local
36 /* Load the Kerberos principal and password from a file. */ in main()
38 memset(&config, 0, sizeof(config)); in main()
39 config.user = krbconf->username; in main()
40 config.authtok = krbconf->password; in main()
41 config.extra[0] = krbconf->userprinc; in main()
43 /* Generate a testing krb5.conf file. */ in main()
[all …]
/freebsd/contrib/llvm-project/lld/COFF/
H A DDriver.cpp1 //===- 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 DWriter.cpp1 //===- 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 Dconfig.cpp29 #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 Dconfig_test.cpp29 #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 DDriver.cpp1 //===- 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 DLTO.cpp1 //===- LTO.cpp ---------
37 openFile(StringRef file) openFile() argument
[all...]
/freebsd/contrib/kyua/utils/config/
H A Dparser.cpp29 #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 Dcmd_config_test.sh32 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/tests/
H A Dconftest.py10 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/usr.sbin/iovctl/
H A Dparse.c1 /*-
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/sys/contrib/openzfs/module/zfs/
H A Dspa_config.c1 // 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>
52 * pools are imported they are added to the /etc/zfs/zpool.cache file and
53 * removed from it when exported. For each cache file, we have a single nvlist
55 * 'cachefile' property set which allows this config to be stored in an
61 * writes the updated configuration to to /etc/zfs/zpool.cache file.
[all …]
/freebsd/sys/tools/syscalls/scripts/
H A Dsyscall_h.lua2 --
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 Dsyscalls_map.lua2 --
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 …]

12345678910>>...47