/freebsd/contrib/googletest/googletest/test/ |
H A D | gtest_environment_test.cc | 37 #include "src/gtest-internal-inl.h" 54 // generate a non-fatal failure, generate a fatal failure, or 61 ADD_FAILURE() << "Expected non-fatal failure in global set-up."; in SetUp() 64 FAIL() << "Expected fatal failure in global set-up."; in SetUp() 71 // Generates a non-fatal failure. 74 ADD_FAILURE() << "Expected non-fatal failure in global tear-down."; in TearDown() 77 // We call this function to set the type of failure SetUp() should 100 // be generated by the global set-up. 101 int RunAllTests(MyEnvironment* env, FailureType failure) { in RunAllTests() argument 105 env->set_failure_in_set_up(failure); in RunAllTests() [all …]
|
/freebsd/contrib/unbound/cachedb/ |
H A D | redis.c | 2 * cachedb/redis.c - cachedb redis module 55 redisContext** ctxs; /* thread-specific redis contexts */ 73 if((*moddata)->ctxs) { in moddata_clean() 75 for(i = 0; i < (*moddata)->numctxs; i++) { in moddata_clean() 76 if((*moddata)->ctxs[i]) in moddata_clean() 77 redisFree((*moddata)->ctxs[i]); in moddata_clean() 79 free((*moddata)->ctxs); in moddata_clean() 90 if(moddata->server_path && moddata->server_path[0]!=0) { in redis_connect() 91 ctx = redisConnectUnixWithTimeout(moddata->server_path, in redis_connect() 92 moddata->connect_timeout); in redis_connect() [all …]
|
H A D | cachedb.c | 2 * cachedb/cachedb.c - cache from a database external to the program module 104 testframe_init(struct module_env* env, struct cachedb_env* cachedb_env) in testframe_init() argument 110 cachedb_env->backend_data = (void*)d; in testframe_init() 111 if(!cachedb_env->backend_data) { in testframe_init() 119 0 /* no aggregation */, env)) { in testframe_init() 124 lock_basic_init(&d->lock); in testframe_init() 125 lock_protect(&d->lock, d, sizeof(*d)); in testframe_init() 130 testframe_deinit(struct module_env* env, struct cachedb_env* cachedb_env) in testframe_deinit() argument 133 cachedb_env->backend_data; in testframe_deinit() 134 (void)env; in testframe_deinit() [all …]
|
/freebsd/contrib/atf/atf-c++/detail/ |
H A D | env_test.cpp | 26 #include "atf-c++/detail/env.hpp" 28 #include <atf-c++.hpp> 30 // ------------------------------------------------------------------------ 32 // ------------------------------------------------------------------------ 41 ATF_REQUIRE(atf::env::has("PATH")); in ATF_TEST_CASE_BODY() 42 ATF_REQUIRE(!atf::env::get("PATH").empty()); in ATF_TEST_CASE_BODY() 44 ATF_REQUIRE(!atf::env::has("_UNDEFINED_VARIABLE_")); in ATF_TEST_CASE_BODY() 54 ATF_REQUIRE(atf::env::has("PATH")); in ATF_TEST_CASE_BODY() 55 ATF_REQUIRE(atf::env::get("PATH", "default value") != "default value"); in ATF_TEST_CASE_BODY() 57 ATF_REQUIRE_EQ(atf::env::get("_UNDEFINED_VARIABLE_", "foo bar"), "foo bar"); in ATF_TEST_CASE_BODY() [all …]
|
/freebsd/contrib/netbsd-tests/fs/ffs/ |
H A D | t_setquota.sh | 32 "set quota with ${q} enabled" -b ${e} ${v} ${q} 34 "set quota for new id with ${q} enabled" -b ${e} ${v} ${q} 36 "set default quota with ${q} enabled" -b ${e} ${v} ${q} 39 "set quota with both enabled" -b ${e} ${v} "both" 41 "set quota for new id with both enabled" -b ${e} ${v} "both" 43 "set quota for new id with both enabled, WAPBL" -bl ${e} ${v} "both" 45 "set default quota with both enabled" -b ${e} ${v} "both" 74 #check that we can set the expected quota 76 local id=$(id -${q}) 77 atf_check -s exit:0 \ [all …]
|
/freebsd/crypto/openssl/test/ssl-tests/ |
H A D | 13-fragmentation.cnf | 5 test-0 = 0-one-fragment-minus-app-data 6 test-1 = 1-one-fragment-app-data 7 test-2 = 2-one-fragment-plus-app-data 8 test-3 = 3-small-app-data 9 test-4 = 4-small-app-data-large-fragment-size 10 test-5 = 5-medium-app-data 11 test-6 = 6-medium-plus-app-data 12 test-7 = 7-large-app-data 13 test-8 = 8-large-app-data-large-fragment-size 14 test-9 = 9-large-app-data-odd-fragment-size [all …]
|
/freebsd/contrib/bmake/unit-tests/ |
H A D | varname-dot-make-level.mk | 1 # $NetBSD: varname-dot-make-level.mk,v 1.5 2024/11/23 22:59:51 rillig Exp $ 7 all: level_1 set-env 10 @printf 'level 1: variable %s, env %s\n' ${.MAKE.LEVEL} "$$${.MAKE.LEVEL.ENV}" 11 @${MAKE} -f ${MAKEFILE} level_2 14 @printf 'level 2: variable %s, env %s\n' ${.MAKE.LEVEL} "$$${.MAKE.LEVEL.ENV}" 15 @${MAKE} -f ${MAKEFILE} level_3 18 @printf 'level 3: variable %s, env %s\n' ${.MAKE.LEVEL} "$$${.MAKE.LEVEL.ENV}" 20 # The .unexport-env directive clears the environment, except for the 23 .unexport-env 27 # expect: make: Cannot override read-only global variable ".MAKE.LEVEL.ENV" with a command line var… [all …]
|
H A D | opt-keep-going-indirect.mk | 1 # $NetBSD: opt-keep-going-indirect.mk,v 1.3 2024/04/02 15:05:15 rillig Exp $ 3 # Tests for the -k command line option, which stops building a target as soon 8 # In 1993, the exit status for the option '-k' was always 0, even if a 37 # jobs mode. As of 2022-02-12, compat mode outputs '(continuing)' while 46 # The 'set +e' was necessary in 2003, when the shell was run with '-e' by 48 # The 'env [all...] |
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerFork.cpp | 1 //===- FuzzerFork.cpp - run fuzzing in separate subprocesses --------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 //===----------------------------------------------------------------------===// 95 std::set<uint32_t> Features, Cov; 96 std::set<std::string> FilesWithDFT; 116 std::chrono::system_clock::now() - ProcessStartTime) in secondsSinceProcessStartUp() 144 size_t StartIndex = ((JobId - 1) % NumCorpuses) * AverageCorpusSize; in CreateNewJob() 149 : Rand->SkewTowardsLast(Files.size()); in CreateNewJob() 156 auto &SF = Files[Rand->SkewTowardsLast(Files.size())]; in CreateNewJob() [all …]
|
/freebsd/contrib/unbound/daemon/ |
H A D | daemon.c | 2 * daemon/daemon.c - collection of workers that handles requests. 99 #include <systemd/sd-daemon.h> 261 daemon->need_to_exit = 0; in daemon_init() 262 modstack_init(&daemon->mods); in daemon_init() 263 if(!(daemon->env = (struct module_env*)calloc(1, in daemon_init() 264 sizeof(*daemon->env)))) { in daemon_init() 268 daemon->env->modstack = &daemon->mods; in daemon_init() 270 if(!edns_known_options_init(daemon->env)) { in daemon_init() 271 free(daemon->env); in daemon_init() 275 alloc_init(&daemon->superalloc, NULL, 0); in daemon_init() [all …]
|
/freebsd/contrib/unbound/ipset/ |
H A D | ipset.h | 13 * ipset (local-zone statements) into a firewall rule IPSet. For firewall 16 * To use the IPset module, install the libmnl-dev (or libmnl-devel) package 17 * and configure with --enable-ipset. And compile. Then enable the ipset 18 * module in unbound.conf with module-config: "ipset validator iterator" 19 * then create it with ipset -N blacklist iphash and then add 20 * local-zone: "example.com." ipset 22 * looked up added to the set. 24 * Set the name of the set with 26 * name-v4: "blacklist" 27 * name-v6: "blacklist6" [all …]
|
/freebsd/contrib/tcpdump/cmake/Modules/ |
H A D | FindCRYPTO.cmake | 12 # First, try looking for it with pkg-config, if we have it. 17 # Homebrew's pkg-config does not, by default, look for 18 # pkg-config files for packages it has installed. 20 # dumped in package-specific directories whose paths are 21 # not only package-specific but package-version-specific. 24 # PKG_CONFIG_PATH from "brew --env openssl" and add that 29 # That's the nice thing about Homebrew - it makes things easier! 36 # Get the pkg-config directory for openssl. 38 execute_process(COMMAND "${BREW}" "--env" "--plain" "openssl" 45 # brew --env --plain openssl succeeded. [all …]
|
/freebsd/contrib/unbound/dnstap/ |
H A D | dnstap.c | 4 * Copyright (c) 2013-2014, Farsight Security, Inc. 52 #include <protobuf-c/protobuf-c.h> 56 #include "dnstap/dnstap.pb-c.h" 91 dt_sample_rate_limited(struct dt_env* env) in dt_sample_rate_limited() argument 93 lock_basic_lock(&env->sample_lock); in dt_sample_rate_limited() 95 if(env->sample_rate > 1) { in dt_sample_rate_limited() 98 if (env->sample_rate_count > env->sample_rate) { in dt_sample_rate_limited() 103 env->sample_rate_count = 0; in dt_sample_rate_limited() 106 env->sample_rate_count++; in dt_sample_rate_limited() 107 lock_basic_unlock(&env->sample_lock); in dt_sample_rate_limited() [all …]
|
/freebsd/contrib/bsddialog/ |
H A D | CHANGELOG | 1 2024-07-01 1.0.4 8 2024-05-27 1.0.3 11 change: --form and --mixedform do not print field value to output fd if 12 <fieldlen> is <= 0 (readonly). To note --mixedgaug [all...] |
/freebsd/contrib/ofed/libmlx5/ |
H A D | mlx5.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 47 #include "mlx5-abi.h" 70 HCA(MELLANOX, 4113), /* MT4113 Connect-IB */ 71 HCA(MELLANOX, 4114), /* Connect-IB Virtual Function */ 72 HCA(MELLANOX, 4115), /* ConnectX-4 */ 73 HCA(MELLANOX, 4116), /* ConnectX-4 Virtual Function */ 74 HCA(MELLANOX, 4117), /* ConnectX-4LX */ 75 HCA(MELLANOX, 4118), /* ConnectX-4LX Virtual Function */ 76 HCA(MELLANOX, 4119), /* ConnectX-5, PCIe 3.0 */ [all …]
|
/freebsd/contrib/unbound/iterator/ |
H A D | iter_utils.h | 2 * iterator/iter_utils.h - iterative resolver module utility functions. 75 * Process config options and set iterator module state. 88 * do-not-query-addresses. 89 * @param env: environment with infra cache (lameness, rtt info). 94 * @param dnssec_lame: set to 1, if a known dnssec-lame server is selected 96 * @param chase_to_rd: set to 1 if a known recursion lame server is selected 109 struct module_env* env, struct delegpt* dp, uint8_t* name, 134 * @param env: environment, with alloc structure and dns cache. 141 * can be prefetch-updates. 151 void iter_dns_store(struct module_env* env, struct query_info* qinf, [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/TargetParser/ |
H A D | Triple.h | 1 //===-- llvm/TargetParser/Triple.h - Target triple helper class--*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 23 /// Triple - Helper class for working with autoconf configuration names. For 28 /// ARCHITECTURE-VENDOR-OPERATING_SYSTEM 30 /// ARCHITECTURE-VENDOR-OPERATING_SYSTEM-ENVIRONMENT 39 /// Clients that need to handle the non-canonical triples that users often 56 bpfel, // eBPF or extended BPF or 64-bit BPF (little endian) 57 bpfeb, // eBPF or extended BPF or 64-bit BPF (big endian) 59 dxil, // DXIL 32-bit DirectX bytecode [all …]
|
/freebsd/lib/libc/gen/ |
H A D | setjmp.3 | 43 .Nd non-local jumps 49 .Fn sigsetjmp "sigjmp_buf env" "int savemask" 51 .Fn siglongjmp "sigjmp_buf env" "int val" 53 .Fn setjmp "jmp_buf env" 55 .Fn longjmp "jmp_buf env" "int val" 57 .Fn _setjmp "jmp_buf env" 59 .Fn _longjmp "jmp_buf env" "int val" 69 .Fa env . 96 .Fa env 123 pairs save and restore only the register set and the stack. [all …]
|
/freebsd/contrib/unbound/services/ |
H A D | mesh.c | 2 * services/mesh.c - deal with mesh of query states and handle events for that. 40 * query states. This mesh is supposed to be thread-specific. 70 #include "edns-subnet/subnetmod.h" 71 #include "edns-subnet/edns-subnet.h" 81 * Compare two response-ip client info entries for the purpose of mesh state 83 * 1 or -1 (they mean 'ci_a is larger/smaller than ci_b', respectively, but 85 * We cannot share the mesh state for two queries if different response-ip 106 return -1; in client_info_compare() 109 if(ci_a->taglen != ci_b->taglen) in client_info_compare() 110 return (ci_a->taglen < ci_b->taglen) ? -1 : 1; in client_info_compare() [all …]
|
H A D | modstack.h | 2 * services/modstack.h - stack of modules 73 * @param env: module environment which is inited by the modules. 78 struct module_env* env); 81 * Read config file module settings and set up the modfunc block 107 * @param env: module environment which is inited by the modules. 109 * env.need_to_validate is set by the modules. 113 struct module_env* env); 118 * @param env: module env for module deinit() calls. 120 void modstack_call_deinit(struct module_stack* stack, struct module_env* env); 125 * @param env: module env for module destartup() calls. [all …]
|
/freebsd/contrib/unbound/util/ |
H A D | module.h | 2 * util/module.h - DNS handling module interface 49 * module as a whole, for entire-module state (such as a cache). And per-query 51 * the per-query state. 53 * Most per-query state should simply be allocated in the query region. 58 * function pointers for module-specific tasks (like sending queries). 79 * send a UDP query. The iterator uses env.send_query() to send the 103 * not really re-entry codepoints and services). During the operate call 112 * recursion. That is, it wants the full state-machine-list to operate on 113 * a different query. It calls env.attach_sub() to create a new query state. 115 * can edit the module-states for the newly created query (i.e. pass along [all …]
|
/freebsd/crypto/openssl/crypto/cms/ |
H A D | cms_env.c | 2 * Copyright 2008-2023 The OpenSSL Project Authors. All Rights Reserved. 24 static void cms_env_set_version(CMS_EnvelopedData *env); 31 int nid = OBJ_obj2nid(cms->contentType); in cms_get_enveloped_type_simple() 56 if (OBJ_obj2nid(cms->contentType) != NID_pkcs7_enveloped) { in ossl_cms_get0_enveloped() 60 return cms->d.envelopedData; in ossl_cms_get0_enveloped() 65 if (OBJ_obj2nid(cms->contentType) != NID_id_smime_ct_authEnvelopedData) { in ossl_cms_get0_auth_enveloped() 69 return cms->d.authEnvelopedData; in ossl_cms_get0_auth_enveloped() 74 if (cms->d.other == NULL) { in cms_enveloped_data_init() 75 cms->d.envelopedData = M_ASN1_new_of(CMS_EnvelopedData); in cms_enveloped_data_init() 76 if (cms->d.envelopedData == NULL) { in cms_enveloped_data_init() [all …]
|
/freebsd/contrib/libucl/ |
H A D | CMakeLists.txt | 4 SET(LIBUCL_VERSION_MAJOR 0) 5 SET(LIBUCL_VERSION_MINOR 5) 6 SET(LIBUCL_VERSION_PATCH 0) 8 SET(LIBUCL_VERSION 39 $ENV{LUA_DIR} 40 PATH_SUFFIXES "include/luajit-2.0" 43 "include/luajit-${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}" 47 "include/lua-${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}" 53 "luajit-2.0" 57 "luajit-${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}" [all …]
|
/freebsd/sys/contrib/dev/rtw89/ |
H A D | phy.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2019-2020 Realtek Corporation 19 const struct rtw89_phy_gen_def *phy = rtwdev->chip->phy_def; in get_max_amsdu_len() 21 return phy->phy0_phy1_offset(rtwdev, addr); in get_max_amsdu_len() 27 u32 bit_rate = report->bit_rat in get_max_amsdu_len() 3231 struct rtw89_env_monitor_info *env = &rtwdev->env_monitor; rtw89_phy_ccx_us_to_idx() local 3238 struct rtw89_env_monitor_info *env = &rtwdev->env_monitor; rtw89_phy_ccx_idx_to_us() local 3245 struct rtw89_env_monitor_info *env = &rtwdev->env_monitor; rtw89_phy_ccx_top_setting_init() local 3263 struct rtw89_env_monitor_info *env = &rtwdev->env_monitor; rtw89_phy_ccx_get_report() local 3305 struct rtw89_env_monitor_info *env = &rtwdev->env_monitor; rtw89_phy_ccx_racing_release() local 3318 struct rtw89_env_monitor_info *env = &rtwdev->env_monitor; rtw89_phy_ifs_clm_th_update_check() local 3371 struct rtw89_env_monitor_info *env = &rtwdev->env_monitor; rtw89_phy_ifs_clm_set_th_reg() local 3400 struct rtw89_env_monitor_info *env = &rtwdev->env_monitor; rtw89_phy_ifs_clm_setting_init() local 3421 struct rtw89_env_monitor_info *env = &rtwdev->env_monitor; rtw89_phy_ccx_racing_ctrl() local 3452 struct rtw89_env_monitor_info *env = &rtwdev->env_monitor; rtw89_phy_ccx_trigger() local 3464 struct rtw89_env_monitor_info *env = &rtwdev->env_monitor; rtw89_phy_ifs_clm_get_utility() local 3529 struct rtw89_env_monitor_info *env = &rtwdev->env_monitor; rtw89_phy_ifs_clm_get_result() local 3613 struct rtw89_env_monitor_info *env = &rtwdev->env_monitor; rtw89_phy_ifs_clm_set() local 3653 struct rtw89_env_monitor_info *env = &rtwdev->env_monitor; rtw89_phy_env_monitor_track() local 3977 rtw89_phy_dig_rxb_idx_by_rssi(struct rtw89_dev * rtwdev,u8 rssi,struct rtw89_agc_gaincode_set * set) rtw89_phy_dig_rxb_idx_by_rssi() argument 3996 rtw89_phy_dig_gaincode_by_rssi(struct rtw89_dev * rtwdev,u8 rssi,struct rtw89_agc_gaincode_set * set) rtw89_phy_dig_gaincode_by_rssi() argument 4012 struct rtw89_env_monitor_info *env = &rtwdev->env_monitor; rtw89_phy_dig_igi_offset_by_env() local 4080 rtw89_phy_dig_set_igi_cr(struct rtw89_dev * rtwdev,const struct rtw89_agc_gaincode_set set) rtw89_phy_dig_set_igi_cr() argument [all...] |
/freebsd/lib/msun/tests/ |
H A D | fenv_test.c | 1 /*- 28 * Test the correctness and C99-compliance of various fenv.h features. 44 #include "test-utils.h" 56 /* init_exceptsets() initializes this to the power set of std_excepts[] */ 62 * Initialize std_except_sets[] to the power set of std_excepts[] 74 std_except_sets[i] |= std_excepts[j] & ((~sr & 1) - 1); in do_setup() 79 * Raise a floating-point exception without relying on the standard 121 * or a floating-point instruction to get synchronous exceptions. in raiseexcept() 137 * This test works just as well with 0.0 - 0.0, except on ia64 in getround() 138 * where 0.0 - 0.0 gives the wrong sign when rounding downwards. in getround() [all …]
|