/systemd-251/src/core/ ! |
D | automount.c | 65 static int automount_start_expire(Automount *a); 66 static void automount_stop_expire(Automount *a); 67 static int automount_send_ready(Automount *a, Set *tokens, int status); 70 Automount *a = AUTOMOUNT(u); in automount_init() local 72 assert(a); in automount_init() 76 a->pipe_fd = -1; in automount_init() 77 a->directory_mode = 0755; in automount_init() 78 UNIT(a)->ignore_on_isolate = true; in automount_init() 81 static void unmount_autofs(Automount *a) { in unmount_autofs() argument 84 assert(a); in unmount_autofs() [all …]
|
/systemd-251/src/resolve/ ! |
D | resolved-link.c | 191 LIST_FOREACH(addresses, a, l->addresses) in link_add_rrs() 192 link_address_add_rrs(a, force_remove); in link_add_rrs() 256 union in_addr_union a; in link_update_dns_server_one() local 263 r = in_addr_port_ifindex_name_from_string_auto(str, &family, &a, &port, &ifindex, &name); in link_update_dns_server_one() 275 s = dns_server_find(l->dns_servers, family, &a, port, 0, name); in link_update_dns_server_one() 281 return dns_server_new(l->manager, NULL, DNS_SERVER_LINK, l, family, &a, port, 0, name); in link_update_dns_server_one() 699 LIST_FOREACH(addresses, a, l->addresses) in link_relevant() 700 … if ((family == AF_UNSPEC || a->family == family) && link_address_relevant(a, local_multicast)) in link_relevant() 715 LIST_FOREACH(addresses, a, l->addresses) in link_find_address() 716 if (a->family == family && in_addr_equal(family, &a->in_addr, in_addr)) in link_find_address() [all …]
|
D | resolved-dns-answer.c | 25 static void dns_answer_item_hash_func(const DnsAnswerItem *a, struct siphash *state) { in dns_answer_item_hash_func() argument 26 assert(a); in dns_answer_item_hash_func() 29 siphash24_compress(&a->ifindex, sizeof(a->ifindex), state); in dns_answer_item_hash_func() 31 dns_resource_record_hash_func(a->rr, state); in dns_answer_item_hash_func() 34 static int dns_answer_item_compare_func(const DnsAnswerItem *a, const DnsAnswerItem *b) { in dns_answer_item_compare_func() argument 37 assert(a); in dns_answer_item_compare_func() 40 r = CMP(a->ifindex, b->ifindex); in dns_answer_item_compare_func() 44 return dns_resource_record_compare_func(a->rr, b->rr); in dns_answer_item_compare_func() 54 static int dns_answer_reserve_internal(DnsAnswer *a, size_t n) { in dns_answer_reserve_internal() argument 57 assert(a); in dns_answer_reserve_internal() [all …]
|
D | resolved-dns-answer.h | 45 DnsAnswer *dns_answer_ref(DnsAnswer *a); 46 DnsAnswer *dns_answer_unref(DnsAnswer *a); 48 #define DNS_ANSWER_REPLACE(a, b) \ argument 50 typeof(a)* _a = &(a); \ 56 int dns_answer_add(DnsAnswer *a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags, DnsResou… 57 int dns_answer_add_extend(DnsAnswer **a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags, … 58 int dns_answer_add_soa(DnsAnswer *a, const char *name, uint32_t ttl, int ifindex); 60 int dns_answer_match_key(DnsAnswer *a, const DnsResourceKey *key, DnsAnswerFlags *ret_flags); 61 bool dns_answer_contains_nsec_or_nsec3(DnsAnswer *a); 65 int dns_answer_find_soa(DnsAnswer *a, const DnsResourceKey *key, DnsResourceRecord **ret, DnsAnswer… [all …]
|
/systemd-251/src/libsystemd/sd-journal/ ! |
D | lookup3.c | 124 #define mix(a,b,c) \ argument 126 a -= c; a ^= rot(c, 4); c += b; \ 127 b -= a; b ^= rot(a, 6); a += c; \ 128 c -= b; c ^= rot(b, 8); b += a; \ 129 a -= c; a ^= rot(c,16); c += b; \ 130 b -= a; b ^= rot(a,19); a += c; \ 131 c -= b; c ^= rot(b, 4); b += a; \ 159 #define final(a,b,c) \ argument 162 a ^= c; a -= rot(c,11); \ 163 b ^= a; b -= rot(a,25); \ [all …]
|
/systemd-251/src/test/ ! |
D | test-socket-netlink.c | 10 SocketAddress a; in test_socket_address_parse_one() local 14 r = socket_address_parse(&a, in); in test_socket_address_parse_one() 16 r = socket_address_print(&a, &out); in test_socket_address_parse_one() 20 assert_se(a.type == 0); in test_socket_address_parse_one() 31 assert_se(a.sockaddr.sa.sa_family == family); in test_socket_address_parse_one() 102 SocketAddress a; in TEST() local 104 assert_se(socket_address_parse_netlink(&a, "junk") < 0); in TEST() 105 assert_se(socket_address_parse_netlink(&a, "") < 0); in TEST() 107 assert_se(socket_address_parse_netlink(&a, "route") >= 0); in TEST() 108 assert_se(a.sockaddr.nl.nl_family == AF_NETLINK); in TEST() [all …]
|
D | test-local-addresses.c | 11 static void print_local_addresses(struct local_address *a, unsigned n) { in print_local_addresses() argument 17 assert_se(in_addr_to_string(a[i].family, &a[i].address, &b) >= 0); in print_local_addresses() 18 …bug("%s if%i scope=%i metric=%u address=%s", af_to_name(a[i].family), a[i].ifindex, a[i].scope, a[… in print_local_addresses() 23 struct local_address *a = NULL; in TEST() local 26 n = local_addresses(NULL, 0, AF_INET, &a); in TEST() 29 print_local_addresses(a, (unsigned) n); in TEST() 30 a = mfree(a); in TEST() 33 n = local_addresses(NULL, 0, AF_INET6, &a); in TEST() 36 print_local_addresses(a, (unsigned) n); in TEST() 37 a = mfree(a); in TEST() [all …]
|
D | test-engine.c | 23 UnitDependencyAtom a; in verify_dependency_atoms() local 27 assert_se((a = unit_dependency_to_atom(d)) >= 0); in verify_dependency_atoms() 37 if ((a & b) == a) { in verify_dependency_atoms() 43 reverse = unit_dependency_from_unique_atom(a); in verify_dependency_atoms() 52 multi_use_atoms |= combined & a; in verify_dependency_atoms() 53 combined |= a; in verify_dependency_atoms() 59 for (UnitDependencyAtom a = 1; a <= _UNIT_DEPENDENCY_ATOM_MAX; a <<= 1) { in verify_dependency_atoms() local 61 if (multi_use_atoms & a) { in verify_dependency_atoms() 64 assert_se(unit_dependency_from_unique_atom(a) == _UNIT_DEPENDENCY_INVALID); in verify_dependency_atoms() 70 assert_se(unit_dependency_from_unique_atom(a) >= 0); in verify_dependency_atoms() [all …]
|
D | test-strv.c | 563 _cleanup_strv_free_ char **a = NULL, **b = NULL; in TEST() local 565 a = strv_new("without", "suffix"); in TEST() 567 assert_se(a); in TEST() 570 assert_se(strv_extend_strv_concat(&a, b, "_suffix") >= 0); in TEST() 572 assert_se(streq(a[0], "without")); in TEST() 573 assert_se(streq(a[1], "suffix")); in TEST() 574 assert_se(streq(a[2], "with_suffix")); in TEST() 575 assert_se(streq(a[3], "suffix_suffix")); in TEST() 579 _cleanup_strv_free_ char **a = NULL, **b = NULL, **n = NULL; in TEST() local 581 a = strv_new("abc", "def", "ghi"); in TEST() [all …]
|
D | test-ether-addr-util.c | 8 struct ether_addr a; in TEST() local 10 a = ETHER_ADDR_NULL; in TEST() 11 assert_se(ether_addr_is_null(&a)); in TEST() 12 assert_se(!ether_addr_is_broadcast(&a)); in TEST() 13 assert_se(!ether_addr_is_multicast(&a)); in TEST() 14 assert_se(ether_addr_is_unicast(&a)); in TEST() 15 assert_se(!ether_addr_is_local(&a)); in TEST() 16 assert_se(ether_addr_is_global(&a)); in TEST() 18 memset(a.ether_addr_octet, 0xff, sizeof(a)); in TEST() 19 assert_se(!ether_addr_is_null(&a)); in TEST() [all …]
|
D | test-user-util.c | 437 uid_t a = 4711, b = 4711; in TEST() local 439 assert_se(parse_uid_range("", &a, &b) == -EINVAL && a == 4711 && b == 4711); in TEST() 440 assert_se(parse_uid_range(" ", &a, &b) == -EINVAL && a == 4711 && b == 4711); in TEST() 441 assert_se(parse_uid_range("x", &a, &b) == -EINVAL && a == 4711 && b == 4711); in TEST() 443 assert_se(parse_uid_range("0", &a, &b) >= 0 && a == 0 && b == 0); in TEST() 444 assert_se(parse_uid_range("1", &a, &b) >= 0 && a == 1 && b == 1); in TEST() 445 assert_se(parse_uid_range("2-2", &a, &b) >= 0 && a == 2 && b == 2); in TEST() 446 assert_se(parse_uid_range("3-3", &a, &b) >= 0 && a == 3 && b == 3); in TEST() 447 assert_se(parse_uid_range("4-5", &a, &b) >= 0 && a == 4 && b == 5); in TEST() 449 assert_se(parse_uid_range("7-6", &a, &b) == -EINVAL && a == 4 && b == 5); in TEST() [all …]
|
/systemd-251/src/boot/efi/ ! |
D | cpio.c | 63 CHAR8 *a; in pack_cpio_one() local 114 a = xreallocate_pool(*cpio_buffer, *cpio_buffer_size, *cpio_buffer_size + l); in pack_cpio_one() 116 *cpio_buffer = a; in pack_cpio_one() 117 a = (CHAR8*) *cpio_buffer + *cpio_buffer_size; in pack_cpio_one() 119 CopyMem(a, "070701", 6); /* magic ID */ in pack_cpio_one() 120 a += 6; in pack_cpio_one() 122 a = write_cpio_word(a, (*inode_counter)++); /* inode */ in pack_cpio_one() 123 a = write_cpio_word(a, access_mode | 0100000 /* = S_IFREG */); /* mode */ in pack_cpio_one() 124 a = write_cpio_word(a, 0); /* uid */ in pack_cpio_one() 125 a = write_cpio_word(a, 0); /* gid */ in pack_cpio_one() [all …]
|
/systemd-251/src/fundamental/ ! |
D | string-util-fundamental.c | 81 static sd_bool isdigit(sd_char a) { in isdigit() argument 82 return a >= '0' && a <= '9'; in isdigit() 86 static sd_bool is_alpha(sd_char a) { in is_alpha() argument 88 return (a >= 'a' && a <= 'z') || (a >= 'A' && a <= 'Z'); in is_alpha() 91 static sd_bool is_valid_version_char(sd_char a) { in is_valid_version_char() argument 92 return isdigit(a) || is_alpha(a) || IN_SET(a, '~', '-', '^', '.'); in is_valid_version_char() 95 sd_int strverscmp_improved(const sd_char *a, const sd_char *b) { in strverscmp_improved() argument 126 if (isempty(a) || isempty(b)) in strverscmp_improved() 127 return strcmp_ptr(a, b); in strverscmp_improved() 134 while (*a != '\0' && !is_valid_version_char(*a)) in strverscmp_improved() [all …]
|
D | string-util-fundamental.h | 14 #define strlen(a) StrLen((a)) argument 15 #define strcmp(a, b) StrCmp((a), (b)) argument 16 #define strncmp(a, b, n) StrnCmp((a), (b), (n)) argument 17 #define strcasecmp(a, b) StriCmp((a), (b)) argument 19 #define memcmp(a, b, n) CompareMem(a, b, n) argument 24 #define streq(a,b) (strcmp((a),(b)) == 0) argument 25 #define strneq(a, b, n) (strncmp((a), (b), (n)) == 0) argument 26 #define strcaseeq(a,b) (strcasecmp((a),(b)) == 0) argument 28 #define strncaseeq(a, b, n) (strncasecmp((a), (b), (n)) == 0) argument 31 static inline sd_int strcmp_ptr(const sd_char *a, const sd_char *b) { in strcmp_ptr() argument [all …]
|
/systemd-251/src/basic/ ! |
D | socket-util.c | 55 int socket_address_verify(const SocketAddress *a, bool strict) { in socket_address_verify() argument 56 assert(a); in socket_address_verify() 61 switch (socket_address_family(a)) { in socket_address_verify() 64 if (a->size != sizeof(struct sockaddr_in)) in socket_address_verify() 67 if (a->sockaddr.in.sin_port == 0) in socket_address_verify() 70 if (!IN_SET(a->type, 0, SOCK_STREAM, SOCK_DGRAM)) in socket_address_verify() 76 if (a->size != sizeof(struct sockaddr_in6)) in socket_address_verify() 79 if (a->sockaddr.in6.sin6_port == 0) in socket_address_verify() 82 if (!IN_SET(a->type, 0, SOCK_STREAM, SOCK_DGRAM)) in socket_address_verify() 88 if (a->size < offsetof(struct sockaddr_un, sun_path)) in socket_address_verify() [all …]
|
D | in-addr-util.c | 21 bool in4_addr_is_null(const struct in_addr *a) { in in4_addr_is_null() argument 22 assert(a); in in4_addr_is_null() 24 return a->s_addr == 0; in in4_addr_is_null() 27 bool in6_addr_is_null(const struct in6_addr *a) { in in6_addr_is_null() argument 28 assert(a); in in6_addr_is_null() 30 return IN6_IS_ADDR_UNSPECIFIED(a); in in6_addr_is_null() 45 bool in4_addr_is_link_local(const struct in_addr *a) { in in4_addr_is_link_local() argument 46 assert(a); in in4_addr_is_link_local() 48 … return (be32toh(a->s_addr) & UINT32_C(0xFFFF0000)) == (UINT32_C(169) << 24 | UINT32_C(254) << 16); in in4_addr_is_link_local() 51 bool in6_addr_is_link_local(const struct in6_addr *a) { in in6_addr_is_link_local() argument [all …]
|
D | in-addr-util.h | 23 bool in4_addr_is_null(const struct in_addr *a); 24 static inline bool in4_addr_is_set(const struct in_addr *a) { in in4_addr_is_set() argument 25 return !in4_addr_is_null(a); in in4_addr_is_set() 27 bool in6_addr_is_null(const struct in6_addr *a); 28 static inline bool in6_addr_is_set(const struct in6_addr *a) { in in6_addr_is_set() argument 29 return !in6_addr_is_null(a); in in6_addr_is_set() 35 static inline int in_addr_data_is_null(const struct in_addr_data *a) { in in_addr_data_is_null() argument 36 assert(a); in in_addr_data_is_null() 37 return in_addr_is_null(a->family, &a->address); in in_addr_data_is_null() 39 static inline bool in_addr_data_is_set(const struct in_addr_data *a) { in in_addr_data_is_set() argument [all …]
|
/systemd-251/src/shared/ ! |
D | socket-netlink.c | 19 int socket_address_parse(SocketAddress *a, const char *s) { in socket_address_parse() argument 24 assert(a); in socket_address_parse() 35 *a = (SocketAddress) { in socket_address_parse() 65 *a = (SocketAddress) { in socket_address_parse() 83 *a = (SocketAddress) { in socket_address_parse() 92 *a = (SocketAddress) { in socket_address_parse() 113 *a = (SocketAddress) { in socket_address_parse() 122 *a = (SocketAddress) { in socket_address_parse() 139 int socket_address_parse_and_warn(SocketAddress *a, const char *s) { in socket_address_parse_and_warn() argument 154 *a = b; in socket_address_parse_and_warn() [all …]
|
D | gpt.h | 11 #define GPT_ROOT_ALPHA SD_ID128_MAKE(65,23,f8,ae,3e,b1,4e,2a,a0,5a,18,b6,95,ae,65,6f) 13 #define GPT_ROOT_ARM SD_ID128_MAKE(69,da,d7,10,2c,e4,4e,3c,b1,6c,21,a1,d4,9a,be,d3) 15 #define GPT_ROOT_IA64 SD_ID128_MAKE(99,3d,8d,3d,f8,0e,42,25,85,5a,9d,af,8e,d7,ea,97) 16 #define GPT_ROOT_LOONGARCH64 SD_ID128_MAKE(77,05,58,00,79,2c,4f,94,b3,9a,98,c9,1b,76,2b,b6) 17 #define GPT_ROOT_MIPS_LE SD_ID128_MAKE(37,c5,8c,8a,d9,13,41,56,a2,5f,48,b1,b6,4e,07,f0) 18 #define GPT_ROOT_MIPS64_LE SD_ID128_MAKE(70,0b,da,43,7a,34,45,07,b1,79,ee,b9,3d,7a,7c,a3) 19 #define GPT_ROOT_PPC SD_ID128_MAKE(1d,e3,f1,ef,fa,98,47,b5,8d,cd,4a,86,0a,65,4d,78) 20 #define GPT_ROOT_PPC64 SD_ID128_MAKE(91,2a,de,1d,a8,39,49,13,89,64,a1,0e,ee,08,fb,d2) 24 #define GPT_ROOT_S390 SD_ID128_MAKE(08,a7,ac,ea,62,4c,4a,20,91,e8,6e,0f,a6,7d,23,f9) 25 #define GPT_ROOT_S390X SD_ID128_MAKE(5e,ea,d9,a9,fe,09,4a,1e,a1,d7,52,0d,00,53,13,06) [all …]
|
D | socket-label.c | 23 const SocketAddress *a, in socket_address_listen() argument 39 assert(a); in socket_address_listen() 41 r = socket_address_verify(a, true); in socket_address_listen() 45 if (socket_address_family(a) == AF_INET6 && !socket_ipv6_is_supported()) in socket_address_listen() 54 fd = RET_NERRNO(socket(socket_address_family(a), a->type | flags, a->protocol)); in socket_address_listen() 62 if (socket_address_family(a) == AF_INET6 && only != SOCKET_ADDRESS_DEFAULT) { in socket_address_listen() 68 if (IN_SET(socket_address_family(a), AF_INET, AF_INET6)) { in socket_address_listen() 82 r = socket_set_freebind(fd, socket_address_family(a), true); in socket_address_listen() 88 r = socket_set_transparent(fd, socket_address_family(a), true); in socket_address_listen() 98 p = socket_address_get_path(a); in socket_address_listen() [all …]
|
/systemd-251/src/systemd/ ! |
D | sd-messages.h | 31 #define SD_MESSAGE_JOURNAL_START SD_ID128_MAKE(f7,73,79,a8,49,0b,40,8b,be,5f,69,40,50,5a,7… 32 …D_MESSAGE_JOURNAL_START_STR SD_ID128_MAKE_STR(f7,73,79,a8,49,0b,40,8b,be,5f,69,40,50,5a,77,7b) 33 #define SD_MESSAGE_JOURNAL_STOP SD_ID128_MAKE(d9,3f,b3,c9,c2,4d,45,1a,97,ce,a6,15,ce,59,c… 34 #define SD_MESSAGE_JOURNAL_STOP_STR SD_ID128_MAKE_STR(d9,3f,b3,c9,c2,4d,45,1a,97,ce,a6,15,ce,… 37 #define SD_MESSAGE_JOURNAL_MISSED SD_ID128_MAKE(e9,bf,28,e6,e8,34,48,1b,b6,f4,8f,54,8a,d1,3… 38 #define SD_MESSAGE_JOURNAL_MISSED_STR SD_ID128_MAKE_STR(e9,bf,28,e6,e8,34,48,1b,b6,f4,8f,54,8a,… 39 #define SD_MESSAGE_JOURNAL_USAGE SD_ID128_MAKE(ec,38,7f,57,7b,84,4b,8f,a9,48,f3,3c,ad,9a,7… 40 …D_MESSAGE_JOURNAL_USAGE_STR SD_ID128_MAKE_STR(ec,38,7f,57,7b,84,4b,8f,a9,48,f3,3c,ad,9a,75,e6) 44 #define SD_MESSAGE_TRUNCATED_CORE SD_ID128_MAKE(5a,ad,d8,e9,54,dc,4b,1a,8c,95,4d,63,fd,9e,1… 45 #define SD_MESSAGE_TRUNCATED_CORE_STR SD_ID128_MAKE_STR(5a,ad,d8,e9,54,dc,4b,1a,8c,95,4d,63,fd,… [all …]
|
/systemd-251/src/network/netdev/ ! |
D | macsec.c | 166 static TransmitAssociation* macsec_transmit_association_free(TransmitAssociation *a) { in macsec_transmit_association_free() argument 167 if (!a) in macsec_transmit_association_free() 170 if (a->macsec && a->section) in macsec_transmit_association_free() 171 ordered_hashmap_remove(a->macsec->transmit_associations_by_section, a->section); in macsec_transmit_association_free() 173 config_section_free(a->section); in macsec_transmit_association_free() 174 security_association_clear(&a->sa); in macsec_transmit_association_free() 176 return mfree(a); in macsec_transmit_association_free() 183 _cleanup_(macsec_transmit_association_freep) TransmitAssociation *a = NULL; in macsec_transmit_association_new_static() 195 a = ordered_hashmap_get(s->transmit_associations_by_section, n); in macsec_transmit_association_new_static() 196 if (a) { in macsec_transmit_association_new_static() [all …]
|
/systemd-251/src/libsystemd/sd-bus/ ! |
D | bus-internal.c | 50 char* object_path_startswith(const char *a, const char *b) { in object_path_startswith() argument 53 if (!object_path_is_valid(a) || in object_path_startswith() 58 return (char*) a + 1; in object_path_startswith() 60 p = startswith(a, b); in object_path_startswith() 196 static bool complex_pattern_check(char c, const char *a, const char *b) { in complex_pattern_check() argument 199 if (!a && !b) in complex_pattern_check() 202 if (!a || !b) in complex_pattern_check() 206 if (*a != *b) in complex_pattern_check() 207 return (separator && (*a == 0 || *b == 0)); in complex_pattern_check() 209 if (*a == 0) in complex_pattern_check() [all …]
|
/systemd-251/po/ ! |
D | be@latin.po | 29 msgstr "Nieabchodna aŭtentyfikacyja dlia adpraŭki parolia nazad sistemie." 38 "Nieabchodna aŭtentyfikacyja dlia kiravannia servisami i inšymi sistemnymi " 48 "Nieabchodna aŭtentyfikacyja dlia kiravannia fajlami servisaŭ i inšych " 60 "Nieabchodna aŭtentyfikacyja dlia ŭstaliavannia abo skidu zmiennych " 69 msgstr "Nieabchodna aŭtentyfikacyja dlia pieračytannia stanu systemd." 72 msgid "Create a home area" 78 msgid "Authentication is required to create a user's home area." 79 msgstr "Nieabchodna aŭtentyfikacyja dlia pieračytannia stanu systemd." 82 msgid "Remove a home area" 88 msgid "Authentication is required to remove a user's home area." [all …]
|
/systemd-251/src/udev/ ! |
D | test-udev-node.c | 17 char a[NAME_MAX+1], b[NAME_MAX+1]; in TEST() local 27 memset(a, 'a', sizeof(a) - 1); in TEST() 28 memcpy(a, "/disk/by-id/", strlen("/disk/by-id/")); in TEST() 29 char_array_0(a); in TEST() 35 test_udev_node_escape_path_one(a, b); in TEST() 37 strcpy(a + sizeof(a) - 12 - 9, "N3YhcCqFeID"); in TEST() 39 test_udev_node_escape_path_one(a, b); in TEST() 41 strcpy(a + sizeof(a) - 12 - 9, "a"); in TEST() 43 test_udev_node_escape_path_one(a, b); in TEST() 45 a[sizeof(a) - 12 - 9] = '\0'; in TEST() [all …]
|