Home
last modified time | relevance | path

Searched refs:WHITESPACE (Results 1 – 25 of 67) sorted by relevance

123

/systemd-251/src/basic/
Dparse-util.c198 p += strspn(p, WHITESPACE); in parse_size()
228 e += strspn(e, WHITESPACE); in parse_size()
355 strchr(WHITESPACE, s[0])) in safe_atou_full()
358 s += strspn(s, WHITESPACE); in safe_atou_full()
400 s += strspn(s, WHITESPACE); in safe_atoi()
426 strchr(WHITESPACE, s[0])) in safe_atollu_full()
429 s += strspn(s, WHITESPACE); in safe_atollu_full()
463 s += strspn(s, WHITESPACE); in safe_atolli()
486 s += strspn(s, WHITESPACE); in safe_atou8()
513 strchr(WHITESPACE, s[0])) in safe_atou16_full()
[all …]
Dprocess-util.c240 delete_trailing_chars(t, WHITESPACE); in get_process_cmdline()
429 l = strspn(q, WHITESPACE); in is_kernel_thread()
434 l = strcspn(q, WHITESPACE); in is_kernel_thread()
441 l = strspn(q, WHITESPACE); in is_kernel_thread()
447 l = strcspn(q, WHITESPACE); in is_kernel_thread()
468 r = get_proc_field(p, "CapEff", WHITESPACE, ret); in get_process_capeff()
538 l += strspn(l, WHITESPACE); in get_process_id()
540 l[strcspn(l, WHITESPACE)] = 0; in get_process_id()
695 r = get_proc_field(p, "Umask", WHITESPACE, &m); in get_process_umask()
1474 delete_trailing_chars(t, WHITESPACE); in get_oom_score_adjust()
[all …]
Denv-file.c55 else if (!strchr(WHITESPACE, c)) { in parse_env_file_internal()
75 if (!strchr(WHITESPACE, c)) in parse_env_file_internal()
115 else if (!strchr(WHITESPACE, c)) { in parse_env_file_internal()
156 if (!strchr(WHITESPACE, c)) in parse_env_file_internal()
502 if (string_has_cc(p, NULL) || chars_intersect(p, WHITESPACE SHELL_NEED_QUOTES)) { in write_env_var()
Dstring-util.c50 if (!strchr(WHITESPACE, *p)) in first_word()
53 p += strspn(p, WHITESPACE); in first_word()
126 return delete_trailing_chars(skip_leading_chars(s, WHITESPACE), WHITESPACE); in strstrip()
138 bad = WHITESPACE; in delete_chars()
161 bad = WHITESPACE; in delete_trailing_chars()
1157 ok = WHITESPACE; in streq_skip_trailing_chars()
Dtime-util.c1017 p += strspn(p, WHITESPACE); in parse_time()
1020 s += strspn(s, WHITESPACE); in parse_time()
1034 p += strspn(p, WHITESPACE); in parse_time()
1061 s = extract_multiplier(p + strspn(p, WHITESPACE), &multiplier); in parse_time()
1122 t += strspn(t, WHITESPACE); in parse_sec_def_infinity()
1193 p += strspn(p, WHITESPACE); in parse_nsec()
1196 s += strspn(s, WHITESPACE); in parse_nsec()
1209 p += strspn(p, WHITESPACE); in parse_nsec()
1236 s = extract_nsec_multiplier(p + strspn(p, WHITESPACE), &multiplier); in parse_nsec()
Dprocfs-util.c193 n = strspn(w, WHITESPACE); in convert_meminfo_value_to_uint64_bytes()
201 n = strspn(e, WHITESPACE); in convert_meminfo_value_to_uint64_bytes()
Dstring-util.h13 #define WHITESPACE " \t\n\r" macro
114 bad = WHITESPACE; in skip_leading_chars()
Dhexdecoct.c88 if (!strchr(WHITESPACE, **p)) in unhex_next()
102 if (*l == 0 || !strchr(WHITESPACE, **p)) in unhex_next()
722 if (!strchr(WHITESPACE, **p)) in unbase64_next()
742 if (!strchr(WHITESPACE, **p)) in unbase64_next()
Dmountpoint-util.c134 p += strspn(p, WHITESPACE); in fd_fdinfo_mnt_id()
135 p[strcspn(p, WHITESPACE)] = 0; in fd_fdinfo_mnt_id()
/systemd-251/src/busctl/
Dbusctl-introspect.c119 } else if (t != XML_TEXT || !in_charset(name, WHITESPACE)) in parse_xml_annotation()
238 } else if (t != XML_TEXT || !in_charset(name, WHITESPACE)) in parse_xml_node()
306 } else if (t != XML_TEXT || !in_charset(name, WHITESPACE)) in parse_xml_node()
360 } else if (t != XML_TEXT || !in_charset(name, WHITESPACE)) in parse_xml_node()
422 } else if (t != XML_TEXT || !in_charset(name, WHITESPACE)) in parse_xml_node()
497 } else if (t != XML_TEXT || !in_charset(name, WHITESPACE)) in parse_xml_node()
552 } else if (t != XML_TEXT || !in_charset(name, WHITESPACE)) in parse_xml_node()
631 } else if (t != XML_TEXT || !in_charset(name, WHITESPACE)) in parse_xml_node()
718 } else if (r != XML_TEXT || !in_charset(name, WHITESPACE)) { in parse_xml_introspect()
/systemd-251/src/shared/
Dxml.c133 e = strpbrk(b, WHITESPACE "/>"); in xml_tokenize()
150 b = c + strspn(c, WHITESPACE); in xml_tokenize()
156 e = b + strcspn(b, WHITESPACE "=/>"); in xml_tokenize()
216 b = strpbrk(c, WHITESPACE ">"); in xml_tokenize()
Dserialize.c152 pos = strspn(value, WHITESPACE); in deserialize_dual_timestamp()
156 pos += strspn(value + pos, WHITESPACE); in deserialize_dual_timestamp()
Dextension-release.c36 … extension_sysext_scope_list = strv_split(extension_sysext_scope, WHITESPACE); in extension_release_validate()
/systemd-251/src/journal/
Djournald-syslog.c195 p += strspn(p, WHITESPACE); in syslog_parse_identifier()
196 l = strcspn(p, WHITESPACE); in syslog_parse_identifier()
231 if (p[e] != '\0' && strchr(WHITESPACE, p[e])) in syslog_parse_identifier()
344 if (!strchr(WHITESPACE, buf[i-1])) in server_process_syslog_message()
347 leading_ws = strspn(buf, WHITESPACE); in server_process_syslog_message()
Djournald-audit.c274 p += strspn(p, WHITESPACE); in map_all_fields()
329 p += strcspn(p, WHITESPACE); in map_all_fields()
371 p += strspn(p, WHITESPACE); in process_audit_string()
/systemd-251/src/test/
Dtest-extract-word.c359 assert_se(extract_first_word(&p, &t, WHITESPACE ":", EXTRACT_UNESCAPE_SEPARATORS) == 1); in TEST()
362 assert_se(extract_first_word(&p, &t, WHITESPACE ":", EXTRACT_UNESCAPE_SEPARATORS) == 1); in TEST()
392 …assert_se(extract_first_word(&p, &t, WHITESPACE ":", EXTRACT_CUNESCAPE|EXTRACT_UNESCAPE_SEPARATORS… in TEST()
395 …assert_se(extract_first_word(&p, &t, WHITESPACE ":", EXTRACT_CUNESCAPE|EXTRACT_UNESCAPE_SEPARATORS… in TEST()
422 assert_se(extract_first_word(&p, &t, WHITESPACE ":", EXTRACT_CUNESCAPE) == -EINVAL); in TEST()
423 assert_se(extract_first_word(&p, &t, WHITESPACE ":", EXTRACT_CUNESCAPE) == 1); in TEST()
426 assert_se(extract_first_word(&p, &t, WHITESPACE ":", EXTRACT_CUNESCAPE) == 1); in TEST()
697 assert_se(extract_many_words(&p, ":" WHITESPACE, 0, &a, &b, &c, NULL) == 3); in TEST()
702 assert_se(extract_many_words(&p, ":" WHITESPACE, 0, &d, &e, &f, NULL) == 2); in TEST()
Dtest-strv.c211 r = strv_split_full(&s, quoted, WHITESPACE, EXTRACT_UNQUOTE); in test_strv_unquote_one()
248 r = strv_split_full(&s, quoted, WHITESPACE, EXTRACT_UNQUOTE); in test_invalid_unquote_one()
273 l = strv_split(" one two\t three", WHITESPACE); in TEST()
340 l = strv_split("", WHITESPACE); in TEST()
359 assert_se(strv_split_full(&l, "", WHITESPACE, EXTRACT_UNQUOTE) == 0); in TEST()
364 assert_se(strv_split_full(&l, "", WHITESPACE, EXTRACT_UNQUOTE | EXTRACT_RELAX) == 0); in TEST()
369 l = strv_split(" ", WHITESPACE); in TEST()
384 assert_se(strv_split_full(&l, " ", WHITESPACE, EXTRACT_UNQUOTE) == 0); in TEST()
Dtest-string-util.c471 s = delete_chars(input, WHITESPACE); in TEST()
482 s = delete_trailing_chars(input1, WHITESPACE); in TEST()
490 s = delete_trailing_chars(input3, WHITESPACE); in TEST()
517 assert_se(streq(skip_leading_chars(input1, WHITESPACE), "k \n \r ")); in TEST()
520 assert_se(streq(skip_leading_chars(input3, WHITESPACE), "abcdef")); in TEST()
812 assert_se( string_contains_word(" a b\t\tcc", WHITESPACE, "")); in TEST()
973 assert_se(streq_skip_trailing_chars("foo bar ", "foo bar", WHITESPACE)); in TEST()
/systemd-251/src/udev/
Dudev-builtin.c92 command += strspn(command, WHITESPACE); in udev_builtin_lookup()
93 n = strcspn(command, WHITESPACE); in udev_builtin_lookup()
/systemd-251/src/analyze/
Danalyze-condition.c35 p += strspn(p, WHITESPACE); in parse_condition()
41 p += strspn(p, WHITESPACE); in parse_condition()
/systemd-251/src/nspawn/
Dnspawn-setuid.c209 x += strcspn(x, WHITESPACE); in change_uid_gid()
210 x += strspn(x, WHITESPACE); in change_uid_gid()
/systemd-251/src/cgtop/
Dcgtop.c304 l += strcspn(l, WHITESPACE); in process()
305 l += strspn(l, WHITESPACE); in process()
314 l += strcspn(l, WHITESPACE); in process()
315 l += strspn(l, WHITESPACE); in process()
327 l += strspn(l, WHITESPACE); in process()
/systemd-251/src/import/
Dcurl-util.c337 while (sz > 0 && strchr(WHITESPACE, p[0])) { in curl_header_strdup()
343 while (sz > 0 && strchr(WHITESPACE, p[sz-1])) in curl_header_strdup()
/systemd-251/src/libsystemd/sd-bus/
Dbus-creds.c719 p += strspn(p, WHITESPACE); in parse_caps()
820 p += strspn(p, WHITESPACE); in bus_creds_add_more()
841 p += strspn(p, WHITESPACE); in bus_creds_add_more()
864 p += strspn(p, WHITESPACE); in bus_creds_add_more()
889 p += strspn(p, WHITESPACE); in bus_creds_add_more()
/systemd-251/src/core/
Dfuzz-unit-file.c52 ll = ll + strspn(ll, WHITESPACE); in LLVMFuzzerTestOneInput()

123