/systemd-251/src/locale/ |
D | test-keymap-util.c | 10 _cleanup_free_ char *ans = NULL, *ans2 = NULL; in TEST() local 12 assert_se(find_language_fallback("foobar", &ans) == 0); in TEST() 13 assert_se(ans == NULL); in TEST() 15 assert_se(find_language_fallback("csb", &ans) == 0); in TEST() 16 assert_se(ans == NULL); in TEST() 18 assert_se(find_language_fallback("csb_PL", &ans) == 1); in TEST() 19 assert_se(streq(ans, "csb:pl")); in TEST() 26 _cleanup_free_ char *ans = NULL, *ans2 = NULL; in TEST() local 29 assert_se(find_converted_keymap("pl", "foobar", &ans) == 0); in TEST() 30 assert_se(ans == NULL); in TEST() [all …]
|
/systemd-251/src/basic/ |
D | escape.c | 293 _cleanup_free_ char *ans = NULL; in cunescape_length_with_prefix() local 306 ans = new(char, pl+length+1); in cunescape_length_with_prefix() 307 if (!ans) in cunescape_length_with_prefix() 311 memcpy(ans, prefix, pl); in cunescape_length_with_prefix() 313 for (f = s, t = ans + pl; f < s + length; f++) { in cunescape_length_with_prefix() 359 assert(t >= ans); /* Let static analyzers know that the answer is non-negative. */ in cunescape_length_with_prefix() 360 *ret = TAKE_PTR(ans); in cunescape_length_with_prefix() 365 char *ans, *t, *prev, *prev2; in xescape_full() local 378 ans = new(char, MIN(strlen(s), console_width) * 4 + 1); in xescape_full() 379 if (!ans) in xescape_full() [all …]
|
D | glob-util.c | 87 char *ans = strndup(path, n); in glob_non_glob_prefix() local 88 if (!ans) in glob_non_glob_prefix() 90 *ret = ans; in glob_non_glob_prefix()
|
D | macro.h | 329 size_t ans; \ 331 ans = 1; \ 333 ans = _x_ <= 0 ? 2 : 1; \ 335 ans++; \ 337 ans; \
|
D | utf8.c | 319 _cleanup_free_ char *ans = new(char, strlen(str) + 1); in utf8_to_ascii() local 320 if (!ans) in utf8_to_ascii() 323 char *q = ans; in utf8_to_ascii() 342 *ret = TAKE_PTR(ans); in utf8_to_ascii()
|
D | process-util.c | 188 char *ans; in get_process_cmdline() local 231 ans = quote_command_line(args, shflags); in get_process_cmdline() 232 if (!ans) in get_process_cmdline() 244 ans = escape_non_printable_full(t, max_columns, in get_process_cmdline() 246 if (!ans) in get_process_cmdline() 249 ans = str_realloc(ans); in get_process_cmdline() 252 *ret = ans; in get_process_cmdline()
|
D | fileio.c | 837 char *ans; in executable_is_script() local 851 ans = strstrip(line + 2); in executable_is_script() 852 len = strcspn(ans, " \t"); in executable_is_script() 857 ans = strndup(ans, len); in executable_is_script() 858 if (!ans) in executable_is_script() 861 *interpreter = ans; in executable_is_script()
|
/systemd-251/src/shared/ |
D | install-printf.c | 26 char *ans; in specifier_prefix_and_instance() local 28 ans = strjoin(prefix, i->default_instance); in specifier_prefix_and_instance() 29 if (!ans) in specifier_prefix_and_instance() 31 *ret = ans; in specifier_prefix_and_instance() 40 char *ans; in specifier_name() local 45 ans = strdup(i->name); in specifier_name() 46 if (!ans) in specifier_name() 48 *ret = ans; in specifier_name()
|
D | tests.c | 330 static const char *ans = POINTER_MAX; in ci_environment() local 333 if (ans != POINTER_MAX) in ci_environment() 334 return ans; in ci_environment() 339 return (ans = citype); in ci_environment() 342 return (ans = "travis"); in ci_environment() 344 return (ans = "semaphore"); in ci_environment() 346 return (ans = "github-actions"); in ci_environment() 348 return (ans = "autopkgtest"); in ci_environment() 357 return (ans = "unknown"); /* Some other unknown thing */ in ci_environment() 359 return (ans = NULL); in ci_environment() [all …]
|
D | mkfs-util.c | 43 char *ans; in mangle_linux_fs_label() local 57 ans = memdup_suffix0(s, q - s); in mangle_linux_fs_label() 58 if (!ans) in mangle_linux_fs_label() 61 *ret = ans; in mangle_linux_fs_label()
|
/systemd-251/src/test/ |
D | test-tmpfiles.c | 21 …_cleanup_free_ char *cmd = NULL, *cmd2 = NULL, *ans = NULL, *ans2 = NULL, *d = NULL, *tmp = NULL, … in TEST() local 33 assert_se(readlink_malloc(cmd + 6, &ans) >= 0); in TEST() 34 log_debug("link1: %s", ans); in TEST() 35 assert_se(endswith(ans, " (deleted)")); in TEST()
|
D | test-utf8.c | 60 _cleanup_free_ char *ans = NULL; in test_utf8_to_ascii_one() local 63 r = utf8_to_ascii(s, '*', &ans); in test_utf8_to_ascii_one() 64 …log_debug("\"%s\" → %d/\"%s\" (expected %d/\"%s\")", s, r, strnull(ans), r_expected, strnull(expec… in test_utf8_to_ascii_one() 66 assert_se(streq_ptr(ans, expected)); in test_utf8_to_ascii_one()
|
D | test-hexdecoct.c | 187 static void test_unbase32hexmem_one(const char *hex, bool padding, int retval, const char *ans) { in test_unbase32hexmem_one() argument 196 assert_se(streq(str, ans)); in test_unbase32hexmem_one()
|
/systemd-251/tools/ |
D | meson-render-jinja2.py | 13 ans = {} 21 ans[a] = b 22 return ans
|
/systemd-251/man/ |
D | print-unit-path.c | 47 const char *ans; in print_unit_path() local 48 r = sd_bus_message_read(reply, "o", &ans); in print_unit_path() 52 printf("Unit path is \"%s\".\n", ans); in print_unit_path()
|
/systemd-251/src/analyze/ |
D | analyze-verify-util.c | 77 _cleanup_strv_free_ char **ans = NULL; in verify_generate_path() local 88 r = strv_consume(&ans, t); in verify_generate_path() 93 assert_se(strv_uniq(ans)); in verify_generate_path() 104 r = strv_extend(&ans, old); in verify_generate_path() 109 *var = strv_join(ans, ":"); in verify_generate_path()
|
/systemd-251/src/core/ |
D | transaction.c | 327 char *ans = NULL; in merge_unit_ids() local 332 if (!GREEDY_REALLOC(ans, size + next + 1)) in merge_unit_ids() 333 return mfree(ans); in merge_unit_ids() 335 sprintf(ans + size, "%s%s", unit_log_field, *unit_id); in merge_unit_ids() 337 ans[size + next] = '\n'; in merge_unit_ids() 341 return ans; in merge_unit_ids()
|
/systemd-251/src/login/ |
D | loginctl.c | 67 char *ans; in get_session_path() local 73 r = sd_bus_message_read(reply, "o", &ans); in get_session_path() 77 ans = strdup(ans); in get_session_path() 78 if (!ans) in get_session_path() 81 *path = ans; in get_session_path()
|
/systemd-251/src/import/ |
D | pull-common.c | 61 _cleanup_strv_free_ char **ans = NULL; in pull_find_old_etags() local 105 r = strv_consume(&ans, TAKE_PTR(u)); in pull_find_old_etags() 110 *etags = TAKE_PTR(ans); in pull_find_old_etags()
|
/systemd-251/src/resolve/ |
D | resolved-dns-rr.c | 318 char *ans = buf; in dns_resource_key_to_string() local 331 return ans; in dns_resource_key_to_string()
|