Home
last modified time | relevance | path

Searched refs:memory_startswith (Results 1 – 8 of 8) sorted by relevance

/systemd-251/src/test/
Dtest-string-util.c571 TEST(memory_startswith) { in TEST() argument
572 assert_se(streq(memory_startswith("", 0, ""), "")); in TEST()
573 assert_se(streq(memory_startswith("", 1, ""), "")); in TEST()
574 assert_se(streq(memory_startswith("x", 2, ""), "x")); in TEST()
575 assert_se(!memory_startswith("", 1, "x")); in TEST()
576 assert_se(!memory_startswith("", 1, "xxxxxxxx")); in TEST()
577 assert_se(streq(memory_startswith("xxx", 4, "x"), "xx")); in TEST()
578 assert_se(streq(memory_startswith("xxx", 4, "xx"), "x")); in TEST()
579 assert_se(streq(memory_startswith("xxx", 4, "xxx"), "")); in TEST()
580 assert_se(!memory_startswith("xxx", 4, "xxxx")); in TEST()
/systemd-251/src/udev/dmi_memory_id/
Ddmi_memory_id.c705 if (size >= 24 && memory_startswith(buf, size, "_SM3_")) in run()
707 if (size >= 31 && memory_startswith(buf, size, "_SM_")) in run()
709 if (size >= 15 && memory_startswith(buf, size, "_DMI_")) in run()
/systemd-251/src/fundamental/
Dstring-util-fundamental.h71 static inline void *memory_startswith(const void *p, size_t sz, const sd_char *token) { in memory_startswith() function
/systemd-251/src/journal-remote/
Djournal-upload-journal.c144 if (memory_startswith(u->field_data, u->field_length, "_BOOT_ID=")) in write_entry()
/systemd-251/src/shared/
Dlogs-show.c794 if (memory_startswith(data, length, "_BOOT_ID=")) in output_export()
964 if (memory_startswith(data, size, "_BOOT_ID=")) in update_json_data_split()
Ddns-domain.c372 if (!memory_startswith(encoded, encoded_size, IDNA_ACE_PREFIX)) in dns_label_undo_idna()
/systemd-251/src/basic/
Dlog.c1079 … if (memory_startswith(input_iovec[i].iov_base, input_iovec[i].iov_len, "MESSAGE=")) { in log_struct_iovec_internal()
/systemd-251/src/libsystemd/sd-bus/
Dbus-socket.c267 p = memory_startswith(s, m, word); in line_begins()