/systemd-251/coccinelle/ |
D | empty-to-null.cocci | 3 /* Avoid running this transformation on the empty_to_null function itself */ 4 position p : script:python() { p[0].current_element != "empty_to_null" }; 9 + empty_to_null(s)
|
/systemd-251/src/locale/ |
D | localed.c | 487 keymap = empty_to_null(keymap); in method_set_vc_keyboard() 488 keymap_toggle = empty_to_null(keymap_toggle); in method_set_vc_keyboard() 667 layout = empty_to_null(layout); in method_set_x11_keyboard() 668 model = empty_to_null(model); in method_set_x11_keyboard() 669 variant = empty_to_null(variant); in method_set_x11_keyboard() 670 options = empty_to_null(options); in method_set_x11_keyboard()
|
D | keymap-util.c | 147 r = free_and_strdup(&c->locale[p], empty_to_null(getenv(name))); in locale_read_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/libsystemd-network/ |
D | sd-lldp-tx.c | 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/shared/ |
D | bus-wait-for-jobs.c | 57 (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()
|
D | user-record-nss.c | 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()
|
D | format-table.c | 698 table_get_data(t, cell)->color = empty_to_null(color); in table_set_color() 712 table_get_data(t, cell)->rgap_color = empty_to_null(color); in table_set_rgap_color()
|
D | conf-parser.c | 1035 return free_and_strdup_warn(s, empty_to_null(rvalue)); in config_parse_string()
|
/systemd-251/src/home/ |
D | homed-conf.c | 52 return free_and_strdup_warn(s, empty_to_null(rvalue)); in config_parse_default_file_system_type()
|
D | homectl.c | 171 TABLE_STRING, strna(empty_to_null(realname)), in list_homes() 173 TABLE_STRING, strna(empty_to_null(shell))); in list_homes()
|
/systemd-251/src/systemctl/ |
D | systemctl-switch-root.c | 39 init = empty_to_null(init); in verb_switch_root()
|
D | systemctl.c | 787 arg_boot_loader_entry = empty_to_null(optarg); in systemctl_parse_argv()
|
/systemd-251/src/sysv-generator/ |
D | sysv-generator.c | 507 j = empty_to_null(strstrip(t+12)); in load_sysv() 572 j = empty_to_null(strstrip(t+12)); in load_sysv() 583 j = empty_to_null(strstrip(t+18)); in load_sysv()
|
/systemd-251/src/journal/ |
D | journald.c | 27 namespace = argc > 1 ? empty_to_null(argv[1]) : NULL; in main()
|
/systemd-251/src/hostname/ |
D | hostnamed.c | 550 r = strv_env_assign(&l, name[p], empty_to_null(c->data[p])); in context_write_data_machine_info() 865 name = empty_to_null(name); in method_set_hostname() 913 name = empty_to_null(name); in method_set_static_hostname() 976 name = empty_to_null(name); in set_machine_info()
|
/systemd-251/src/core/ |
D | dbus-util.c | 61 r = free_and_strdup(p, empty_to_null(v)); in bus_set_transient_string()
|
D | dbus-scope.c | 150 r = free_and_strdup(&s->controller, empty_to_null(controller)); in bus_scope_set_transient_property()
|
D | dbus-util.h | 227 r = free_and_strdup(p, empty_to_null(v)); \
|
D | dbus-execute.c | 2850 r = free_and_strdup(&c->working_directory, empty_to_null(s)); in bus_exec_context_set_transient_property() 2877 … r = free_and_strdup(c->stdio_fdname + STDIN_FILENO, empty_to_null(s)); in bus_exec_context_set_transient_property() 2885 … r = free_and_strdup(c->stdio_fdname + STDOUT_FILENO, empty_to_null(s)); in bus_exec_context_set_transient_property() 2895 … r = free_and_strdup(&c->stdio_fdname[STDERR_FILENO], empty_to_null(s)); in bus_exec_context_set_transient_property() 2926 r = free_and_strdup(&c->stdio_file[STDIN_FILENO], empty_to_null(s)); in bus_exec_context_set_transient_property() 2934 … r = free_and_strdup(&c->stdio_file[STDOUT_FILENO], empty_to_null(s)); in bus_exec_context_set_transient_property() 2952 … r = free_and_strdup(&c->stdio_file[STDERR_FILENO], empty_to_null(s)); in bus_exec_context_set_transient_property()
|
/systemd-251/src/machine/ |
D | machinectl.c | 328 TABLE_STRING, empty_to_null(name), in list_machines() 329 TABLE_STRING, empty_to_null(class), in list_machines() 330 TABLE_STRING, empty_to_null(service), in list_machines() 331 TABLE_STRING, empty_to_null(os), in list_machines() 332 TABLE_STRING, empty_to_null(version_id), in list_machines() 333 TABLE_STRING, empty_to_null(addresses)); in list_machines()
|
/systemd-251/src/basic/ |
D | string-util.h | 60 static inline const char *empty_to_null(const char *p) { in empty_to_null() function
|
/systemd-251/src/resolve/ |
D | resolvectl.c | 752 name = empty_to_null(name); in resolve_service() 753 type = empty_to_null(type); in resolve_service() 895 canonical_name = empty_to_null(canonical_name); in resolve_service() 896 canonical_type = empty_to_null(canonical_type); in resolve_service()
|
/systemd-251/src/network/ |
D | networkd-dhcp-server.c | 636 return free_and_strdup(suboption_value, empty_to_null(p)); in config_parse_dhcp_server_relay_agent_suboption()
|
/systemd-251/src/userdb/ |
D | userdbctl.c | 115 TABLE_STRING, empty_to_null(ur->real_name), in show_user()
|
/systemd-251/src/login/ |
D | logind-dbus.c | 3204 if (streq_ptr(m->wall_message, empty_to_null(wall_message)) && in method_set_wall_message() 3221 r = free_and_strdup(&m->wall_message, empty_to_null(wall_message)); in method_set_wall_message()
|