Searched refs:STARTSWITH_SET (Results 1 – 16 of 16) sorted by relevance
/systemd-251/src/shared/ |
D | web-util.c | 17 if (!STARTSWITH_SET(etag, "\"", "W/\"")) in http_etag_is_valid() 29 p = STARTSWITH_SET(url, "http://", "https://"); in http_url_is_valid() 61 p = STARTSWITH_SET(url, "info:", "man:"); in documentation_url_is_valid()
|
D | acl-util.c | 225 p = STARTSWITH_SET(*entry, "default:", "d:"); in parse_acl()
|
D | cgroup-show.c | 224 if (!STARTSWITH_SET(xa, "user.", "trusted.")) in show_cgroup_name()
|
/systemd-251/src/test/ |
D | test-strv.c | 30 assert_se(!STARTSWITH_SET("foo", "bar", "baz", "waldo")); in TEST() 31 assert_se(!STARTSWITH_SET("foo", "bar")); in TEST() 33 assert_se(STARTSWITH_SET("abc", "a", "ab", "abc")); in TEST() 34 assert_se(STARTSWITH_SET("abc", "ax", "ab", "abc")); in TEST() 35 assert_se(STARTSWITH_SET("abc", "ax", "abx", "abc")); in TEST() 36 assert_se(!STARTSWITH_SET("abc", "ax", "abx", "abcx")); in TEST() 38 assert_se(streq_ptr(STARTSWITH_SET("foobar", "hhh", "kkk", "foo", "zzz"), "bar")); in TEST() 39 assert_se(streq_ptr(STARTSWITH_SET("foobar", "hhh", "kkk", "", "zzz"), "foobar")); in TEST() 40 assert_se(streq_ptr(STARTSWITH_SET("", "hhh", "kkk", "zzz", ""), "")); in TEST()
|
/systemd-251/src/home/ |
D | home-util.c | 32 if (STARTSWITH_SET(name, "systemd-", "_")) in suitable_user_name()
|
/systemd-251/src/basic/ |
D | parse-util.c | 327 k = STARTSWITH_SET(s, "0b", "0B"); in mangle_base() 333 k = STARTSWITH_SET(s, "0o", "0O"); in mangle_base()
|
D | strv.h | 196 #define STARTSWITH_SET(p, ...) \ macro
|
D | path-util.c | 1261 if (STARTSWITH_SET(path, "block-", "char-")) in valid_device_allow_pattern()
|
/systemd-251/src/backlight/ |
D | backlight.c | 75 if (*c == '-' && !STARTSWITH_SET(c, "-LVDS-", "-Embedded DisplayPort-")) in find_pci_or_platform_parent()
|
/systemd-251/src/login/ |
D | logind-core.c | 621 if (!STARTSWITH_SET(dash, in manager_count_external_displays()
|
/systemd-251/src/journal-remote/ |
D | journal-upload.c | 429 host = STARTSWITH_SET(url, "http://", "https://"); in setup_uploader()
|
D | journal-remote-main.c | 678 hostname = STARTSWITH_SET(arg_url, "https://", "http://"); in create_remoteserver()
|
/systemd-251/src/udev/ |
D | udevd.c | 460 if (STARTSWITH_SET(val, "dm-", "md", "drbd")) in device_get_whole_disk() 566 if (STARTSWITH_SET(val, "dm-", "md", "drbd", "loop", "nbd", "zram")) in worker_mark_block_device_read_only()
|
/systemd-251/src/fstab-generator/ |
D | fstab-generator.c | 712 STARTSWITH_SET(arg_root_what, "nfs:", "nfs4:")) in sysroot_is_nfsroot()
|
/systemd-251/src/run/ |
D | run.c | 443 STARTSWITH_SET(optarg, in parse_argv()
|
/systemd-251/src/core/ |
D | load-fragment.c | 4161 if (!STARTSWITH_SET(resolved, "block-", "char-")) { in config_parse_device_allow()
|