Home
last modified time | relevance | path

Searched refs:first_word (Results 1 – 15 of 15) sorted by relevance

/systemd-251/src/shared/
Duid-alloc-range.c60 if ((t = first_word(line, "SYS_UID_MIN"))) in read_login_defs()
62 else if ((t = first_word(line, "SYS_UID_MAX"))) in read_login_defs()
64 else if ((t = first_word(line, "SYS_GID_MIN"))) in read_login_defs()
66 else if ((t = first_word(line, "SYS_GID_MAX"))) in read_login_defs()
Dpsi-util.c51 w = first_word(l, t); in read_resource_pressure()
Defi-loader.c163 } else if (first_word(info, "systemd-boot")) { in efi_loader_get_features()
Dinstall.c3184 parameter = first_word(l, "enable"); in read_presets()
3203 parameter = first_word(l, "disable"); in read_presets()
/systemd-251/src/test/
Dtest-string-util.c551 TEST(first_word) { in TEST() argument
552 assert_se(first_word("Hello", "")); in TEST()
553 assert_se(first_word("Hello", "Hello")); in TEST()
554 assert_se(first_word("Hello world", "Hello")); in TEST()
555 assert_se(first_word("Hello\tworld", "Hello")); in TEST()
556 assert_se(first_word("Hello\nworld", "Hello")); in TEST()
557 assert_se(first_word("Hello\rworld", "Hello")); in TEST()
558 assert_se(first_word("Hello ", "Hello")); in TEST()
560 assert_se(!first_word("Hello", "Hellooo")); in TEST()
561 assert_se(!first_word("Hello", "xxxxx")); in TEST()
[all …]
/systemd-251/src/resolve/
Dresolvconf-compat.c242 a = first_word(l, "nameserver"); in resolvconf_parse_argv()
248 a = first_word(l, "domain"); in resolvconf_parse_argv()
250 a = first_word(l, "search"); in resolvconf_parse_argv()
Dresolved-resolv-conf.c140 a = first_word(l, "nameserver"); in manager_read_resolv_conf()
149 a = first_word(l, "domain"); in manager_read_resolv_conf()
151 a = first_word(l, "search"); in manager_read_resolv_conf()
/systemd-251/src/basic/
Dprocfs-util.c145 p = first_word(first_line, "cpu"); in procfs_cpu_get_usage()
241 p = first_word(line, "MemTotal:"); in procfs_memory_get()
245 p = first_word(line, "MemAvailable:"); in procfs_memory_get()
Dstring-util.h82 char *first_word(const char *s, const char *word) _pure_;
Dstring-util.c23 char* first_word(const char *s, const char *word) { in first_word() function
Dcgroup-util.c1843 w = first_word(p, keys[i]); in cg_get_keyed_attribute_full()
/systemd-251/src/shutdown/
Dshutdown.c206 …if (!first_word(line, "NFS_Unstable:") && !first_word(line, "Writeback:") && !first_word(line, "Di… in sync_making_progress()
/systemd-251/src/locale/
Dkeymap-util.c243 if (in_section && first_word(l, "Option")) { in x11_read_data()
266 } else if (!in_section && first_word(l, "Section")) { in x11_read_data()
276 } else if (in_section && first_word(l, "EndSection")) in x11_read_data()
/systemd-251/src/cgtop/
Dcgtop.c318 if (first_word(l, "Read")) { in process()
321 } else if (first_word(l, "Write")) { in process()
/systemd-251/src/network/
Dnetworkd-dhcp-server.c350 a = first_word(l, "nameserver"); in dhcp4_server_set_dns_from_resolve_conf()