/systemd-251/src/systemctl/ |
D | systemctl-set-environment.c | 21 const char *sep; in json_transform_message() local 23 sep = strchr(text, '='); in json_transform_message() 24 if (!sep) in json_transform_message() 28 n = strndup(text, sep - text); in json_transform_message() 32 sep++; in json_transform_message() 34 r = json_variant_set_field_string(&v, n, sep); in json_transform_message() 36 … return log_error_errno(r, "Failed to set JSON field '%s' to '%s': %m", n, sep); in json_transform_message() 46 const char *sep; in print_variable() local 49 sep = strchr(s, '='); in print_variable() 50 if (!sep) in print_variable() [all …]
|
/systemd-251/src/basic/ |
D | ether-addr-util.c | 106 static int parse_hw_addr_one_field(const char **s, char sep, size_t len, uint8_t *buf) { in parse_hw_addr_one_field() argument 122 if (*p == '\0' || *p == sep) { in parse_hw_addr_one_field() 144 if (*p != '\0' && *p != sep) in parse_hw_addr_one_field() 159 cont = *p == sep; in parse_hw_addr_one_field() 167 char sep; in parse_hw_addr_full() local 212 sep = s[strspn(s, HEXDIGITS)]; in parse_hw_addr_full() 214 if (sep == '.') in parse_hw_addr_full() 216 else if (IN_SET(sep, ':', '-')) in parse_hw_addr_full() 225 r = parse_hw_addr_one_field(&s, sep, field_size, bytes + i * field_size); in parse_hw_addr_full()
|
D | string-util.c | 897 int split_pair(const char *s, const char *sep, char **l, char **r) { in split_pair() argument 901 assert(sep); in split_pair() 905 if (isempty(sep)) in split_pair() 908 x = strstr(s, sep); in split_pair() 916 b = strdup(x + strlen(sep)); in split_pair()
|
D | strv.h | 87 #define strv_split_and_extend(t, s, sep, dup) strv_split_and_extend_full(t, s, sep, dup, 0) argument
|
D | hexdecoct.c | 654 char sep, int indent, in base64_append_width() argument 676 t[plen] = sep; in base64_append_width() 681 if (line > 0 || sep == '\n') { in base64_append_width()
|
D | string-util.h | 172 int split_pair(const char *s, const char *sep, char **l, char **r);
|
/systemd-251/hwdb.d/ |
D | ids_parser.py | 159 f' ID_{n}_FROM_DATABASE={items[key]}', sep='\n', file=out) 196 f' ID_USB_{n}_FROM_DATABASE={items[key]}', sep='\n', file=out) 234 f' ID_{n}_FROM_DATABASE={items[key]}', sep='\n', file=out) 267 f' ID_PCI_{n}_FROM_DATABASE={items[key]}', sep='\n', file=out) 293 f' ID_{n}_FROM_DATABASE={items[key]}', sep='\n', file=out) 311 f' ID_SDIO_CLASS_FROM_DATABASE={items[klass]}', sep='\n', file=out) 350 f' ID_OUI_FROM_DATABASE={items[pattern]}', sep='\n', file=out)
|
/systemd-251/src/shared/ |
D | journal-importer.c | 286 char *line, *sep; in journal_importer_process_data() local 311 sep = memchr(line, '=', n); in journal_importer_process_data() 312 if (sep) { in journal_importer_process_data() 316 if (!journal_field_valid(line, sep - line, true)) { in journal_importer_process_data() 319 t = strndupa_safe(line, sep - line); in journal_importer_process_data() 354 log_trace("Received: %.*s (%s)", (int) n, line, sep ? "text" : "binary"); in journal_importer_process_data()
|
/systemd-251/src/network/ |
D | networkd-nexthop.c | 1339 char *sep; in config_parse_nexthop_group() local 1356 sep = strchr(word, ':'); in config_parse_nexthop_group() 1357 if (sep) { in config_parse_nexthop_group() 1358 *sep++ = '\0'; in config_parse_nexthop_group() 1359 r = safe_atou32(sep, &w); in config_parse_nexthop_group() 1363 word, sep); in config_parse_nexthop_group() 1369 word, sep); in config_parse_nexthop_group() 1380 lvalue, word, sep ? ":" : "", strempty(sep)); in config_parse_nexthop_group() 1386 lvalue, word, sep ? ":" : "", strempty(sep)); in config_parse_nexthop_group() 1396 nhg->id, lvalue, word, sep ? ":" : "", strempty(sep)); in config_parse_nexthop_group()
|
/systemd-251/src/fstab-generator/ |
D | fstab-generator.c | 694 const char *sep, *a; in sysroot_is_nfsroot() local 717 sep = strchr(arg_root_what + 1, ']'); in sysroot_is_nfsroot() 718 if (!sep) in sysroot_is_nfsroot() 721 a = strndupa_safe(arg_root_what + 1, sep - arg_root_what - 1); in sysroot_is_nfsroot() 731 sep = strchr(arg_root_what, ':'); in sysroot_is_nfsroot() 732 if (sep) { in sysroot_is_nfsroot() 733 a = strndupa_safe(arg_root_what, sep - arg_root_what); in sysroot_is_nfsroot()
|
/systemd-251/src/libsystemd/sd-device/ |
D | sd-device.c | 438 const char *sep; in sd_device_new_from_subsystem_sysname() local 440 sep = strchr(name, ':'); in sd_device_new_from_subsystem_sysname() 441 if (sep && sep[1] != '\0') { /* Require ":" and something non-empty after that. */ in sd_device_new_from_subsystem_sysname() 443 const char *subsys = memdupa_suffix0(name, sep - name); in sd_device_new_from_subsystem_sysname() 444 sep++; in sd_device_new_from_subsystem_sysname() 446 …if (streq(sep, "drivers")) /* If the sysname is "drivers", then it's the drivers directory itself … in sd_device_new_from_subsystem_sysname() 449 r = device_strjoin_new("/sys/bus/", subsys, "/drivers/", sep, ret); in sd_device_new_from_subsystem_sysname() 837 const char *subsys, *sep; in sd_device_new_from_device_id() local 839 sep = strchr(id + 1, ':'); in sd_device_new_from_device_id() 840 if (!sep || sep - id - 1 > NAME_MAX) in sd_device_new_from_device_id() [all …]
|
/systemd-251/src/libsystemd/sd-bus/ |
D | sd-bus.c | 3991 const char *sep, *template_pos; in sd_bus_path_encode_many() local 4002 for (sep = strchr(path_template, '%'); sep; sep = strchr(sep + 1, '%')) { in sd_bus_path_encode_many() 4037 sep = strchrnul(template_pos, '%'); in sd_bus_path_encode_many() 4038 path_pos = mempcpy(path_pos, template_pos, sep - template_pos); in sd_bus_path_encode_many() 4039 if (!*sep) in sd_bus_path_encode_many() 4043 template_pos = sep + 1; in sd_bus_path_encode_many() 4084 const char *sep; in sd_bus_path_decode_many() local 4089 sep = strchrnul(template_pos, '%'); in sd_bus_path_decode_many() 4090 length = sep - template_pos; in sd_bus_path_decode_many() 4107 sep = strchrnul(template_pos, '/'); in sd_bus_path_decode_many() [all …]
|
/systemd-251/src/boot/efi/ |
D | boot.c | 1073 const CHAR8 *sep, in line_get_key_value() argument 1082 assert(sep); in line_get_key_value() 1124 while (*value && !strchra(sep, *value)) in line_get_key_value() 1130 while (*value && strchra(sep, *value)) in line_get_key_value()
|