Home
last modified time | relevance | path

Searched refs:strndupa_safe (Results 1 – 25 of 50) sorted by relevance

12

/systemd-251/src/basic/
Dpercent-util.c15 n = strndupa_safe(p, pc - p); in parse_parts_value_whole()
40 n = strndupa_safe(p, dot - p); in parse_parts_value_with_tenths_place()
43 n = strndupa_safe(p, pc - p); in parse_parts_value_with_tenths_place()
84 n = strndupa_safe(p, dot - p); in parse_parts_value_with_hundredths_place()
87 n = strndupa_safe(p, pc - p); in parse_parts_value_with_hundredths_place()
Denv-util.c391 name = strndupa_safe(p, t - p); in strv_env_replace_consume()
476 t = strndupa_safe(name, k); in strv_env_get_n()
795 n = strndupa_safe(assignment, e - assignment); in putenv_dup()
Dtime-util.c677 t = strndupa_safe(t, k - t); in parse_timestamp_impl()
686 t = strndupa_safe(t, k - t); in parse_timestamp_impl()
698 t = strndupa_safe(t, utc - t); in parse_timestamp_impl()
730 t = strndupa_safe(t, e - t - 1); in parse_timestamp_impl()
941 t = strndupa_safe(t, last_space - t); in parse_timestamp()
Ddevnum-util.c26 major = strndupa_safe(s, n); in parse_devnum()
Dprocfs-util.c111 nr = strndupa_safe(p, n); in procfs_tasks_get_current()
Dalloc-util.h211 #define strndupa_safe(s, n) \ macro
Dmkdir.c121 path = strndupa_safe(path, e - path); in mkdir_parents_internal()
Dmountpoint-util.c159 copied = strndupa_safe(s, slash - s); in filename_possibly_with_slash_suffix()
/systemd-251/src/network/generator/
Dnetwork-generator.c506 mtu = strndupa_safe(value, p - value); in parse_cmdline_ip_mtu_mac()
542 buf = strndupa_safe(p + 1, q - p - 1); in parse_ip_address_one()
549 buf = strndupa_safe(p, q - p); in parse_ip_address_one()
580 q = strndupa_safe(*value, p - *value); in parse_netmask_or_prefixlen()
619 hostname = strndupa_safe(value, p - value); in parse_cmdline_ip_address()
631 ifname = strndupa_safe(value, p - value); in parse_cmdline_ip_address()
640 dhcp_type = strndupa_safe(value, p - value); in parse_cmdline_ip_address()
675 dns = strndupa_safe(value, p - value); in parse_cmdline_ip_address()
697 ifname = strndupa_safe(value, p - value); in parse_cmdline_ip_interface()
704 dhcp_type = strndupa_safe(value, p - value); in parse_cmdline_ip_interface()
[all …]
/systemd-251/src/shared/
Dpager.c313 page = strndupa_safe(desc, e - desc); in show_man_page()
314 section = strndupa_safe(e + 1, desc + k - e - 2); in show_man_page()
Djournal-importer.c319 t = strndupa_safe(line, sep - line); in journal_importer_process_data()
338 t = strndupa_safe(line, n - 1); in journal_importer_process_data()
Dbus-get-properties.c133 s = is_soft ? strndupa_safe(property, is_soft - property) : property; in bus_property_get_rlimit()
Duid-range.c125 b = strndupa_safe(s, t - s); in uid_range_add_str()
Dbus-unit-util.c610 path = strndupa_safe(eq, e - eq); in bus_append_cgroup_property()
636 path = strndupa_safe(eq, e - eq); in bus_append_cgroup_property()
670 path = strndupa_safe(eq, e - eq); in bus_append_cgroup_property()
701 path = strndupa_safe(eq, e - eq); in bus_append_cgroup_property()
2534 field = strndupa_safe(assignment, eq - assignment); in bus_append_unit_property_assignment()
Dbus-unit-procs.c49 pp = strndupa_safe(path, e - path); in add_cgroup()
Ddns-domain.c677 prefix = strndupa_safe(name, saved_before - name); in dns_name_change_suffix()
1025 s = strndupa_safe(label, n); in dns_service_name_label_is_valid()
Dselinux-util.c620 path = strndupa_safe(un->sun_path, in mac_selinux_bind()
/systemd-251/coccinelle/
Dstrdupa.cocci11 + strndupa_safe(x, n)
/systemd-251/src/boot/
Dbless-boot.c171 z = strndupa_safe(e, k); in parse_counter()
187 z = strndupa_safe(e, k); in parse_counter()
/systemd-251/src/test/
Dtest-hexdecoct.c89 answer = strndupa_safe(strempty(s), l); in test_unhexmem_one()
195 str = strndupa_safe(mem, len); in test_unbase32hexmem_one()
/systemd-251/src/coredump/
Dcoredump-vacuum.c65 u = strndupa_safe(p, e - p); in uid_from_file_name()
/systemd-251/src/core/
Ddbus-util.c120 char *n = strndupa_safe(name, strlen(name) - 4); in bus_set_transient_usec_internal()
/systemd-251/src/locale/
Dkeymap-util.c646 l = strndupa_safe(c->x11_layout, strcspn(c->x11_layout, ",")); in find_legacy_keymap()
648 v = strndupa_safe(c->x11_variant, in find_legacy_keymap()
/systemd-251/src/fstab-generator/
Dfstab-generator.c721 a = strndupa_safe(arg_root_what + 1, sep - arg_root_what - 1); in sysroot_is_nfsroot()
733 a = strndupa_safe(arg_root_what, sep - arg_root_what); in sysroot_is_nfsroot()
/systemd-251/src/backlight/
Dbacklight.c391 ss = strndupa_safe(argv[2], sysname - argv[2]); in run()

12