Home
last modified time | relevance | path

Searched refs:s1 (Results 1 – 12 of 12) sorted by relevance

/systemd-251/src/basic/
Dmemory-util.h35 static inline int memcmp_safe(const void *s1, const void *s2, size_t n) { in memcmp_safe() argument
38 assert(s1); in memcmp_safe()
40 return memcmp(s1, s2, n); in memcmp_safe()
44 static inline int memcmp_nn(const void *s1, size_t n1, const void *s2, size_t n2) { in memcmp_nn() argument
45 return memcmp_safe(s1, s2, MIN(n1, n2)) in memcmp_nn()
Dstring-util.c1150 bool streq_skip_trailing_chars(const char *s1, const char *s2, const char *ok) { in streq_skip_trailing_chars() argument
1151 if (!s1 && !s2) in streq_skip_trailing_chars()
1153 if (!s1 || !s2) in streq_skip_trailing_chars()
1159 for (; *s1 && *s2; s1++, s2++) in streq_skip_trailing_chars()
1160 if (*s1 != *s2) in streq_skip_trailing_chars()
1163 return in_charset(s1, ok) && in_charset(s2, ok); in streq_skip_trailing_chars()
Dstring-util.h235 bool streq_skip_trailing_chars(const char *s1, const char *s2, const char *ok);
/systemd-251/src/login/
Dlogind-user.c763 static int elect_display_compare(Session *s1, Session *s2) { in elect_display_compare() argument
780 if (!s1 && !s2) in elect_display_compare()
783 if ((s1 == NULL) != (s2 == NULL)) in elect_display_compare()
784 return (s1 == NULL) - (s2 == NULL); in elect_display_compare()
786 if (s1->stopping != s2->stopping) in elect_display_compare()
787 return s1->stopping - s2->stopping; in elect_display_compare()
789 if ((s1->class != SESSION_USER) != (s2->class != SESSION_USER)) in elect_display_compare()
790 return (s1->class != SESSION_USER) - (s2->class != SESSION_USER); in elect_display_compare()
792 if ((s1->type == _SESSION_TYPE_INVALID) != (s2->type == _SESSION_TYPE_INVALID)) in elect_display_compare()
793 return (s1->type == _SESSION_TYPE_INVALID) - (s2->type == _SESSION_TYPE_INVALID); in elect_display_compare()
[all …]
/systemd-251/src/test/
Dtest-cpu-set-util.c214 _cleanup_free_ char *s1 = NULL, *s2 = NULL; in TEST() local
218 assert_se(s1 = cpu_set_to_string(&c)); in TEST()
219 log_info("cpu_set_to_string: %s", s1); in TEST()
Dtest-string-util.c500 char s1[] = "foobar//", in TEST() local
505 assert_se(streq(delete_trailing_chars(s1, "_"), "foobar//")); in TEST()
506 assert_se(streq(delete_trailing_chars(s1, "/"), "foobar")); in TEST()
/systemd-251/src/shared/
Dnetif-sriov.c90 int sr_iov_compare_func(const SRIOV *s1, const SRIOV *s2) { in sr_iov_compare_func() argument
91 assert(s1); in sr_iov_compare_func()
94 return CMP(s1->vf, s2->vf); in sr_iov_compare_func()
Dnetif-sriov.h37 int sr_iov_compare_func(const SRIOV *s1, const SRIOV *s2);
/systemd-251/src/core/
Ddynamic-user.c640 _cleanup_free_ char *name = NULL, *s0 = NULL, *s1 = NULL; in dynamic_user_deserialize_one() local
649 r = extract_many_words(&value, NULL, 0, &name, &s0, &s1, NULL); in dynamic_user_deserialize_one()
660 if (safe_atoi(s1, &fd1) < 0 || !fdset_contains(fds, fd1)) { in dynamic_user_deserialize_one()
/systemd-251/src/libsystemd/sd-netlink/
Dtest-netlink.c460 _cleanup_(sd_netlink_slot_unrefp) sd_netlink_slot *s1 = NULL, *s2 = NULL; in test_match()
467 … assert_se(sd_netlink_add_match(rtnl, &s1, RTM_NEWLINK, link_handler, NULL, NULL, NULL) >= 0); in test_match()
471 assert_se(!(s1 = sd_netlink_slot_unref(s1))); in test_match()
/systemd-251/docs/
Dstyle.css342 .highlight .s1 {
464 …c, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
/systemd-251/src/machine/
Dmachinectl.c510 _cleanup_free_ char *addresses = NULL, *s1 = NULL, *s2 = NULL; in print_machine_status_info() local
523 s1 = strdup(strempty(FORMAT_TIMESTAMP_RELATIVE(i->timestamp.realtime))); in print_machine_status_info()
526 if (!isempty(s1)) in print_machine_status_info()
527 printf("\t Since: %s; %s\n", strna(s2), s1); in print_machine_status_info()