Home
last modified time | relevance | path

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

/systemd-251/src/test/
Dtest-escape.c43 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()
Dtest-load-fragment.c481 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()
Dtest-process-util.c551 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()
Dtest-path-util.c627 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()
Dtest-copy.c213 assert_se(strneq(buf, buf2, r)); in TEST()
/systemd-251/src/basic/
Denv-util.c108 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()
Dpath-util.c155 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()
Dstring-util.c964 if (*p && s && strneq(*p, s, l) && (l > strlen(*p) || (*p)[l] == '\0')) in free_and_strndup()
Dprocess-util.c934 if (strneq(line, field, l) && line[l] == '=') { in getenv_for_pid()
/systemd-251/src/fundamental/
Dstring-util-fundamental.h25 #define strneq(a, b, n) (strncmp((a), (b), (n)) == 0) macro
Dstring-util-fundamental.c17 if (!strneq(s, prefix, l)) in startswith()
/systemd-251/src/udev/
Dudev-builtin.c95 if (builtins[i] && strneq(builtins[i]->name, command, n)) in udev_builtin_lookup()
Dudevadm-wait.c146 if (strneq(s, name, r)) in device_monitor_handler()
Dudev-builtin-net_id.c275 bool b = strneq(p + 2, "04", 2); in is_pci_bridge()
Dudevd.c976 if (!strneq(devpath, loop_devpath, common)) in event_is_blocked()
/systemd-251/src/libsystemd/sd-id128/
Did128-util.c81 … return f == ID128_PLAIN_OR_UNINIT && strneq(buffer, "uninitialized\n", l) ? -ENOMEDIUM : -EINVAL; in id128_read_fd()
/systemd-251/src/shared/
Dfstab-util.c176 if (!strneq(word, name, strlen(name))) in fstab_filter_options()
Dbootspec.c598 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()
Dethtool-util.c628 … if (!strneq((const char*) &strings->data[i * ETH_GSTRING_LEN], feature, ETH_GSTRING_LEN)) in set_features_bit()
/systemd-251/src/libsystemd/sd-path/
Dsd-path.c112 if (!strneq(l, field, n)) in from_user_dir()
/systemd-251/src/udev/scsi_id/
Dscsi_serial.c390 if (strneq((char*) buffer + VENDOR_LENGTH, dev_scsi->vendor, VENDOR_LENGTH)) { in do_scsi_page0_inquiry()
/systemd-251/src/portable/
Dportable.c1421 … 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/
Ddevice-enumerator.c300 if (!strneq(devpath_a, devpath_b, prefix_len)) in sound_device_compare()
/systemd-251/docs/
DCODING_STYLE.md633 - Please use `streq()` and `strneq()` instead of `strcmp()`, `strncmp()` where
/systemd-251/src/core/
Dload-fragment.c6284 if (!prev || !strneq(prev, i, prefix_len+1)) { in unit_dump_config_items()