Home
last modified time | relevance | path

Searched refs:free_and_strdup (Results 1 – 25 of 97) sorted by relevance

1234

/systemd-251/src/locale/
Dtest-keymap-util.c66 assert_se(free_and_strdup(&c.x11_layout, "foo") >= 0); in TEST()
67 assert_se(free_and_strdup(&c.x11_variant, "bar") >= 0); in TEST()
79 assert_se(free_and_strdup(&c.vc_keymap, "es") >= 0); in TEST()
86 assert_se(free_and_strdup(&c.vc_keymap, "es-dvorak") >= 0); in TEST()
93 assert_se(free_and_strdup(&c.vc_keymap, "fr-latin9") >= 0); in TEST()
100 assert_se(free_and_strdup(&c.vc_keymap, "ru") >= 0); in TEST()
107 assert_se(free_and_strdup(&c.vc_keymap, "us") >= 0); in TEST()
119 assert_se(free_and_strdup(&c.vc_keymap, "foobar") >= 0); in TEST()
129 assert_se(free_and_strdup(&c.x11_layout, "es") >= 0); in TEST()
135 assert_se(free_and_strdup(&c.x11_variant, "foobar") >= 0); in TEST()
[all …]
Dkeymap-util.c147 r = free_and_strdup(&c->locale[p], empty_to_null(getenv(name))); in locale_read_data()
503 … if (free_and_strdup(&c->x11_layout, empty_or_dash_to_null(a[1])) < 0 || in vconsole_convert_to_x11()
504free_and_strdup(&c->x11_model, empty_or_dash_to_null(a[2])) < 0 || in vconsole_convert_to_x11()
505free_and_strdup(&c->x11_variant, empty_or_dash_to_null(a[3])) < 0 || in vconsole_convert_to_x11()
506free_and_strdup(&c->x11_options, empty_or_dash_to_null(a[4])) < 0) in vconsole_convert_to_x11()
632 r = free_and_strdup(&new_keymap, a[0]); in find_legacy_keymap()
Dlocaled.c524 if (free_and_strdup(&c->vc_keymap, keymap) < 0 || in method_set_vc_keyboard()
525 free_and_strdup(&c->vc_keymap_toggle, keymap_toggle) < 0) in method_set_vc_keyboard()
715 if (free_and_strdup(&c->x11_layout, layout) < 0 || in method_set_x11_keyboard()
716 free_and_strdup(&c->x11_model, model) < 0 || in method_set_x11_keyboard()
717 free_and_strdup(&c->x11_variant, variant) < 0 || in method_set_x11_keyboard()
718 free_and_strdup(&c->x11_options, options) < 0) in method_set_x11_keyboard()
/systemd-251/src/veritysetup/
Dveritysetup-generator.c184 r = free_and_strdup(&arg_root_hash, value); in parse_proc_cmdline_item()
193 r = free_and_strdup(&arg_root_data_what, value); in parse_proc_cmdline_item()
202 r = free_and_strdup(&arg_root_hash_what, value); in parse_proc_cmdline_item()
211 r = free_and_strdup(&arg_root_options, value); in parse_proc_cmdline_item()
220 r = free_and_strdup(&arg_usr_hash, value); in parse_proc_cmdline_item()
229 r = free_and_strdup(&arg_usr_data_what, value); in parse_proc_cmdline_item()
238 r = free_and_strdup(&arg_usr_hash_what, value); in parse_proc_cmdline_item()
247 r = free_and_strdup(&arg_usr_options, value); in parse_proc_cmdline_item()
/systemd-251/src/shared/
Dbootspec.c138 r = free_and_strdup(&tmp.title, p); in boot_entry_load_type1()
140 r = free_and_strdup(&tmp.sort_key, p); in boot_entry_load_type1()
142 r = free_and_strdup(&tmp.version, p); in boot_entry_load_type1()
144 r = free_and_strdup(&tmp.machine_id, p); in boot_entry_load_type1()
146 r = free_and_strdup(&tmp.architecture, p); in boot_entry_load_type1()
150 r = free_and_strdup(&tmp.kernel, p); in boot_entry_load_type1()
152 r = free_and_strdup(&tmp.efi, p); in boot_entry_load_type1()
156 r = free_and_strdup(&tmp.device_tree, p); in boot_entry_load_type1()
263 r = free_and_strdup(&config->default_pattern, p); in boot_loader_read_conf()
265 r = free_and_strdup(&config->timeout, p); in boot_loader_read_conf()
[all …]
Dwatchdog.c313 r = free_and_strdup(&watchdog_device, fn); in open_watchdog()
339 r = free_and_strdup(&watchdog_device, path); in watchdog_set_device()
392 if (free_and_strdup(&watchdog_pretimeout_governor, governor) < 0) in watchdog_setup_pretimeout_governor()
Duser-record-nss.c59 r = free_and_strdup(&hr->user_name, pwd->pw_name); in nss_passwd_to_user_record()
70 r = free_and_strdup(&hr->real_name, pwd->pw_gecos); in nss_passwd_to_user_record()
83 r = free_and_strdup(&hr->home_directory, utf8_only(empty_to_null(pwd->pw_dir))); in nss_passwd_to_user_record()
87 r = free_and_strdup(&hr->shell, utf8_only(empty_to_null(pwd->pw_shell))); in nss_passwd_to_user_record()
Dbus-wait-for-jobs.c57 (void) free_and_strdup(&d->result, empty_to_null(result)); in match_job_removed()
59 (void) free_and_strdup(&d->name, empty_to_null(unit)); in match_job_removed()
Dinstall-printf.c68 r = free_and_strdup(&instance, strempty(i->default_instance)); in specifier_instance()
Duser-record.c217 r = free_and_strdup(s, n); in json_dispatch_realm()
238 if (free_and_strdup(s, n) < 0) in json_dispatch_gecos()
375 r = free_and_strdup(s, n); in json_dispatch_filename_or_path()
401 r = free_and_strdup(s, n); in json_dispatch_path()
425 r = free_and_strdup(s, n); in json_dispatch_home_directory()
449 r = free_and_strdup(s, n); in json_dispatch_image_path()
667 r = free_and_strdup(s, n); in dispatch_pkcs11_uri()
/systemd-251/src/firstboot/
Dfirstboot.c898 r = free_and_strdup(&arg_root_shell, p->pw_shell); in process_root_args()
915 r = free_and_strdup(&arg_root_password, p->sp_pwdp); in process_root_args()
1125 r = free_and_strdup(&arg_locale, optarg); in parse_argv()
1132 r = free_and_strdup(&arg_locale_messages, optarg); in parse_argv()
1143 r = free_and_strdup(&arg_keymap, optarg); in parse_argv()
1154 r = free_and_strdup(&arg_timezone, optarg); in parse_argv()
1161 r = free_and_strdup(&arg_root_password, optarg); in parse_argv()
1179 r = free_and_strdup(&arg_root_password, optarg); in parse_argv()
1191 r = free_and_strdup(&arg_root_shell, optarg); in parse_argv()
1202 r = free_and_strdup(&arg_hostname, optarg); in parse_argv()
[all …]
/systemd-251/src/integritysetup/
Dintegrity-util.c52 r = free_and_strdup(ret_data_device, val); in parse_integrity_options()
61 r = free_and_strdup(ret_integrity_alg, val); in parse_integrity_options()
/systemd-251/src/libsystemd-network/
Dsd-lldp-tx.c130 return free_and_strdup(&lldp_tx->ifname, ifname); in sd_lldp_tx_set_ifname()
180 return free_and_strdup(&lldp_tx->port_description, empty_to_null(port_description)); in sd_lldp_tx_set_port_description()
194 return free_and_strdup(&lldp_tx->hostname, empty_to_null(hostname)); in sd_lldp_tx_set_hostname()
204 return free_and_strdup(&lldp_tx->pretty_hostname, empty_to_null(pretty_hostname)); in sd_lldp_tx_set_pretty_hostname()
221 return free_and_strdup(&lldp_tx->mud_url, empty_to_null(mud_url)); in sd_lldp_tx_set_mud_url()
/systemd-251/src/basic/
Dproc-cmdline.c63 r = free_and_strdup(&word, c); in proc_cmdline_extract_first()
202 r = free_and_strdup(&ret, e+1); in cmdline_get_key()
362 r = free_and_strdup(v, e + 1); in proc_cmdline_get_key_many_internal()
Dstring-util.h174 int free_and_strdup(char **p, const char *s);
176 if (free_and_strdup(p, s) < 0) in free_and_strdup_warn()
/systemd-251/src/busctl/
Dbusctl.c807 r = free_and_strdup(&m->interface, interface); in on_interface()
838 r = free_and_strdup(&m->interface, interface); in on_method()
842 r = free_and_strdup(&m->name, name); in on_method()
846 r = free_and_strdup(&m->signature, signature); in on_method()
850 r = free_and_strdup(&m->result, result); in on_method()
881 r = free_and_strdup(&m->interface, interface); in on_signal()
885 r = free_and_strdup(&m->name, name); in on_signal()
889 r = free_and_strdup(&m->signature, signature); in on_signal()
921 r = free_and_strdup(&m->interface, interface); in on_property()
925 r = free_and_strdup(&m->name, name); in on_property()
[all …]
/systemd-251/src/sysv-generator/
Dsysv-generator.c509 r = free_and_strdup(&chkconfig_description, j); in load_sysv()
524 r = free_and_strdup(&s->pid_file, fn); in load_sysv()
574 r = free_and_strdup(&long_description, j); in load_sysv()
585 r = free_and_strdup(&short_description, j); in load_sysv()
/systemd-251/src/udev/
Dudev-builtin-blkid.c182 r = free_and_strdup(&root_id, sid); in find_gpt_root()
186 r = free_and_strdup(&root_label, label); in find_gpt_root()
/systemd-251/src/cryptsetup/
Dcryptsetup.c125 r = free_and_strdup(&arg_cipher, val); in parse_one_option()
211 r = free_and_strdup(&arg_hash, val); in parse_one_option()
315 r = free_and_strdup(&arg_pkcs11_uri, val); in parse_one_option()
328 r = free_and_strdup(&arg_fido2_device, val); in parse_one_option()
358 r = free_and_strdup(&arg_fido2_rp_id, val); in parse_one_option()
368 r = free_and_strdup(&arg_tpm2_device, val); in parse_one_option()
/systemd-251/src/network/generator/
Dnetwork-generator.c364 return free_and_strdup(&network->hostname, hostname); in network_set_hostname()
465 return free_and_strdup(&network->vlan, value); in network_set_vlan()
479 return free_and_strdup(&network->bridge, value); in network_set_bridge()
493 return free_and_strdup(&network->bond, value); in network_set_bond()
/systemd-251/src/core/
Dmanager-serialize.c469 r = free_and_strdup(&m->watchdog_pretimeout_governor_overridden, val); in manager_deserialize()
490 r = free_and_strdup(&m->notify_socket, val); in manager_deserialize()
/systemd-251/src/test/
Dtest-unit-name.c285 assert_se(free_and_strdup(&m->cgroup_root, "/cgroup-root") == 1);
301 assert_se(free_and_strdup(&u->fragment_path, filename) == 1);
362 assert_se(free_and_strdup(&u->fragment_path, filename) == 1);
/systemd-251/src/libsystemd/sd-netlink/
Dnetlink-slot.c187 return free_and_strdup(&slot->description, description); in sd_netlink_slot_set_description()
/systemd-251/src/network/
Dnetworkd-wiphy.c103 r = free_and_strdup(&w->name, name); in wiphy_update_name()
/systemd-251/src/import/
Dpull-tar.c606 r = free_and_strdup(&i->local, local); in tar_pull_start()
610 r = free_and_strdup(&i->checksum, checksum); in tar_pull_start()

1234