Home
last modified time | relevance | path

Searched refs:proc_cmdline_key_startswith (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/test/
Dtest-proc-cmdline.c236 TEST(proc_cmdline_key_startswith) { in TEST() argument
237 assert_se(proc_cmdline_key_startswith("", "")); in TEST()
238 assert_se(proc_cmdline_key_startswith("x", "")); in TEST()
239 assert_se(!proc_cmdline_key_startswith("", "x")); in TEST()
240 assert_se(proc_cmdline_key_startswith("x", "x")); in TEST()
241 assert_se(!proc_cmdline_key_startswith("x", "y")); in TEST()
242 assert_se(!proc_cmdline_key_startswith("foo-bar", "quux")); in TEST()
243 assert_se(proc_cmdline_key_startswith("foo-bar", "foo")); in TEST()
244 assert_se(proc_cmdline_key_startswith("foo-bar", "foo-bar")); in TEST()
245 assert_se(proc_cmdline_key_startswith("foo-bar", "foo_bar")); in TEST()
[all …]
/systemd-251/src/basic/
Dproc-cmdline.c149 char *proc_cmdline_key_startswith(const char *s, const char *prefix) { in proc_cmdline_key_startswith() function
197 e = proc_cmdline_key_startswith(word, key); in cmdline_get_key()
360 e = proc_cmdline_key_startswith(word, k); in proc_cmdline_get_key_many_internal()
Dproc-cmdline.h28 char *proc_cmdline_key_startswith(const char *s, const char *prefix);