Searched refs:word (Results 1 - 25 of 44) 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 Dstring-util.h91 char *first_word(const char *s, const char *word) _pure_;
95 #define FOREACH_WORD(word, length, s, state) \
96 _FOREACH_WORD(word, length, s, WHITESPACE, false, state)
98 #define FOREACH_WORD_SEPARATOR(word, length, s, separator, state) \
99 _FOREACH_WORD(word, length, s, separator, false, state)
101 #define FOREACH_WORD_QUOTED(word, length, s, state) \
102 _FOREACH_WORD(word, length, s, WHITESPACE, true, state)
104 #define _FOREACH_WORD(word, length, s, separator, quoted, state) \
105 for ((state) = (s), (word) = split(&(state), &(length), (separator), (quoted)); (word); (wor
[all...]
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...]
H A Dstrv.c29 #include "extract-word.h"
271 const char *word, *state; local
279 FOREACH_WORD_SEPARATOR(word, l, s, separator, state)
287 FOREACH_WORD_SEPARATOR(word, l, s, separator, state) {
288 r[i] = strndup(word, l);
333 _cleanup_free_ char *word = NULL; local
335 r = extract_first_word(&s, &word, separators, flags);
344 l[n++] = word;
345 word = NULL;
/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...]
H A Dresolved-conf.h29 int manager_add_dns_server_by_string(Manager *m, DnsServerType type, const char *word);
/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/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/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 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.h172 const char *word, *state; \
186 FOREACH_WORD(word, l, rvalue, state) { \
190 en = strndup(word, l); \
H A Dbus-util.c46 #include "extract-word.h"
1697 _cleanup_free_ char *word = NULL; local
1699 r = extract_first_word(&p, &word, NULL, EXTRACT_QUOTES|EXTRACT_CUNESCAPE);
1708 if (!env_assignment_is_valid(word)) {
1709 log_error("Invalid environment assignment: %s", word);
1713 if (!env_name_is_valid(word)) {
1714 log_error("Invalid environment variable name: %s", word);
1719 r = sd_bus_message_append_basic(m, 's', word);
1780 _cleanup_free_ char *word = NULL; local
1783 r = extract_first_word(&p, &word, NUL
1829 _cleanup_free_ char *word = NULL; local
[all...]
/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/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...]
/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/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/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/core/
H A Dload-fragment.c123 _cleanup_free_ char *word = NULL, *k = NULL; local
126 r = extract_first_word(&p, &word, NULL, EXTRACT_RETAIN_ESCAPE);
136 r = unit_name_printf(u, word, &k);
271 const char *word, *state; local
281 FOREACH_WORD_QUOTED(word, l, rvalue, state) {
285 memcpy(t, word, l);
636 /* First word is either "-" or "@" with no command. */
675 _cleanup_free_ char *word = NULL; local
702 r = extract_first_word_and_warn(&p, &word, WHITESPACE, EXTRACT_QUOTES|EXTRACT_CUNESCAPE, unit, filename, line, rvalue);
710 n[nlen++] = word;
999 const char *word, *state; local
1069 _cleanup_free_ char *word = NULL; local
1644 _cleanup_free_ char *word = NULL, *k = NULL; local
2080 const char *word, *state; local
2167 _cleanup_free_ char *word = NULL; local
2407 const char *word, *state; local
2509 const char *word, *state; local
2611 const char *word, *state; local
2699 const char *word, *state; local
3210 const char *word, *state; local
3268 const char *word, *state; local
3355 _cleanup_free_ char *word = NULL; local
[all...]
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/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/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/libsystemd/sd-login/
H A Dsd-login.c352 const char *word, *variable, *state; local
373 FOREACH_WORD(word, l, s, state)
374 if (strneq(t, word, l))
704 const char *word, *state; local
707 FOREACH_WORD(word, l, t, state)
717 FOREACH_WORD(word, l, t, state) {
720 k = strndup(word, l);
910 const char *p, *word, *state; local
927 FOREACH_WORD(word, l, netif, state) {
931 *(char*) (mempcpy(buf, word,
[all...]

Completed in 141 milliseconds

12