Searched defs:word (Results 1 - 25 of 41) sorted by relevance

12

/systemd/src/basic/
H A Dproc-cmdline.c25 #include "extract-word.h"
58 _cleanup_free_ char *word = NULL; local
61 r = extract_first_word(&p, &word, NULL, EXTRACT_QUOTES|EXTRACT_RELAX);
69 if (!in_initrd() && startswith(word, "rd."))
72 value = strchr(word, '=');
76 r = parse_item(word, value);
98 _cleanup_free_ char *word = NULL; local
101 r = extract_first_word(&p, &word, NULL, EXTRACT_QUOTES|EXTRACT_RELAX);
109 if (!in_initrd() && startswith(word, "rd."))
113 e = startswith(word, ke
165 runlevel_to_target(const char *word) argument
[all...]
H A Dcpu-set-util.c27 #include "extract-word.h"
78 _cleanup_free_ char *word = NULL; local
82 r = extract_first_word(&rvalue, &word, WHITESPACE ",", EXTRACT_QUOTES);
94 r = parse_range(word, &cpu_lower, &cpu_upper);
96 return log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse CPU affinity '%s'", word);
98 return log_syntax(unit, LOG_ERR, filename, line, EINVAL, "CPU out of range '%s' ncpus is %u", word, ncpus);
101 log_syntax(unit, LOG_WARNING, filename, line, 0, "Range '%s' is invalid, %u > %u", word, cpu_lower, cpu_upper);
H A Dparse-util.c29 #include "extract-word.h"
235 _cleanup_free_ char *word = NULL; local
243 r = extract_first_word(&t, &word, "-", EXTRACT_DONT_COALESCE_SEPARATORS);
249 r = safe_atou(word, &l);
H A Denv-util.c29 #include "extract-word.h"
479 const char *e, *word = format; local
495 k = strnappend(r, word, e-word-1);
502 word = e-1;
506 k = strnappend(r, word, e-word);
513 word = e+1;
523 t = strempty(strv_env_get_n(env, word+2, e-word
[all...]
/systemd/src/getty-generator/
H A Dgetty-generator.c160 const char *word, *state; local
163 FOREACH_WORD(word, l, container_ttys, state) {
167 memcpy(tty, word, l);
190 const char *word, *state; local
195 FOREACH_WORD(word, l, active, state) {
198 tty = strndup(word, l);
/systemd/src/resolve/
H A Dresolved-conf.c23 #include "extract-word.h"
28 int manager_add_dns_server_by_string(Manager *m, DnsServerType type, const char *word) { argument
34 assert(word);
36 r = in_addr_from_string_auto(word, &family, &address);
63 _cleanup_free_ char *word = NULL; local
65 r = extract_first_word(&string, &word, NULL, 0);
71 r = manager_add_dns_server_by_string(m, type, word);
73 log_warning_errno(r, "Failed to add DNS server address '%s', ignoring.", word);
118 _cleanup_free_ char *word = NULL; local
120 r = extract_first_word(&string, &word, NUL
[all...]
/systemd/src/timesync/
H A Dtimesyncd-conf.c22 #include "extract-word.h"
38 _cleanup_free_ char *word = NULL; local
42 r = extract_first_word(&string, &word, NULL, 0);
50 if (streq_ptr(n->string, word)) {
58 r = server_name_new(m, NULL, type, word);
/systemd/src/network/
H A Dnetworkd-netdev-vxlan.c183 _cleanup_free_ char *word = NULL; local
193 r = extract_first_word(&rvalue, &word, NULL, 0);
202 r = parse_range(word, &low, &high);
204 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse VXLAN port range '%s'", word);
210 "Failed to parse VXLAN port range '%s'. Port should be greater than 0 and less than 65535.", word);
216 "Failed to parse VXLAN port range '%s'. Port range %u .. %u not valid", word, low, high);
/systemd/src/nspawn/
H A Dnspawn-settings.c166 _cleanup_free_ char *word = NULL; local
169 r = extract_first_word(&rvalue, &word, NULL, 0);
177 cap = capability_from_name(word);
179 log_syntax(unit, LOG_ERR, filename, line, 0, "Failed to parse capability, ignoring: %s", word);
H A Dnspawn-setuid.c91 const char *word, *state; local
230 FOREACH_WORD(word, l, x, state) {
233 memcpy(c, word, l);
/systemd/src/shared/
H A Dsleep-config.c127 const char *word, *state; local
131 FOREACH_WORD_SEPARATOR(word, l, p, WHITESPACE, state)
132 if (l == k && memcmp(word, *type, l) == 0)
156 const char *word, *state; local
160 FOREACH_WORD_SEPARATOR(word, l, p, WHITESPACE, state) {
161 if (l == k && memcmp(word, *type, l) == 0)
165 word[0] == '[' &&
166 memcmp(word + 1, *type, l - 2) == 0 &&
167 word[l-1] == ']')
H A Dcondition.c38 #include "extract-word.h"
116 _cleanup_free_ char *word = NULL; local
119 r = extract_first_word(&p, &word, NULL, EXTRACT_QUOTES|EXTRACT_RELAX);
126 found = streq(word, c->parameter);
130 f = startswith(word, c->parameter);
H A Dfstab-util.c66 const char *word, *state; local
69 FOREACH_WORD_SEPARATOR(word, l, opts, ",", state)
73 if (!strneq(word, name, strlen(name)))
78 x = word + strlen(name);
H A Dconf-parser.c31 #include "extract-word.h"
728 char *word = NULL; local
730 r = extract_first_word(&rvalue, &word, WHITESPACE, EXTRACT_QUOTES);
740 if (!utf8_is_valid(word)) {
742 free(word);
745 r = strv_consume(sv, word);
/systemd/src/login/
H A Dlogind-inhibit.c455 const char *word, *state; local
458 FOREACH_WORD_SEPARATOR(word, l, s, ":", state) {
459 if (l == 8 && strneq(word, "shutdown", l))
461 else if (l == 5 && strneq(word, "sleep", l))
463 else if (l == 4 && strneq(word, "idle", l))
465 else if (l == 16 && strneq(word, "handle-power-key", l))
467 else if (l == 18 && strneq(word, "handle-suspend-key", l))
469 else if (l == 20 && strneq(word, "handle-hibernate-key", l))
471 else if (l == 17 && strneq(word, "handle-lid-switch", l))
/systemd/src/machine/
H A Dmachine.c30 #include "extract-word.h"
321 _cleanup_free_ char *word = NULL; local
324 r = extract_first_word(&p, &word, NULL, 0);
334 if (parse_ifindex(word, &ifi) < 0)
/systemd/src/udev/ata_id/
H A Data_id.c422 uint16_t word; local
612 * word 76 to 0000h or FFFFh. If word 76 is set to 0000h or FFFFh, then
617 word = identify.wyde[76];
618 if (word != 0x0000 && word != 0xffff) {
621 * If bit 2 of word 76 is set to one, then the device supports the Gen2
624 * If bit 1 of word 76 is set to one, then the device supports the Gen1
627 if (word & (1<<2))
629 if (word
[all...]
/systemd/src/udev/collect/
H A Dcollect.c136 char *buf, *ptr, *word = NULL; local
150 word = ptr;
151 ptr = strpbrk(word," \n\t\r");
152 if (!ptr && word < (buf + len)) {
163 if (!strlen(word))
167 fprintf(stderr, "Found word %s\n", word);
173 him->name = strdup(word);
181 word = NULL;
188 ptr = word;
[all...]
/systemd/src/udev/net/
H A Dlink-config.c194 const char *word, *state; local
204 FOREACH_WORD_QUOTED(word, l, line, state)
205 if (strneq(word, "net.ifnames=0", l))
/systemd/src/udev/
H A Dudev-builtin-input_id.c88 char* word; local
100 while ((word = strrchr(text, ' ')) != NULL) {
101 val = strtoul (word+1, NULL, 16);
106 *word = '\0';
/systemd/src/core/
H A Ddevice.c260 const char *word, *state; local
273 FOREACH_WORD_QUOTED(word, l, wants, state) {
277 memcpy(e, word, l);
431 const char *word, *state; local
434 FOREACH_WORD_QUOTED(word, l, alias, state) {
437 memcpy(e, word, l);
/systemd/src/cryptsetup/
H A Dcryptsetup.c212 const char *word, *state; local
218 FOREACH_WORD_SEPARATOR(word, l, options, ",", state) {
221 o = strndup(word, l);
/systemd/src/delta/
H A Ddelta.c497 const char *word, *state; local
500 FOREACH_WORD_SEPARATOR(word, l, flag_str, ",", state) {
501 if (strneq("masked", word, l))
503 else if (strneq ("equivalent", word, l))
505 else if (strneq("redirected", word, l))
507 else if (strneq("overridden", word, l))
509 else if (strneq("unchanged", word, l))
511 else if (strneq("extended", word, l))
513 else if (strneq("default", word, l))
/systemd/src/libsystemd/sd-bus/
H A Dbus-socket.c257 static bool line_begins(const char *s, size_t m, const char *word) { argument
260 l = strlen(word);
264 if (memcmp(s, word, l) != 0)
/systemd/src/libsystemd-network/
H A Dnetwork-internal.c228 const char *word, *state; local
237 FOREACH_WORD(word, l, rvalue, state) {
240 n = strndup(word, l);
353 const char *word, *state; local
359 FOREACH_WORD(word, len, string, state) {
370 addr_str = strndup(word, len);
404 const char *word, *state; local
410 FOREACH_WORD(word, len, string, state) {
421 addr_str = strndup(word, len);
466 const char *word, *stat local
[all...]

Completed in 52 milliseconds

12