Searched refs:memory_startswith (Results 1 – 8 of 8) sorted by relevance
/systemd-251/src/test/ |
D | test-string-util.c | 571 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/ |
D | dmi_memory_id.c | 705 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/ |
D | string-util-fundamental.h | 71 static inline void *memory_startswith(const void *p, size_t sz, const sd_char *token) { in memory_startswith() function
|
/systemd-251/src/journal-remote/ |
D | journal-upload-journal.c | 144 if (memory_startswith(u->field_data, u->field_length, "_BOOT_ID=")) in write_entry()
|
/systemd-251/src/shared/ |
D | logs-show.c | 794 if (memory_startswith(data, length, "_BOOT_ID=")) in output_export() 964 if (memory_startswith(data, size, "_BOOT_ID=")) in update_json_data_split()
|
D | dns-domain.c | 372 if (!memory_startswith(encoded, encoded_size, IDNA_ACE_PREFIX)) in dns_label_undo_idna()
|
/systemd-251/src/basic/ |
D | log.c | 1079 … 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/ |
D | bus-socket.c | 267 p = memory_startswith(s, m, word); in line_begins()
|