/systemd-251/src/test/ |
D | test-escape.c | 43 assert_se(strneq(t, escaped, i - 3) || strneq(t, escaped, i - 4) || in test_xescape_full_one() 44 strneq(t, escaped, i - 5) || strneq(t, escaped, i - 6)); in test_xescape_full_one() 48 assert_se(strneq(t, "...", i)); in test_xescape_full_one()
|
D | test-load-fragment.c | 481 assert_se(strneq(c.log_extra_fields[0].iov_base, "FOO=BAR", c.log_extra_fields[0].iov_len)); in TEST() 482 …assert_se(strneq(c.log_extra_fields[1].iov_base, "QOOF=quux ' ' ", c.log_extra_fields[1].iov_len)… in TEST() 490 assert_se(strneq(c.log_extra_fields[0].iov_base, "FOO=BAR", c.log_extra_fields[0].iov_len)); in TEST() 491 …assert_se(strneq(c.log_extra_fields[1].iov_base, "QOOF=quux ' ' ", c.log_extra_fields[1].iov_len)… in TEST() 492 … assert_se(strneq(c.log_extra_fields[2].iov_base, "FOO2=BAR2", c.log_extra_fields[2].iov_len)); in TEST() 493 … assert_se(strneq(c.log_extra_fields[3].iov_base, "QOOF2=quux", c.log_extra_fields[3].iov_len)); in TEST()
|
D | test-process-util.c | 551 assert_se(strneq(comm, p, TASK_COMM_LEN-1)); in test_rename_process_now() 566 assert_se(strneq(cmdline + skip, p, strlen("test-process-util"))); in test_rename_process_now()
|
D | test-path-util.c | 627 assert_se(strneq(e, *expected++, r)); in test_path_find_first_component_one() 706 assert_se(strneq(e, *expected++, r)); in test_path_find_last_component_one()
|
D | test-copy.c | 213 assert_se(strneq(buf, buf2, r)); in TEST()
|
/systemd-251/src/basic/ |
D | env-util.c | 108 if (strneq(*p, *q, k) && (*q)[k] == '=') in strv_env_is_valid() 163 if (strneq(*j, *a, n)) in env_append() 248 return strneq(t, pattern, l) && t[l] == '='; in env_match() 469 if (strneq(*i, name, k) && in strv_env_get_n() 517 if (strneq(*p, *q, n) && (*q)[n] == '=') { in strv_env_clean_with_callback()
|
D | path-util.c | 155 if (r != k || !strneq(f, t, r)) in path_make_relative() 410 if (!strneq(p, q, r)) in path_startswith_full() 887 if (q > path && strneq(q - 1, "/.", 2)) in skip_slash_or_dot_backward() 968 if (!accept_dot_dot && len == 2 && strneq(last_begin, "..", 2)) in path_find_last_component()
|
D | string-util.c | 964 if (*p && s && strneq(*p, s, l) && (l > strlen(*p) || (*p)[l] == '\0')) in free_and_strndup()
|
D | process-util.c | 934 if (strneq(line, field, l) && line[l] == '=') { in getenv_for_pid()
|
/systemd-251/src/fundamental/ |
D | string-util-fundamental.h | 25 #define strneq(a, b, n) (strncmp((a), (b), (n)) == 0) macro
|
D | string-util-fundamental.c | 17 if (!strneq(s, prefix, l)) in startswith()
|
/systemd-251/src/udev/ |
D | udev-builtin.c | 95 if (builtins[i] && strneq(builtins[i]->name, command, n)) in udev_builtin_lookup()
|
D | udevadm-wait.c | 146 if (strneq(s, name, r)) in device_monitor_handler()
|
D | udev-builtin-net_id.c | 275 bool b = strneq(p + 2, "04", 2); in is_pci_bridge()
|
D | udevd.c | 976 if (!strneq(devpath, loop_devpath, common)) in event_is_blocked()
|
/systemd-251/src/libsystemd/sd-id128/ |
D | id128-util.c | 81 … return f == ID128_PLAIN_OR_UNINIT && strneq(buffer, "uninitialized\n", l) ? -ENOMEDIUM : -EINVAL; in id128_read_fd()
|
/systemd-251/src/shared/ |
D | fstab-util.c | 176 if (!strneq(word, name, strlen(name))) in fstab_filter_options()
|
D | bootspec.c | 598 if (strneq((char*) sections[i].Name, ".osrel", sizeof(sections[i].Name))) in find_sections() 600 else if (strneq((char*) sections[i].Name, ".cmdline", sizeof(sections[i].Name))) in find_sections()
|
D | ethtool-util.c | 628 … if (!strneq((const char*) &strings->data[i * ETH_GSTRING_LEN], feature, ETH_GSTRING_LEN)) in set_features_bit()
|
/systemd-251/src/libsystemd/sd-path/ |
D | sd-path.c | 112 if (!strneq(l, field, n)) in from_user_dir()
|
/systemd-251/src/udev/scsi_id/ |
D | scsi_serial.c | 390 if (strneq((char*) buffer + VENDOR_LENGTH, dev_scsi->vendor, VENDOR_LENGTH)) { in do_scsi_page0_inquiry()
|
/systemd-251/src/portable/ |
D | portable.c | 1421 … if (strneq(a, *image_name_or_path, underscore - *image_name_or_path)) in marker_matches_images() 1460 if (!strneq(a, b, l)) in marker_matches_images()
|
/systemd-251/src/libsystemd/sd-device/ |
D | device-enumerator.c | 300 if (!strneq(devpath_a, devpath_b, prefix_len)) in sound_device_compare()
|
/systemd-251/docs/ |
D | CODING_STYLE.md | 633 - Please use `streq()` and `strneq()` instead of `strcmp()`, `strncmp()` where
|
/systemd-251/src/core/ |
D | load-fragment.c | 6284 if (!prev || !strneq(prev, i, prefix_len+1)) { in unit_dump_config_items()
|