Home
last modified time | relevance | path

Searched refs:strv_env_assign (Results 1 – 8 of 8) sorted by relevance

/systemd-251/src/test/
Dtest-env-util.c123 TEST(strv_env_assign) { in TEST() argument
126 assert_se(strv_env_assign(&a, "a", "a") == 1); in TEST()
127 assert_se(strv_env_assign(&a, "b", "b") == 1); in TEST()
128 assert_se(strv_env_assign(&a, "a", "A") == 0); in TEST()
129 assert_se(strv_env_assign(&a, "b", NULL) == 0); in TEST()
131 assert_se(strv_env_assign(&a, "a=", "B") == -EINVAL); in TEST()
/systemd-251/src/basic/
Denv-util.h51 int strv_env_assign(char ***l, const char *key, const char *value);
Denv-util.c444 int strv_env_assign(char ***l, const char *key, const char *value) { in strv_env_assign() function
/systemd-251/src/locale/
Dkeymap-util.c292 r = strv_env_assign(&l, locale_variable_to_string(p), c->locale[p]); in locale_write_data()
326 r = strv_env_assign(&l, "KEYMAP", empty_to_null(c->vc_keymap)); in vconsole_write_data()
330 r = strv_env_assign(&l, "KEYMAP_TOGGLE", empty_to_null(c->vc_keymap_toggle)); in vconsole_write_data()
/systemd-251/src/shared/
Dexec-util.c285 r = strv_env_assign(env, *x, *y); in gather_environment_generate()
/systemd-251/src/core/
Dmanager.c3710 r = strv_env_assign(&nl, "SYSTEMD_SCOPE", MANAGER_IS_SYSTEM(m) ? "system" : "user"); in build_generator_environment()
3719 r = strv_env_assign(&nl, "SYSTEMD_IN_INITRD", one_zero(in_initrd())); in build_generator_environment()
3724 r = strv_env_assign(&nl, "SYSTEMD_FIRST_BOOT", one_zero(m->first_boot)); in build_generator_environment()
3740 r = strv_env_assign(&nl, "SYSTEMD_VIRTUALIZATION", s); in build_generator_environment()
3745 … r = strv_env_assign(&nl, "SYSTEMD_ARCHITECTURE", architecture_to_string(uname_architecture())); in build_generator_environment()
Dexecute.c4570 r = strv_env_assign(&joined_exec_search_path, "PATH", joined); in exec_child()
/systemd-251/src/hostname/
Dhostnamed.c550 r = strv_env_assign(&l, name[p], empty_to_null(c->data[p])); in context_write_data_machine_info()