/systemd-251/src/test/ |
D | test-process-util.c | 245 _cleanup_free_ char *line = NULL; in TEST() local 310 assert_se(get_process_cmdline(0, SIZE_MAX, 0, &line) == -ENOENT); in TEST() 312 assert_se(get_process_cmdline(0, SIZE_MAX, PROCESS_CMDLINE_COMM_FALLBACK, &line) >= 0); in TEST() 313 log_debug("'%s'", line); in TEST() 314 assert_se(streq(line, "[testa]")); in TEST() 315 line = mfree(line); in TEST() 317 …t_process_cmdline(0, SIZE_MAX, PROCESS_CMDLINE_COMM_FALLBACK | PROCESS_CMDLINE_QUOTE, &line) >= 0); in TEST() 318 log_debug("'%s'", line); in TEST() 319 assert_se(streq(line, "\"[testa]\"")); /* quoting is enabled here */ in TEST() 320 line = mfree(line); in TEST() [all …]
|
D | test-fileio.c | 722 _cleanup_free_ char *line = NULL; in test_read_line_one_file() local 724 assert_se(read_line(f, SIZE_MAX, &line) == 15 && streq(line, "Some test data")); in test_read_line_one_file() 725 line = mfree(line); in test_read_line_one_file() 727 assert_se(read_line(f, SIZE_MAX, &line) > 0 && streq(line, "루Non-ascii chars: ąę„”")); in test_read_line_one_file() 728 line = mfree(line); in test_read_line_one_file() 730 assert_se(read_line(f, SIZE_MAX, &line) == 13 && streq(line, "terminators")); in test_read_line_one_file() 731 line = mfree(line); in test_read_line_one_file() 733 assert_se(read_line(f, SIZE_MAX, &line) == 15 && streq(line, "and even more")); in test_read_line_one_file() 734 line = mfree(line); in test_read_line_one_file() 736 assert_se(read_line(f, SIZE_MAX, &line) == 25 && streq(line, "now the same with a NUL")); in test_read_line_one_file() [all …]
|
/systemd-251/src/core/ |
D | load-fragment.c | 236 unsigned line, in config_parse_unit_deps() argument 262 … log_syntax(unit, LOG_WARNING, filename, line, r, "Invalid syntax, ignoring: %s", rvalue); in config_parse_unit_deps() 268 …log_syntax(unit, LOG_WARNING, filename, line, r, "Failed to resolve unit specifiers in '%s', ignor… in config_parse_unit_deps() 274 …log_syntax(unit, LOG_WARNING, filename, line, r, "Failed to determine if '%s' is a recursive depen… in config_parse_unit_deps() 278 log_syntax(unit, LOG_DEBUG, filename, line, 0, in config_parse_unit_deps() 286 …log_syntax(unit, LOG_WARNING, filename, line, r, "Failed to add dependency on %s, ignoring: %m", k… in config_parse_unit_deps() 293 unsigned line, in config_parse_obsolete_unit_deps() argument 302 log_syntax(unit, LOG_WARNING, filename, line, 0, in config_parse_obsolete_unit_deps() 305 …return config_parse_unit_deps(unit, filename, line, section, section_line, lvalue, ltype, rvalue, … in config_parse_obsolete_unit_deps() 311 unsigned line, in config_parse_unit_string_printf() argument [all …]
|
/systemd-251/src/shared/ |
D | conf-parser.c | 123 unsigned line, in next_assignment() argument 139 assert(line > 0); in next_assignment() 151 return func(unit, filename, line, section, section_line, in next_assignment() 157 log_syntax(unit, LOG_WARNING, filename, line, 0, in next_assignment() 167 unsigned line, in parse_line() argument 181 assert(line > 0); in parse_line() 193 return log_syntax_invalid_utf8(unit, LOG_WARNING, filename, line, l); in parse_line() 203 …return log_syntax(unit, LOG_ERR, filename, line, SYNTHETIC_ERRNO(EBADMSG), "Invalid section header… in parse_line() 210 …return log_syntax(unit, LOG_ERR, filename, line, SYNTHETIC_ERRNO(EBADMSG), "Bad characters in sect… in parse_line() 226 … log_syntax(unit, LOG_WARNING, filename, line, 0, "Unknown section '%s'. Ignoring.", n); in parse_line() [all …]
|
D | journal-importer.c | 50 static int get_line(JournalImporter *imp, char **line, size_t *size) { in get_line() argument 106 *line = imp->buf + imp->offset; in get_line() 213 static int process_special_field(JournalImporter *imp, char *line) { in process_special_field() argument 218 assert(line); in process_special_field() 220 value = startswith(line, "__CURSOR="); in process_special_field() 225 value = startswith(line, "__REALTIME_TIMESTAMP="); in process_special_field() 242 value = startswith(line, "__MONOTONIC_TIMESTAMP="); in process_special_field() 260 value = startswith(line, "_BOOT_ID="); in process_special_field() 271 value = startswith(line, "__"); in process_special_field() 286 char *line, *sep; in journal_importer_process_data() local [all …]
|
D | xml.c | 17 static void inc_lines(unsigned *line, const char *s, size_t n) { in inc_lines() argument 20 if (!line) in inc_lines() 32 (*line)++; in inc_lines() 41 int xml_tokenize(const char **p, char **name, void **state, unsigned *line) { in xml_tokenize() argument 55 if (line) in xml_tokenize() 56 *line = 1; in xml_tokenize() 76 inc_lines(line, c, e - c); in xml_tokenize() 94 inc_lines(line, b, e + 3 - b); in xml_tokenize() 107 inc_lines(line, b, e + 2 - b); in xml_tokenize() 120 inc_lines(line, b, e + 1 - b); in xml_tokenize() [all …]
|
D | hwdb-util.c | 435 static int insert_data(struct trie *trie, char **match_list, char *line, const char *filename, in insert_data() argument 439 assert(line[0] == ' '); in insert_data() 441 value = strchr(line, '='); in insert_data() 444 "Key-value pair expected but got \"%s\", ignoring.", line); in insert_data() 450 while (isblank(line[0]) && isblank(line[1])) in insert_data() 451 line++; in insert_data() 453 if (isempty(line + 1)) in insert_data() 456 line, value); in insert_data() 459 … trie_insert(trie, trie->root, *entry, line, value, filename, file_priority, line_number, compat); in insert_data() 480 _cleanup_free_ char *line = NULL; in import_file() local [all …]
|
D | netif-sriov.c | 307 sr_iov->section->filename, sr_iov->section->line); in sr_iov_section_verify() 313 sr_iov->section->filename, sr_iov->section->line); in sr_iov_section_verify() 335 dup->section->filename, sr_iov->section->line, in sr_iov_drop_invalid_sections() 336 dup->section->line, dup->section->line); in sr_iov_drop_invalid_sections() 352 unsigned line, in config_parse_sr_iov_uint32() argument 391 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_sr_iov_uint32() 398 … log_syntax(unit, LOG_WARNING, filename, line, 0, "Invalid SR-IOV VLANId: %d", k); in config_parse_sr_iov_uint32() 404 … log_syntax(unit, LOG_WARNING, filename, line, 0, "Invalid SR-IOV virtual function: %d", k); in config_parse_sr_iov_uint32() 420 unsigned line, in config_parse_sr_iov_vlan_proto() argument 447 log_syntax(unit, LOG_WARNING, filename, line, 0, in config_parse_sr_iov_vlan_proto() [all …]
|
/systemd-251/src/basic/ |
D | proc-cmdline.c | 81 int proc_cmdline_parse_given(const char *line, proc_cmdline_parse_t parse_item, void *data, ProcCmd… in proc_cmdline_parse_given() argument 91 p = line; in proc_cmdline_parse_given() 115 _cleanup_free_ char *line = NULL; in proc_cmdline_parse() local 123 r = systemd_efi_options_variable(&line); in proc_cmdline_parse() 128 r = proc_cmdline_parse_given(line, parse_item, data, flags); in proc_cmdline_parse() 132 line = mfree(line); in proc_cmdline_parse() 136 r = proc_cmdline(&line); in proc_cmdline_parse() 140 return proc_cmdline_parse_given(line, parse_item, data, flags); in proc_cmdline_parse() 175 static int cmdline_get_key(const char *line, const char *key, ProcCmdlineFlags flags, char **ret_va… in cmdline_get_key() argument 181 assert(line); in cmdline_get_key() [all …]
|
D | log.c | 378 int line, in write_to_console() argument 419 (void) snprintf(location, sizeof location, "%s%s:%i%s: ", lon, file, line, loff); in write_to_console() 455 int line, in write_to_syslog() argument 516 int line, in write_to_kmsg() argument 560 const char *file, int line, const char *func, in log_do_header() argument 584 line ? "CODE_LINE=" : "", in log_do_header() 585 line ? 1 : 0, line, /* %.0d means no output too, special case for 0 */ in log_do_header() 586 line ? "\n" : "", in log_do_header() 609 int line, in write_to_journal() argument 622 …log_do_header(header, sizeof(header), level, error, file, line, func, object_field, object, extra_… in write_to_journal() [all …]
|
D | env-file.c | 18 int (*push) (const char *filename, unsigned line, in parse_env_file_internal() argument 24 unsigned line = 1; in parse_env_file_internal() local 69 line++; in parse_env_file_internal() 91 line++; in parse_env_file_internal() 101 r = push(fname, line, key, value, userdata); in parse_env_file_internal() 129 line++; in parse_env_file_internal() 144 r = push(fname, line, key, value, userdata); in parse_env_file_internal() 232 line++; in parse_env_file_internal() 263 r = push(fname, line, key, value, userdata); in parse_env_file_internal() 274 const char *filename, unsigned line, in check_utf8ness_and_warn() argument [all …]
|
D | log.h | 92 int line, 104 int line, 112 int line, 121 int line, 134 int line, 146 int line, 153 int line, 169 int line, 179 int line, 187 int line, [all …]
|
/systemd-251/src/network/ |
D | networkd-dhcp-common.c | 269 unsigned line, in config_parse_dhcp() argument 297 log_syntax(unit, LOG_WARNING, filename, line, s, in config_parse_dhcp() 302 log_syntax(unit, LOG_WARNING, filename, line, 0, in config_parse_dhcp() 314 unsigned line, in config_parse_dhcp_or_ra_route_metric() argument 335 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_dhcp_or_ra_route_metric() 366 unsigned line, in config_parse_dhcp_use_dns() argument 386 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_dhcp_use_dns() 417 unsigned line, in config_parse_dhcp_use_domains() argument 437 log_syntax(unit, LOG_WARNING, filename, line, d, in config_parse_dhcp_use_domains() 468 unsigned line, in config_parse_dhcp_use_ntp() argument [all …]
|
D | networkd-radv.c | 705 p->section->filename, p->section->line); in prefix_section_verify() 711 p->section->filename, p->prefixlen, p->section->line); in prefix_section_verify() 720 p->section->filename, p->prefixlen, p->section->line, in prefix_section_verify() 731 p->section->filename, p->section->line); in prefix_section_verify() 740 p->section->line); in prefix_section_verify() 763 p->section->filename, p->prefixlen, p->section->line); in route_prefix_section_verify() 769 p->section->filename, p->section->line); in route_prefix_section_verify() 787 unsigned line, in config_parse_prefix() argument 813 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_prefix() 828 unsigned line, in config_parse_prefix_boolean() argument [all …]
|
/systemd-251/src/nspawn/ |
D | nspawn-settings.c | 243 unsigned line, in config_parse_expose_port() argument 261 …log_syntax(unit, LOG_WARNING, filename, line, r, "Duplicate port specification, ignoring: %s", rva… in config_parse_expose_port() 263 … log_syntax(unit, LOG_WARNING, filename, line, r, "Failed to parse host port %s: %m", rvalue); in config_parse_expose_port() 271 unsigned line, in config_parse_capability() argument 294 …log_syntax(unit, LOG_WARNING, filename, line, r, "Failed to extract capability string, ignoring: %… in config_parse_capability() 305 …log_syntax(unit, LOG_WARNING, filename, line, r, "Failed to parse capability, ignoring: %s", word); in config_parse_capability() 320 unsigned line, in config_parse_pivot_root() argument 338 …log_syntax(unit, LOG_WARNING, filename, line, r, "Invalid pivot root mount specification %s: %m", … in config_parse_pivot_root() 346 unsigned line, in config_parse_bind() argument 364 …log_syntax(unit, LOG_WARNING, filename, line, r, "Invalid bind mount specification %s: %m", rvalue… in config_parse_bind() [all …]
|
/systemd-251/src/resolve/ |
D | resolved-dns-trust-anchor.c | 201 static int dns_trust_anchor_load_positive(DnsTrustAnchor *d, const char *path, unsigned line, const… in dns_trust_anchor_load_positive() argument 210 assert(line); in dns_trust_anchor_load_positive() 214 return log_warning_errno(r, "Unable to parse domain in line %s:%u: %m", path, line); in dns_trust_anchor_load_positive() 218 …iled to check validity of domain name '%s', at line %s:%u, ignoring line: %m", domain, path, line); in dns_trust_anchor_load_positive() 220 … log_warning("Domain name %s is invalid, at line %s:%u, ignoring line.", domain, path, line); in dns_trust_anchor_load_positive() 226 … return log_warning_errno(r, "Unable to parse class and type in line %s:%u: %m", path, line); in dns_trust_anchor_load_positive() 228 log_warning("Missing class or type in line %s:%u", path, line); in dns_trust_anchor_load_positive() 233 … log_warning("RR class %s is not supported, ignoring line %s:%u.", class, path, line); in dns_trust_anchor_load_positive() 246 … log_warning_errno(r, "Failed to parse DS parameters on line %s:%u: %m", path, line); in dns_trust_anchor_load_positive() 250 log_warning("Missing DS parameters on line %s:%u", path, line); in dns_trust_anchor_load_positive() [all …]
|
D | resolved-conf.c | 132 unsigned line, in config_parse_dns_servers() argument 156 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_dns_servers() 175 unsigned line, in config_parse_search_domains() argument 199 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_search_domains() 215 unsigned line, in config_parse_dnssd_service_name() argument 252 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_dnssd_service_name() 258 log_syntax(unit, LOG_WARNING, filename, line, 0, in config_parse_dnssd_service_name() 270 unsigned line, in config_parse_dnssd_service_type() argument 293 … log_syntax(unit, LOG_WARNING, filename, line, 0, "Service type is invalid. Ignoring."); in config_parse_dnssd_service_type() 307 unsigned line, in config_parse_dnssd_txt() argument [all …]
|
/systemd-251/test/ |
D | rule-syntax-check.py | 35 for line in open(path): 39 if line.endswith('\\\n'): 40 buffer += line[:-2] 43 line = buffer + line variable 47 line = line.strip() variable 48 if not line or line.startswith('#'): 53 for clause_match in comma_separated_group_re.finditer(line): 59 print('Invalid line {}:{}: {}'.format(path, lineno, line))
|
/systemd-251/src/network/tc/ |
D | cake.c | 131 unsigned line, in config_parse_cake_bandwidth() argument 155 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_cake_bandwidth() 171 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_cake_bandwidth() 186 unsigned line, in config_parse_cake_overhead() argument 210 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_cake_overhead() 225 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_cake_overhead() 231 log_syntax(unit, LOG_WARNING, filename, line, 0, in config_parse_cake_overhead() 246 unsigned line, in config_parse_cake_mpu() argument 270 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_cake_mpu() 285 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_cake_mpu() [all …]
|
D | ets.c | 82 unsigned line, in config_parse_ets_u8() argument 106 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_ets_u8() 128 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_ets_u8() 134 log_syntax(unit, LOG_WARNING, filename, line, 0, in config_parse_ets_u8() 149 unsigned line, in config_parse_ets_quanta() argument 172 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_ets_quanta() 195 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_ets_quanta() 204 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_ets_quanta() 210 log_syntax(unit, LOG_WARNING, filename, line, 0, in config_parse_ets_quanta() 216 log_syntax(unit, LOG_WARNING, filename, line, 0, in config_parse_ets_quanta() [all …]
|
D | fq.c | 108 unsigned line, in config_parse_fair_queueing_u32() argument 132 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_fair_queueing_u32() 159 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_fair_queueing_u32() 173 unsigned line, in config_parse_fair_queueing_size() argument 198 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_fair_queueing_size() 221 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_fair_queueing_size() 227 log_syntax(unit, LOG_WARNING, filename, line, 0, in config_parse_fair_queueing_size() 242 unsigned line, in config_parse_fair_queueing_bool() argument 265 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_fair_queueing_bool() 281 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_fair_queueing_bool() [all …]
|
D | htb.c | 51 unsigned line, in config_parse_hierarchy_token_bucket_default_class() argument 74 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_hierarchy_token_bucket_default_class() 90 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_hierarchy_token_bucket_default_class() 104 unsigned line, in config_parse_hierarchy_token_bucket_u32() argument 127 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_hierarchy_token_bucket_u32() 143 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_hierarchy_token_bucket_u32() 247 unsigned line, in config_parse_hierarchy_token_bucket_class_u32() argument 271 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_hierarchy_token_bucket_class_u32() 286 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_hierarchy_token_bucket_class_u32() 301 unsigned line, in config_parse_hierarchy_token_bucket_class_size() argument [all …]
|
/systemd-251/tools/ |
D | analyze-dump-sort.py | 28 for line in sourcefile: 29 line = line.rstrip() 31 header = line.split(':')[0] 33 line = header + ': …' 35 if line.startswith('->'): 38 unit = [line] 39 elif line.startswith('\t'): 43 same.append(line) 46 same = [line] 48 print(line, file=destfile)
|
/systemd-251/src/binfmt/ |
D | binfmt.c | 35 static int apply_rule(const char *filename, unsigned line, const char *rule) { in apply_rule() argument 37 assert(line > 0); in apply_rule() 54 filename, line, rulename); in apply_rule() 58 filename, line, rulename); in apply_rule() 60 log_debug("%s:%u: Rule '%s' deleted.", filename, line, rulename); in apply_rule() 65 filename, line, rulename); in apply_rule() 67 log_debug("%s:%u: Binary format '%s' registered.", filename, line, rulename); in apply_rule() 87 for (unsigned line = 1;; line++) { in apply_file() local 104 k = apply_rule(filename, line, p); in apply_file()
|
/systemd-251/src/network/netdev/ |
D | wireguard.c | 456 unsigned line, in config_parse_wireguard_listen_port() argument 478 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_wireguard_listen_port() 491 unsigned line, in wireguard_decode_key_and_warn() argument 509 (void) warn_file_is_world_accessible(filename, NULL, unit, line); in wireguard_decode_key_and_warn() 515 log_syntax(unit, LOG_WARNING, filename, line, r, in wireguard_decode_key_and_warn() 520 log_syntax(unit, LOG_WARNING, filename, line, 0, in wireguard_decode_key_and_warn() 533 unsigned line, in config_parse_wireguard_private_key() argument 548 return wireguard_decode_key_and_warn(rvalue, w->private_key, unit, filename, line, lvalue); in config_parse_wireguard_private_key() 554 unsigned line, in config_parse_wireguard_private_key_file() argument 579 if (path_simplify_and_warn(path, PATH_CHECK_ABSOLUTE, unit, filename, line, lvalue) < 0) in config_parse_wireguard_private_key_file() [all …]
|