Home
last modified time | relevance | path

Searched refs:env (Results 1 – 25 of 935) sorted by relevance

12345678910>>...38

/freebsd/usr.sbin/ypldap/
H A Dypldap.c49 void main_configure_client(struct env *);
51 void main_start_update(struct env *);
52 void main_trash_update(struct env *);
53 void main_end_update(struct env *);
54 int main_create_user_groups(struct env *);
55 void purge_config(struct env *);
56 void reconfigure(struct env *);
127 main_start_update(struct env *env) in main_start_update() argument
129 env->update_trashed = 0; in main_start_update()
132 env->sc_user_line_len = 0; in main_start_update()
[all …]
H A Dldapclient.c49 void client_configure(struct env *);
53 int client_search_idm(struct env *, struct idm *, struct aldap *,
55 int client_try_idm(struct env *, struct idm *);
162 struct env *env = p; in client_dispatch_dns() local
163 struct imsgev *iev = env->sc_iev_dns; in client_dispatch_dns()
191 TAILQ_FOREACH(idm, &env->sc_idms, idm_entry) in client_dispatch_dns()
231 TAILQ_FOREACH(idm, &env->sc_idms, idm_entry) { in client_dispatch_dns()
232 if (client_try_idm(env, idm) == -1) in client_dispatch_dns()
239 imsg_compose_event(env->sc_iev, IMSG_END_UPDATE, 0, 0, -1, in client_dispatch_dns()
258 struct env *env = p; in client_dispatch_parent() local
[all …]
/freebsd/contrib/unbound/dnstap/
H A Ddnstap.c91 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()
110 lock_basic_unlock(&env->sample_lock); in dt_sample_rate_limited()
115 dt_send(const struct dt_env *env, void *buf, size_t len_buf) in dt_send() argument
117 dt_msg_queue_submit(env->msgqueue, buf, len_buf); in dt_send()
[all …]
/freebsd/crypto/heimdal/lib/hx509/
H A Denv.c56 hx509_env_add(hx509_context context, hx509_env *env, in hx509_env_add() argument
82 if (*env) { in hx509_env_add()
83 hx509_env e = *env; in hx509_env_add()
88 *env = n; in hx509_env_add()
107 hx509_env_add_binding(hx509_context context, hx509_env *env, in hx509_env_add_binding() argument
128 if (*env) { in hx509_env_add_binding()
129 hx509_env e = *env; in hx509_env_add_binding()
134 *env = n; in hx509_env_add_binding()
154 hx509_env_lfind(hx509_context context, hx509_env env, in hx509_env_lfind() argument
157 while(env) { in hx509_env_lfind()
[all …]
H A Dsel.c52 eval_word(hx509_context context, hx509_env env, struct hx_expr *word) in eval_word() argument
59 return hx509_env_find(context, env, word->arg1); in eval_word()
61 env = hx509_env_find_binding(context, env, word->arg1); in eval_word()
62 if (env == NULL) in eval_word()
65 return eval_word(context, env, word->arg2); in eval_word()
72 find_variable(hx509_context context, hx509_env env, struct hx_expr *word) in find_variable() argument
77 return hx509_env_find_binding(context, env, word->arg1); in find_variable()
79 env = hx509_env_find_binding(context, env, word->arg1); in find_variable()
80 if (env == NULL) in find_variable()
82 return find_variable(context, env, word->arg2); in find_variable()
[all …]
/freebsd/contrib/bc/tests/
H A Dhistory.py144 # @param env The environment.
146 def test_utf8(exe, args, env, idx, bc=True): argument
149 env["BC_BANNER"] = "0"
151 child = pexpect.spawn(exe, args=args, env=env, encoding='utf-8', codec_errors='ignore')
185 # @param env The environment.
186 def test_utf8_0(exe, args, env, bc=True): argument
189 env["BC_BANNER"] = "0"
191 child = pexpect.spawn(exe, args=args, env=env, encodin
225 test_utf8_1(exe, args, env, bc=True) global() argument
229 test_utf8_2(exe, args, env, bc=True) global() argument
233 test_utf8_3(exe, args, env, bc=True) global() argument
237 test_utf8_4(exe, args, env, bc=True) global() argument
245 test_sigint_sigquit(exe, args, env) global() argument
277 test_eof(exe, args, env) global() argument
311 test_sigint(exe, args, env) global() argument
345 test_sigtstp(exe, args, env) global() argument
389 test_sigstop(exe, args, env) global() argument
432 test_bc_utf8_0(exe, args, env) global() argument
436 test_bc_utf8_1(exe, args, env) global() argument
440 test_bc_utf8_2(exe, args, env) global() argument
444 test_bc_utf8_3(exe, args, env) global() argument
448 test_bc_utf8_4(exe, args, env) global() argument
456 test_bc1(exe, args, env) global() argument
488 test_bc2(exe, args, env) global() argument
521 test_bc3(exe, args, env) global() argument
561 test_bc4(exe, args, env) global() argument
604 test_bc5(exe, args, env) global() argument
633 test_bc6(exe, args, env) global() argument
666 test_bc7(exe, args, env) global() argument
718 test_bc8(exe, args, env) global() argument
749 test_bc9(exe, args, env) global() argument
793 test_bc10(exe, args, env) global() argument
837 test_bc11(exe, args, env) global() argument
872 test_bc12(exe, args, env) global() argument
904 test_dc_utf8_0(exe, args, env) global() argument
908 test_dc_utf8_1(exe, args, env) global() argument
912 test_dc_utf8_2(exe, args, env) global() argument
916 test_dc_utf8_3(exe, args, env) global() argument
920 test_dc_utf8_4(exe, args, env) global() argument
928 test_dc1(exe, args, env) global() argument
959 test_dc2(exe, args, env) global() argument
991 test_dc3(exe, args, env) global() argument
1130 env = { global() variable
[all...]
/freebsd/contrib/unbound/dynlibmod/examples/
H A Dhelloworld.c40 EXPORT int init(struct module_env* env, int id) { in init() argument
42 struct dynlibmod_env* de = (struct dynlibmod_env*) env->modinfo[id]; in init()
45 NULL, env, id); in init()
46 struct dynlibmod_env* local_env = env->modinfo[id]; in init()
53 EXPORT void deinit(struct module_env* env, int id) { in deinit() argument
55 struct dynlibmod_env* de = (struct dynlibmod_env*) env->modinfo[id]; in deinit()
56 de->inplace_cb_delete_wrapped(env, inplace_cb_reply, id); in deinit()
73 struct dynlibmod_env* env = qstate->env->modinfo[id]; in operate() local
74 if (env->dyn_env == NULL) { in operate()
75 env->dyn_env = calloc(3, sizeof(int)); in operate()
[all …]
/freebsd/contrib/unbound/util/
H A Dmodule.c87 if(!str || (qstate->env->cfg->val_log_level < 2 && in errinf_ede()
88 !qstate->env->cfg->log_servfail)) { in errinf_ede()
115 if(qstate->env->cfg->val_log_level < 2 && !qstate->env->cfg->log_servfail) in errinf_origin()
223 if((qstate->env->cfg->val_log_level < 2 && !qstate->env->cfg->log_servfail) || !rr) in errinf_rrset()
236 if((qstate->env->cfg->val_log_level < 2 && !qstate->env->cfg->log_servfail) || !str || !dname) in errinf_dname()
244 edns_known_options_init(struct module_env* env) in edns_known_options_init() argument
246 env->edns_known_options_num = 0; in edns_known_options_init()
247 env->edns_known_options = (struct edns_known_option*)calloc( in edns_known_options_init()
249 if(!env->edns_known_options) return 0; in edns_known_options_init()
254 edns_known_options_delete(struct module_env* env) in edns_known_options_delete() argument
[all …]
/freebsd/contrib/unbound/dnscrypt/
H A Ddnscrypt.c244 dnscrypt_server_uncurve(struct dnsc_env* env, in dnscrypt_server_uncurve() argument
273 lock_basic_lock(&env->nonces_cache_lock); in dnscrypt_server_uncurve()
275 env->nonces_cache, in dnscrypt_server_uncurve()
283 env->num_query_dnscrypt_replay++; in dnscrypt_server_uncurve()
284 lock_basic_unlock(&env->nonces_cache_lock); in dnscrypt_server_uncurve()
289 env->nonces_cache, in dnscrypt_server_uncurve()
294 lock_basic_unlock(&env->nonces_cache_lock); in dnscrypt_server_uncurve()
301 entry = dnsc_shared_secrets_lookup(env->shared_secrets_cache, in dnscrypt_server_uncurve()
306 lock_basic_lock(&env->shared_secrets_cache_lock); in dnscrypt_server_uncurve()
307 env->num_query_dnscrypt_secret_missed_cache++; in dnscrypt_server_uncurve()
[all …]
/freebsd/contrib/unbound/cachedb/
H A Dcachedb.c104 testframe_init(struct module_env* env, struct cachedb_env* cachedb_env) in testframe_init() argument
119 0 /* no aggregation */, env)) { in testframe_init()
130 testframe_deinit(struct module_env* env, struct cachedb_env* cachedb_env) in testframe_deinit() argument
134 (void)env; in testframe_deinit()
145 testframe_lookup(struct module_env* env, struct cachedb_env* cachedb_env, in testframe_lookup() argument
150 (void)env; in testframe_lookup()
172 testframe_store(struct module_env* env, struct cachedb_env* cachedb_env, in testframe_store() argument
177 (void)env; in testframe_store()
244 cachedb_init(struct module_env* env, int id) in cachedb_init() argument
252 env->modinfo[id] = (void*)cachedb_env; in cachedb_init()
[all …]
H A Dredis.c139 redis_init(struct module_env* env, struct cachedb_env* cachedb_env) in redis_init() argument
151 moddata->numctxs = env->cfg->num_threads; in redis_init()
152 moddata->ctxs = calloc(env->cfg->num_threads, sizeof(redisContext*)); in redis_init()
159 moddata->server_host = env->cfg->redis_server_host; in redis_init()
160 moddata->server_port = env->cfg->redis_server_port; in redis_init()
161 moddata->server_path = env->cfg->redis_server_path; in redis_init()
162 moddata->server_password = env->cfg->redis_server_password; in redis_init()
163 moddata->command_timeout.tv_sec = env->cfg->redis_timeout / 1000; in redis_init()
165 (env->cfg->redis_timeout % 1000) * 1000; in redis_init()
166 moddata->connect_timeout.tv_sec = env->cfg->redis_timeout / 1000; in redis_init()
[all …]
/freebsd/contrib/atf/atf-c++/detail/
H A Denv_test.cpp41 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()
67 ATF_REQUIRE(atf::env::has("PATH")); in ATF_TEST_CASE_BODY()
68 const std::string& oldval = atf::env::get("PATH"); in ATF_TEST_CASE_BODY()
69 atf::env::set("PATH", "foo-bar"); in ATF_TEST_CASE_BODY()
70 ATF_REQUIRE(atf::env::get("PATH") != oldval); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/contrib/kyua/model/
H A Dcontext_test.cpp45 std::map< std::string, std::string > env; in ATF_TEST_CASE_BODY() local
46 env["foo"] = "first"; in ATF_TEST_CASE_BODY()
47 env["bar"] = "second"; in ATF_TEST_CASE_BODY()
48 const model::context context(fs::path("/foo/bar"), env); in ATF_TEST_CASE_BODY()
50 ATF_REQUIRE(env == context.env()); in ATF_TEST_CASE_BODY()
57 std::map< std::string, std::string > env; in ATF_TEST_CASE_BODY() local
58 env["foo"] = "first"; in ATF_TEST_CASE_BODY()
59 const model::context context1(fs::path("/foo/bar"), env); in ATF_TEST_CASE_BODY()
60 const model::context context2(fs::path("/foo/bar"), env); in ATF_TEST_CASE_BODY()
61 const model::context context3(fs::path("/foo/baz"), env); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/usr.bin/env/tests/
H A Denv_test.sh17 env magic_words="${magic_words}"
20 env
33 env -u MAGIC_WORDS
44 atf_check env -i
54 atf_check env true
64 atf_check -s exit:1 env false
74 atf_check -s exit:1 env false
87 env -P "${PWD}"
89 env magic_words
91 env -P "${PWD}" magic_words
[all …]
/freebsd/bin/kenv/
H A Dkenv.c63 char *env, *eq, *val; in main() local
67 env = NULL; in main()
98 env = argv[0]; in main()
99 eq = strchr(env, '='); in main()
107 if ((hflag || Nflag) && env != NULL) in main()
111 if (argc > 0 || ((uflag || vflag) && env == NULL)) in main()
113 if (env == NULL) { in main()
128 error = kunsetenv(env); in main()
130 warnx("unable to unset %s", env); in main()
132 error = kgetenv(env); in main()
[all …]
/freebsd/contrib/unbound/daemon/
H A Ddaemon.c263 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()
278 edns_known_options_delete(daemon->env); in daemon_init()
279 free(daemon->env); in daemon_init()
286 edns_known_options_delete(daemon->env); in daemon_init()
287 free(daemon->env); in daemon_init()
295 edns_known_options_delete(daemon->env); in daemon_init()
[all …]
H A Dworker.c134 msg = slabhash_get_mem(worker->env.msg_cache); in worker_mem_report()
135 rrset = slabhash_get_mem(&worker->env.rrset_cache->table); in worker_mem_report()
136 infra = infra_get_mem(worker->env.infra_cache); in worker_mem_report()
137 mesh = mesh_get_mem(worker->env.mesh); in worker_mem_report()
140 anch = anchors_get_mem(worker->env.anchors); in worker_mem_report()
143 for(i=0; i<worker->env.mesh->mods.num; i++) { in worker_mem_report()
144 fptr_ok(fptr_whitelist_mod_get_mem(worker->env.mesh-> in worker_mem_report()
146 if(strcmp(worker->env.mesh->mods.mod[i]->name, "validator")==0) in worker_mem_report()
147 val += (*worker->env.mesh->mods.mod[i]->get_mem) in worker_mem_report()
148 (&worker->env, i); in worker_mem_report()
[all …]
H A Dstats.c99 stats->sum_query_list_size += worker->env.mesh->all.count; in server_stats_querymiss()
100 if((long long)worker->env.mesh->all.count > stats->max_query_list_size) in server_stats_querymiss()
101 stats->max_query_list_size = (long long)worker->env.mesh->all.count; in server_stats_querymiss()
108 stats->sum_query_list_size += worker->env.mesh->all.count; in server_stats_prefetch()
109 if((long long)worker->env.mesh->all.count > stats->max_query_list_size) in server_stats_prefetch()
110 stats->max_query_list_size = (long long)worker->env.mesh->all.count; in server_stats_prefetch()
132 (unsigned)worker->env.mesh->stats_dropped, in server_stats_log()
133 (unsigned)worker->env.mesh->stats_jostled); in server_stats_log()
143 int m = modstack_find(&worker->env.mesh->mods, "subnetcache"); in set_subnet_stats()
147 sne = (struct subnet_env*)worker->env.modinfo[m]; in set_subnet_stats()
[all …]
/freebsd/lib/libc/csu/
H A Dlibc_start1.c97 handle_static_init(int argc, char **argv, char **env) in handle_static_init() argument
112 fn(argc, argv, env); in handle_static_init()
119 fn(argc, argv, env); in handle_static_init()
125 handle_argv(int argc, char *argv[], char **env) in handle_argv() argument
130 environ = env; in handle_argv()
141 handle_irelocs(char *env[]) in handle_irelocs() argument
147 while (*env++ != 0) /* Skip over environment, and NULL terminator */ in handle_irelocs()
149 aux = (const Elf_Auxinfo *)env; in handle_irelocs()
154 (void)env; in handle_irelocs()
159 __libc_start1(int argc, char *argv[], char *env[], void (*cleanup)(void), in __libc_start1() argument
[all …]
/freebsd/crypto/heimdal/lib/roken/
H A Denvironment.c47 find_var(char **env, char *assignment, size_t len) in find_var() argument
50 for(i = 0; env != NULL && env[i] != NULL; i++) in find_var()
51 if(strncmp(env[i], assignment, len) == 0) in find_var()
63 read_env_file(FILE *F, char ***env, int *assigned) in read_env_file() argument
74 for(idx = 0; *env != NULL && (*env)[idx] != NULL; idx++); in read_env_file()
75 l = *env; in read_env_file()
121 *env = l; in read_env_file()
131 read_environment(const char *file, char ***env) in read_environment() argument
139 read_env_file(F, env, &assigned); in read_environment()
145 free_environment(char **env) in free_environment() argument
[all …]
/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_data_tlv.c169 struct bhnd_nvram_tlv_env env; in bhnd_nvram_tlv_getvar_direct() local
191 error = bhnd_nvram_io_read(io, off, &env, sizeof(env)); in bhnd_nvram_tlv_getvar_direct()
199 data_len = NVRAM_TLV_ENVP_DATA_LEN(&env); in bhnd_nvram_tlv_getvar_direct()
200 error = bhnd_nvram_io_read(io, off + sizeof(env), data, in bhnd_nvram_tlv_getvar_direct()
256 struct bhnd_nvram_tlv_env env; in bhnd_nvram_tlv_serialize() local
262 env.hdr.tag = NVRAM_TLV_TYPE_ENV; in bhnd_nvram_tlv_serialize()
263 env.hdr.size = sizeof(env.flags); in bhnd_nvram_tlv_serialize()
264 env.flags = 0x0; in bhnd_nvram_tlv_serialize()
270 if (UINT8_MAX - env.hdr.size < name_len) { in bhnd_nvram_tlv_serialize()
276 env.hdr.size += name_len; in bhnd_nvram_tlv_serialize()
[all …]
/freebsd/contrib/unbound/edns-subnet/
H A Dsubnetmod.c110 sldns_buffer* buf = qstate->env->scratch_buffer; in subnet_ecs_opt_list_append()
137 qstate->env->cfg->client_subnet_opcode, in subnet_ecs_opt_list_append()
154 sn_env = (struct subnet_env*)qstate->env->modinfo[id]; in ecs_whitelist_check()
164 qstate->env->cfg->client_subnet_always_forward) || in ecs_whitelist_check()
172 qstate->env->cfg->client_subnet_opcode)) { in ecs_whitelist_check()
190 qstate->env->cfg->client_subnet_opcode)) { in ecs_whitelist_check()
192 qstate->env->cfg->client_subnet_opcode); in ecs_whitelist_check()
209 subnetmod_init(struct module_env *env, int id) in subnetmod_init() argument
218 env->modinfo[id] = (void*)sn_env; in subnetmod_init()
222 if(env->cfg->serve_expired) in subnetmod_init()
[all …]
/freebsd/contrib/googletest/googletest/test/
H A Dgtest_environment_test.cc101 int RunAllTests(MyEnvironment* env, FailureType failure) { in RunAllTests() argument
105 env->set_failure_in_set_up(failure); in RunAllTests()
113 MyEnvironment* const env = new MyEnvironment; in RegisterTestEnv() local
114 Check(testing::AddGlobalTestEnvironment(env) == env, in RegisterTestEnv()
116 return env; in RegisterTestEnv()
122 MyEnvironment* const env = RegisterTestEnv(); in TestGlobalSetUp() local
123 Check(RunAllTests(env, NO_FAILURE) != 0, in TestGlobalSetUp()
136 MyEnvironment* const env = RegisterTestEnv(); in TestTestsRun() local
137 Check(RunAllTests(env, NON_FATAL_FAILURE) != 0, in TestTestsRun()
150 MyEnvironment* const env = RegisterTestEnv(); in TestNoTestsRunSetUpFailure() local
[all …]
/freebsd/contrib/unbound/libunbound/
H A Dlibworker.c94 if(w->env) { in libworker_delete_env()
96 mesh_delete(w->env->mesh); in libworker_delete_env()
97 context_release_alloc(w->ctx, w->env->alloc, in libworker_delete_env()
99 sldns_buffer_free(w->env->scratch_buffer); in libworker_delete_env()
100 regional_destroy(w->env->scratch); in libworker_delete_env()
101 ub_randfree(w->env->rnd); in libworker_delete_env()
102 free(w->env); in libworker_delete_env()
134 struct config_file* cfg = ctx->env->cfg; in libworker_setup()
140 w->env = (struct module_env*)malloc(sizeof(*w->env)); in libworker_setup()
141 if(!w->env) { in libworker_setup()
[all …]
/freebsd/sys/powerpc/powerpc/
H A Dcopyinout.c163 jmp_buf env; in REMAP() local
171 td->td_pcb->pcb_onfault = &env; in REMAP()
172 if (setjmp(env)) { in REMAP()
202 jmp_buf env; in REMAP() local
210 td->td_pcb->pcb_onfault = &env; in REMAP()
211 if (setjmp(env)) { in REMAP()
241 jmp_buf env; in REMAP() local
253 td->td_pcb->pcb_onfault = &env; in REMAP()
254 if (setjmp(env)) { in REMAP()
294 jmp_buf env; in REMAP() local
[all …]

12345678910>>...38