Home
last modified time | relevance | path

Searched refs:STARTSWITH_SET (Results 1 – 16 of 16) sorted by relevance

/systemd-251/src/shared/
Dweb-util.c17 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()
Dacl-util.c225 p = STARTSWITH_SET(*entry, "default:", "d:"); in parse_acl()
Dcgroup-show.c224 if (!STARTSWITH_SET(xa, "user.", "trusted.")) in show_cgroup_name()
/systemd-251/src/test/
Dtest-strv.c30 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/
Dhome-util.c32 if (STARTSWITH_SET(name, "systemd-", "_")) in suitable_user_name()
/systemd-251/src/basic/
Dparse-util.c327 k = STARTSWITH_SET(s, "0b", "0B"); in mangle_base()
333 k = STARTSWITH_SET(s, "0o", "0O"); in mangle_base()
Dstrv.h196 #define STARTSWITH_SET(p, ...) \ macro
Dpath-util.c1261 if (STARTSWITH_SET(path, "block-", "char-")) in valid_device_allow_pattern()
/systemd-251/src/backlight/
Dbacklight.c75 if (*c == '-' && !STARTSWITH_SET(c, "-LVDS-", "-Embedded DisplayPort-")) in find_pci_or_platform_parent()
/systemd-251/src/login/
Dlogind-core.c621 if (!STARTSWITH_SET(dash, in manager_count_external_displays()
/systemd-251/src/journal-remote/
Djournal-upload.c429 host = STARTSWITH_SET(url, "http://", "https://"); in setup_uploader()
Djournal-remote-main.c678 hostname = STARTSWITH_SET(arg_url, "https://", "http://"); in create_remoteserver()
/systemd-251/src/udev/
Dudevd.c460 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/
Dfstab-generator.c712 STARTSWITH_SET(arg_root_what, "nfs:", "nfs4:")) in sysroot_is_nfsroot()
/systemd-251/src/run/
Drun.c443 STARTSWITH_SET(optarg, in parse_argv()
/systemd-251/src/core/
Dload-fragment.c4161 if (!STARTSWITH_SET(resolved, "block-", "char-")) { in config_parse_device_allow()