Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 141) sorted by relevance

123456

/systemd-251/src/test/
Dtest-fs-util.c31 _cleanup_free_ char *result = NULL; in TEST() local
68 r = chase_symlinks(p, NULL, 0, &result, NULL); in TEST()
70 assert_se(path_equal(result, "/usr")); in TEST()
71 result = mfree(result); in TEST()
74 r = chase_symlinks(pslash, NULL, 0, &result, NULL); in TEST()
76 assert_se(path_equal(result, "/usr/")); in TEST()
77 result = mfree(result); in TEST()
79 r = chase_symlinks(p, temp, 0, &result, NULL); in TEST()
82 r = chase_symlinks(pslash, temp, 0, &result, NULL); in TEST()
87 r = chase_symlinks(p, temp, CHASE_NONEXISTENT, &result, NULL); in TEST()
[all …]
Dtest-hmac.c13 uint8_t result[SHA256_DIGEST_SIZE]; in TEST() local
20 result); in TEST()
21 hex_result = hexmem(result, sizeof(result)); in TEST()
27 result); in TEST()
28 hex_result = hexmem(result, sizeof(result)); in TEST()
34 result); in TEST()
35 hex_result = hexmem(result, sizeof(result)); in TEST()
41 result); in TEST()
42 hex_result = hexmem(result, sizeof(result)); in TEST()
48 result); in TEST()
[all …]
Dtest-udev-util.c77 _cleanup_free_ char *result = NULL; in test_udev_replace_whitespace_one_len() local
80 result = new(char, len + 1); in test_udev_replace_whitespace_one_len()
81 assert_se(result); in test_udev_replace_whitespace_one_len()
82 r = udev_replace_whitespace(str, result, len); in test_udev_replace_whitespace_one_len()
84 assert_se(streq(result, expected)); in test_udev_replace_whitespace_one_len()
129 char result[PATH_MAX] = ""; in test_udev_resolve_subsys_kernel_one() local
132 r = udev_resolve_subsys_kernel(str, result, sizeof(result), read_value); in test_udev_resolve_subsys_kernel_one()
133 …info("\"%s\" → expect: \"%s\", %d, actual: \"%s\", %d", str, strnull(expected), retval, result, r); in test_udev_resolve_subsys_kernel_one()
136 assert_se(streq(result, expected)); in test_udev_resolve_subsys_kernel_one()
Dtest-cgroup-util.c21 static void check_p_d_u(const char *path, int code, const char *result) { in check_p_d_u() argument
26 printf("%s: %s → %s %d expected %s %d\n", __func__, path, unit, r, strnull(result), code); in check_p_d_u()
28 assert_se(streq_ptr(unit, result)); in check_p_d_u()
43 static void check_p_g_u(const char *path, int code, const char *result) { in check_p_g_u() argument
48 printf("%s: %s → %s %d expected %s %d\n", __func__, path, unit, r, strnull(result), code); in check_p_g_u()
50 assert_se(streq_ptr(unit, result)); in check_p_g_u()
67 static void check_p_g_u_u(const char *path, int code, const char *result) { in check_p_g_u_u() argument
72 printf("%s: %s → %s %d expected %s %d\n", __func__, path, unit, r, strnull(result), code); in check_p_g_u_u()
74 assert_se(streq_ptr(unit, result)); in check_p_g_u_u()
93 static void check_p_g_s(const char *path, int code, const char *result) { in check_p_g_s() argument
[all …]
Dtest-dns-domain.c348 static void test_dns_name_concat_one(const char *a, const char *b, int r, const char *result) { in test_dns_name_concat_one() argument
352 assert_se(streq_ptr(p, result)); in test_dns_name_concat_one()
545 …_one(const char *name, const char *old_suffix, const char *new_suffix, int r, const char *result) { in test_dns_name_change_suffix_one() argument
548 log_info("%s, %s, %s, →%s", name, old_suffix, new_suffix, result); in test_dns_name_change_suffix_one()
551 assert_se(streq_ptr(s, result)); in test_dns_name_change_suffix_one()
566 static void test_dns_name_suffix_one(const char *name, unsigned n_labels, const char *result, int r… in test_dns_name_suffix_one() argument
569 log_info("%s, %d, →%s, %d", name, n_labels, result, ret); in test_dns_name_suffix_one()
572 assert_se(streq_ptr(p, result)); in test_dns_name_suffix_one()
656 static void test_dns_name_common_suffix_one(const char *a, const char *b, const char *result) { in test_dns_name_common_suffix_one() argument
659 log_info("%s, %s, →%s", a, b, result); in test_dns_name_common_suffix_one()
[all …]
/systemd-251/src/shared/
Dbus-wait-for-jobs.c20 char *result; member
36 const char *path, *unit, *result; in match_job_removed() local
45 r = sd_bus_message_read(m, "uoss", &id, &path, &unit, &result); in match_job_removed()
57 (void) free_and_strdup(&d->result, empty_to_null(result)); in match_job_removed()
76 free(d->result); in bus_wait_for_jobs_free()
142 static int bus_job_get_service_result(BusWaitForJobs *d, char **result) { in bus_job_get_service_result() argument
147 assert(result); in bus_job_get_service_result()
162 result); in bus_job_get_service_result()
165 static void log_job_error_with_service_result(const char* service, const char *result, const char* … in log_job_error_with_service_result() argument
170 const char *result, *explanation; in log_job_error_with_service_result() member
[all …]
Duser-record-nss.c178 struct spwd spwd, *result; in nss_spwd_for_passwd() local
184 r = getspnam_r(pwd->pw_name, &spwd, buf, buflen, &result); in nss_spwd_for_passwd()
186 if (!result) in nss_spwd_for_passwd()
189 *ret_spwd = *result; in nss_spwd_for_passwd()
212 struct passwd pwd, *result; in nss_user_record_by_name() local
226 r = getpwnam_r(name, &pwd, buf, buflen, &result); in nss_user_record_by_name()
228 if (!result) in nss_user_record_by_name()
247 r = nss_spwd_for_passwd(result, &spwd, &sbuf); in nss_user_record_by_name()
256 r = nss_passwd_to_user_record(result, sresult, ret); in nss_user_record_by_name()
270 struct passwd pwd, *result; in nss_user_record_by_uid() local
[all …]
Dspecifier.c38 _cleanup_free_ char *result = NULL; in specifier_printf() local
49 if (!GREEDY_REALLOC(result, l + 1)) in specifier_printf()
51 t = result; in specifier_printf()
76 j = t - result; in specifier_printf()
79 if (!GREEDY_REALLOC(result, j + k + l + 1)) in specifier_printf()
81 memcpy(result + j, w, k); in specifier_printf()
82 t = result + j + k; in specifier_printf()
96 if ((size_t) (t - result) > max_length) in specifier_printf()
103 if ((size_t) (t - result) > max_length) in specifier_printf()
108 *ret = TAKE_PTR(result); in specifier_printf()
Dbus-print-properties.c120 const char *result; in bus_print_property() local
123 result = "yes"; in bus_print_property()
125 result = "no"; in bus_print_property()
131 result = s; in bus_print_property()
134 bus_print_property_value(name, expected_value, flags, result); in bus_print_property()
137 const char *result; in bus_print_property() local
139 result = mount_propagation_flags_to_string(u); in bus_print_property()
140 if (!result) in bus_print_property()
143 bus_print_property_value(name, expected_value, flags, result); in bus_print_property()
/systemd-251/src/libsystemd-network/
Dtest-dhcp-option.c293 _cleanup_free_ DHCPMessage *result = NULL; in test_option_set() local
296 result = malloc0(sizeof(DHCPMessage) + 11); in test_option_set()
297 assert_se(result); in test_option_set()
299 result->options[0] = 'A'; in test_option_set()
300 result->options[1] = 'B'; in test_option_set()
301 result->options[2] = 'C'; in test_option_set()
302 result->options[3] = 'D'; in test_option_set()
304 assert_se(dhcp_option_append(result, 0, &offset, 0, SD_DHCP_OPTION_PAD, in test_option_set()
309 assert_se(dhcp_option_append(result, 5, &offset, 0, SD_DHCP_OPTION_PAD, in test_option_set()
312 assert_se(dhcp_option_append(result, 6, &offset, 0, SD_DHCP_OPTION_PAD, in test_option_set()
[all …]
/systemd-251/
D.ycm_extra_conf.py72 result = os.path.join(DirectoryOfThisScript(), "build")
74 if os.path.exists(result):
75 return result
77 result = glob.glob(os.path.join(DirectoryOfThisScript(),
80 if not result:
83 if 1 != len(result):
86 return os.path.split(result[0])[0]
101 result = set()
113 result.add(root_dir)
115 result.add(root_dir)
[all …]
/systemd-251/src/resolve/
Dresolved-dns-dnssec.c987 DnssecResult *result) { in dnssec_verify_rrset() argument
1000 assert(result); in dnssec_verify_rrset()
1010 *result = DNSSEC_INVALID; in dnssec_verify_rrset()
1020 *result = DNSSEC_SIGNATURE_EXPIRED; in dnssec_verify_rrset()
1032 *result = DNSSEC_INVALID; in dnssec_verify_rrset()
1043 *result = DNSSEC_INVALID; in dnssec_verify_rrset()
1054 *result = DNSSEC_INVALID; in dnssec_verify_rrset()
1104 *result = DNSSEC_UNSUPPORTED_ALGORITHM; in dnssec_verify_rrset()
1115 *result = DNSSEC_INVALID; in dnssec_verify_rrset()
1117 *result = DNSSEC_VALIDATED_WILDCARD; in dnssec_verify_rrset()
[all …]
Dtest-dnssec.c114 DnssecResult result; in TEST() local
175 rrsig->rrsig.inception * USEC_PER_SEC, &result) >= 0); in TEST()
177 assert_se(result == DNSSEC_VALIDATED); in TEST()
179 assert_se(result == DNSSEC_UNSUPPORTED_ALGORITHM); in TEST()
206 DnssecResult result; in TEST() local
267 rrsig->rrsig.inception * USEC_PER_SEC, &result) >= 0); in TEST()
269 assert_se(result == DNSSEC_VALIDATED); in TEST()
271 assert_se(result == DNSSEC_UNSUPPORTED_ALGORITHM); in TEST()
299 DnssecResult result; in TEST() local
358 rrsig->rrsig.inception * USEC_PER_SEC, &result) >= 0); in TEST()
[all …]
Dtest-dnssec-complex.c37 static void test_rr_lookup(sd_bus *bus, const char *name, uint16_t type, const char *result) { in test_rr_lookup() argument
62 assert_se(result); in test_rr_lookup()
63 assert_se(sd_bus_error_has_name(&error, result)); in test_rr_lookup()
66 assert_se(!result); in test_rr_lookup()
71 static void test_hostname_lookup(sd_bus *bus, const char *name, int family, const char *result) { in test_hostname_lookup() argument
99 assert_se(result); in test_hostname_lookup()
100 assert_se(sd_bus_error_has_name(&error, result)); in test_hostname_lookup()
103 assert_se(!result); in test_hostname_lookup()
/systemd-251/src/core/
Djob.c574 static const char* job_done_message_format(Unit *u, JobType t, JobResult result) { in job_done_message_format() argument
608 if (t == JOB_START && result == JOB_DONE && !u->condition_result) in job_done_message_format()
614 format = formats->finished_job(u, t, result); in job_done_message_format()
619 … format = (t == JOB_START ? formats->finished_start_job : formats->finished_stop_job)[result]; in job_done_message_format()
627 return generic_finished_start_job[result]; in job_done_message_format()
630 return generic_finished_stop_job[result]; in job_done_message_format()
632 return generic_finished_reload_job[result]; in job_done_message_format()
634 return generic_finished_verify_active_job[result]; in job_done_message_format()
657 static const char* job_done_mid(JobType type, JobResult result) { in job_done_mid() argument
660 if (result == JOB_DONE) in job_done_mid()
[all …]
Dscope.c284 prefix, scope_result_to_string(s->result), in scope_dump()
295 if (s->result == SCOPE_SUCCESS) in scope_enter_dead()
296 s->result = f; in scope_enter_dead()
298 unit_log_result(UNIT(s), s->result == SCOPE_SUCCESS, scope_result_to_string(s->result)); in scope_enter_dead()
299 scope_set_state(s, s->result != SCOPE_SUCCESS ? SCOPE_FAILED : SCOPE_DEAD); in scope_enter_dead()
308 if (s->result == SCOPE_SUCCESS) in scope_enter_signal()
309 s->result = f; in scope_enter_signal()
401 s->result = SCOPE_SUCCESS; in scope_start()
441 s->result = SCOPE_SUCCESS; in scope_reset_failed()
/systemd-251/src/home/
Dhomed-operation.c21 .result = -1, in operation_new()
33 if (o->message && o->result >= 0) { in operation_free()
35 if (o->result) { in operation_free()
67 o->result = true; in operation_result()
74 o->result = false; in operation_result()
/systemd-251/src/basic/
Dpath-util.c108 _cleanup_free_ char *result = NULL; in path_make_relative() local
136 result = strdup("."); in path_make_relative()
137 if (!result) in path_make_relative()
141 result = strdup(t); in path_make_relative()
142 if (!result) in path_make_relative()
145 path_simplify(result); in path_make_relative()
147 if (!path_is_valid(result)) in path_make_relative()
151 *ret = TAKE_PTR(result); in path_make_relative()
175 result = new(char, n_parents * 3 + !isempty(t) + strlen_ptr(t)); in path_make_relative()
176 if (!result) in path_make_relative()
[all …]
Dnss-util.h162 struct passwd *result, \
184 struct group *result, \
220 struct hostent *result,
229 struct hostent *result,
235 struct hostent *result,
242 struct hostent *result,
/systemd-251/src/nss-resolve/
Dnss-resolve.c380 struct hostent *result, in _nss_resolve_gethostbyname3_r() argument
396 assert(result); in _nss_resolve_gethostbyname3_r()
516 result->h_name = r_name; in _nss_resolve_gethostbyname3_r()
517 result->h_aliases = (char**) r_aliases; in _nss_resolve_gethostbyname3_r()
518 result->h_addrtype = af; in _nss_resolve_gethostbyname3_r()
519 result->h_length = alen; in _nss_resolve_gethostbyname3_r()
520 result->h_addr_list = (char**) r_addr_list; in _nss_resolve_gethostbyname3_r()
589 struct hostent *result, in _nss_resolve_gethostbyaddr2_r() argument
604 assert(result); in _nss_resolve_gethostbyaddr2_r()
713 result->h_name = r_name; in _nss_resolve_gethostbyaddr2_r()
[all …]
/systemd-251/tools/
Dcoverity.sh68 To provide custom archive or results directory, see --result-dir
81 -d, --result-dir Specify result directory if different from default ('cov-int')
170 TEMP=`getopt -o hd:t: --long help,result-dir:tar: -n '$0' -- "$@"`
213 -d|--result-dir)
/systemd-251/src/nss-mymachines/
Dnss-mymachines.c243 struct hostent *result, in _nss_mymachines_gethostbyname3_r() argument
261 assert(result); in _nss_mymachines_gethostbyname3_r()
378 result->h_name = r_name; in _nss_mymachines_gethostbyname3_r()
379 result->h_aliases = (char**) r_aliases; in _nss_mymachines_gethostbyname3_r()
380 result->h_addrtype = af; in _nss_mymachines_gethostbyname3_r()
381 result->h_length = alen; in _nss_mymachines_gethostbyname3_r()
382 result->h_addr_list = (char**) r_addr_list; in _nss_mymachines_gethostbyname3_r()
/systemd-251/src/udev/
Dudevd.c375 static void device_broadcast(sd_device_monitor *monitor, sd_device *dev, EventResult result) { in device_broadcast() argument
384 if (result != EVENT_RESULT_SUCCESS) { in device_broadcast()
387 switch (result) { in device_broadcast()
391 (void) device_add_propertyf(dev, "UDEV_WORKER_ERRNO", "%i", -result); in device_broadcast()
393 str = errno_to_name(result); in device_broadcast()
399 …(void) device_add_propertyf(dev, "UDEV_WORKER_EXIT_STATUS", "%i", result - EVENT_RESULT_EXIT_STATU… in device_broadcast()
409 … (void) device_add_propertyf(dev, "UDEV_WORKER_SIGNAL", "%i", result - EVENT_RESULT_SIGNAL_BASE); in device_broadcast()
411 str = signal_to_string(result - EVENT_RESULT_SIGNAL_BASE); in device_broadcast()
417 log_device_warning(dev, "Unknown event result \"%i\", ignoring.", result); in device_broadcast()
427 static int worker_send_result(Manager *manager, EventResult result) { in worker_send_result() argument
[all …]
/systemd-251/src/nss-systemd/
Dnss-systemd.c676 struct passwd *result, in _nss_systemd_getpwent_r() argument
686 assert(result); in _nss_systemd_getpwent_r()
710 r = nss_pack_user_record(ur, result, buffer, buflen); in _nss_systemd_getpwent_r()
721 struct group *result, in _nss_systemd_getgrent_r() argument
732 assert(result); in _nss_systemd_getgrent_r()
837 r = nss_pack_group_record(gr, members, result, buffer, buflen); in _nss_systemd_getgrent_r()
848 struct spwd *result, in _nss_systemd_getspent_r() argument
858 assert(result); in _nss_systemd_getspent_r()
889 r = nss_pack_user_record_shadow(ur, result, buffer, buflen); in _nss_systemd_getspent_r()
900 struct sgrp *result, in _nss_systemd_getsgent_r() argument
[all …]
/systemd-251/src/libsystemd/sd-bus/
Dtest-bus-address.c13 int result, const char *expected) { in test_one_address() argument
18 if (result < 0 || expected) { in test_one_address()
19 assert_se(r == result); in test_one_address()

123456