Home
last modified time | relevance | path

Searched refs:assert_cc (Results 1 – 25 of 122) sorted by relevance

12345

/systemd-251/src/boot/efi/
Dbcd.c54 assert_cc(sizeof(BaseBlock) == 4096);
55 assert_cc(offsetof(BaseBlock, sig) == 0);
56 assert_cc(offsetof(BaseBlock, primary_seqnum) == 4);
57 assert_cc(offsetof(BaseBlock, secondary_seqnum) == 8);
58 assert_cc(offsetof(BaseBlock, version_major) == 20);
59 assert_cc(offsetof(BaseBlock, version_minor) == 24);
60 assert_cc(offsetof(BaseBlock, type) == 28);
61 assert_cc(offsetof(BaseBlock, root_cell_offset) == 36);
80 assert_cc(offsetof(Key, sig) == 0);
81 assert_cc(offsetof(Key, subkeys_offset) == 28);
[all …]
/systemd-251/src/basic/
Ddirent-util.h37 assert_cc(_FILE_OFFSET_BITS == 64);
38 assert_cc(sizeof(struct dirent) == sizeof(struct dirent64));
39 assert_cc(offsetof(struct dirent, d_ino) == offsetof(struct dirent64, d_ino));
40 assert_cc(sizeof_field(struct dirent, d_ino) == sizeof_field(struct dirent64, d_ino));
41 assert_cc(offsetof(struct dirent, d_off) == offsetof(struct dirent64, d_off));
42 assert_cc(sizeof_field(struct dirent, d_off) == sizeof_field(struct dirent64, d_off));
43 assert_cc(offsetof(struct dirent, d_reclen) == offsetof(struct dirent64, d_reclen));
44 assert_cc(sizeof_field(struct dirent, d_reclen) == sizeof_field(struct dirent64, d_reclen));
45 assert_cc(offsetof(struct dirent, d_type) == offsetof(struct dirent64, d_type));
46 assert_cc(sizeof_field(struct dirent, d_type) == sizeof_field(struct dirent64, d_type));
[all …]
Dparse-util.h54 assert_cc(sizeof(uint32_t) == sizeof(unsigned)); in safe_atou32_full()
63 assert_cc(sizeof(int32_t) == sizeof(int)); in safe_atoi32()
74 assert_cc(sizeof(uint64_t) == sizeof(unsigned long long)); in safe_atou64()
79 assert_cc(sizeof(int64_t) == sizeof(long long int)); in safe_atoi64()
84 assert_cc(sizeof(int64_t) == sizeof(unsigned long long)); in safe_atoux64()
90 assert_cc(sizeof(unsigned long) == sizeof(unsigned)); in safe_atolu_full()
94 assert_cc(sizeof(long int) == sizeof(int)); in safe_atoli()
99 assert_cc(sizeof(unsigned long) == sizeof(unsigned long long)); in safe_atolu_full()
103 assert_cc(sizeof(long int) == sizeof(long long int)); in safe_atoli()
114 assert_cc(sizeof(size_t) == sizeof(unsigned)); in safe_atozu()
[all …]
Dmissing_syscall_def.h98 assert_cc(__NR_bpf == systemd_NR_bpf);
164 assert_cc(__NR_close_range == systemd_NR_close_range);
230 assert_cc(__NR_copy_file_range == systemd_NR_copy_file_range);
296 assert_cc(__NR_epoll_pwait2 == systemd_NR_epoll_pwait2);
362 assert_cc(__NR_getrandom == systemd_NR_getrandom);
428 assert_cc(__NR_memfd_create == systemd_NR_memfd_create);
494 assert_cc(__NR_mount_setattr == systemd_NR_mount_setattr);
560 assert_cc(__NR_move_mount == systemd_NR_move_mount);
626 assert_cc(__NR_name_to_handle_at == systemd_NR_name_to_handle_at);
692 assert_cc(__NR_open_tree == systemd_NR_open_tree);
[all …]
Dformat-util.h11 assert_cc(sizeof(pid_t) == sizeof(int32_t));
15 assert_cc(sizeof(uid_t) == sizeof(uint32_t));
18 assert_cc(sizeof(gid_t) == sizeof(uint32_t));
Drecurse-dir.h39 assert_cc(RECURSE_DIR_LEAVE_DIRECTORY < -ERRNO_MAX);
40 assert_cc(RECURSE_DIR_SKIP_ENTRY < -ERRNO_MAX);
Dformat-util.c8 assert_cc(STRLEN("%") + DECIMAL_STR_MAX(int) <= IF_NAMESIZE);
68 assert_cc(ELEMENTSOF(table_iec) == ELEMENTSOF(table_si)); in format_bytes_full()
Drandom-util.c139 assert_cc(RAND_MAX >= 16777215);
143 assert_cc(RAND_MAX >= 255);
/systemd-251/src/test/
Dtest-format-util.c9 assert_cc(STRLEN("xxx") == 3);
10 assert_cc(STRLEN("") == 0);
11 assert_cc(STRLEN(L"xxx") == 3 * sizeof(wchar_t));
12 assert_cc(STRLEN(L"") == 0);
13 assert_cc(DECIMAL_STR_MAX(uint8_t) == STRLEN("255")+1);
14 assert_cc(DECIMAL_STR_MAX(int8_t) == STRLEN("-127")+1);
15 assert_cc(DECIMAL_STR_MAX(uint64_t) == STRLEN("18446744073709551615")+1);
16 assert_cc(DECIMAL_STR_MAX(int64_t) == CONST_MAX(STRLEN("-9223372036854775808"), STRLEN("92233720368…
17 assert_cc(DECIMAL_STR_MAX(signed char) == STRLEN("-127")+1);
18 assert_cc(DECIMAL_STR_MAX(unsigned char) == STRLEN("255")+1);
[all …]
Dtest-macro.c75 assert_cc(sizeof(val1.b) == sizeof(int) * 100); in TEST()
79 assert_cc(__builtin_types_compatible_p(typeof(CONST_MAX(1, 10)), int)); in TEST()
80 assert_cc(__builtin_types_compatible_p(typeof(CONST_MAX(1, 1U)), void)); in TEST()
86 assert_cc(MAXSIZE(char[3], uint16_t) == 3); in TEST()
87 assert_cc(MAXSIZE(char[3], uint32_t) == 4); in TEST()
88 assert_cc(MAXSIZE(char, long) == sizeof(long)); in TEST()
150 assert_cc(sizeof(myval) >= 17); in TEST()
322 assert_cc(CONST_ALIGN_TO(96, 512) == 512); in TEST()
323 assert_cc(CONST_ALIGN_TO(511, 512) == 512); in TEST()
324 assert_cc(CONST_ALIGN_TO(512, 512) == 512); in TEST()
[all …]
Dtest-log.c12 assert_cc(IS_SYNTHETIC_ERRNO(SYNTHETIC_ERRNO(EINVAL)));
13 assert_cc(!IS_SYNTHETIC_ERRNO(EINVAL));
14 assert_cc(IS_SYNTHETIC_ERRNO(SYNTHETIC_ERRNO(0)));
15 assert_cc(!IS_SYNTHETIC_ERRNO(0));
/systemd-251/src/shared/
Dbus-get-properties.h15 assert_cc(sizeof(int) == sizeof(int32_t));
18 assert_cc(sizeof(unsigned) == sizeof(uint32_t));
40 assert_cc(sizeof(uid_t) == sizeof(uint32_t));
43 assert_cc(sizeof(gid_t) == sizeof(uint32_t));
46 assert_cc(sizeof(pid_t) == sizeof(uint32_t));
49 assert_cc(sizeof(mode_t) == sizeof(uint32_t));
Dacl-util.c383 assert_cc(!(ACL_READ & ACL_WRITE));
384 assert_cc(!(ACL_WRITE & ACL_EXECUTE));
385 assert_cc(!(ACL_EXECUTE & ACL_READ));
386 assert_cc((unsigned) ACL_READ == ACL_READ);
387 assert_cc((unsigned) ACL_WRITE == ACL_WRITE);
388 assert_cc((unsigned) ACL_EXECUTE == ACL_EXECUTE);
Djson-internal.h21 assert_cc(sizeof(JsonValue) == 8U);
56 assert_cc((unsigned) __JSON_VARIANT_MAGIC_MAX < 4096U);
Dbus-message-util.c13 assert_cc(sizeof(int) == sizeof(int32_t)); in bus_message_read_ifindex()
33 assert_cc(sizeof(int) == sizeof(int32_t)); in bus_message_read_family()
/systemd-251/src/libsystemd/sd-journal/
Djournal-def.h74 assert_cc(sizeof(struct DataObject) == sizeof(struct DataObject__packed));
86 assert_cc(sizeof(struct FieldObject) == sizeof(struct FieldObject__packed));
105 assert_cc(sizeof(struct EntryObject) == sizeof(struct EntryObject__packed));
221 assert_cc(sizeof(struct Header) == sizeof(struct Header__packed));
222 assert_cc(sizeof(struct Header) == 256);
/systemd-251/src/network/
Dtest-network-tables.c46 assert_cc(sizeof(sd_lldp_rx_event_t) == sizeof(int64_t)); in main()
47 assert_cc(sizeof(sd_ndisc_event_t) == sizeof(int64_t)); in main()
48 assert_cc(sizeof(sd_dhcp_lease_server_type_t) == sizeof(int64_t)); in main()
/systemd-251/src/resolve/
Ddns-type.h96 assert_cc(DNS_TYPE_SSHFP == 44);
97 assert_cc(DNS_TYPE_TLSA == 52);
98 assert_cc(DNS_TYPE_ANY == 255);
Dresolved-dns-packet.h42 assert_cc(sizeof(struct ip6_hdr) == 40);
43 assert_cc(sizeof(struct iphdr) == 20);
44 assert_cc(sizeof(struct udphdr) == 8);
45 assert_cc(sizeof(DnsPacketHeader) == 12);
/systemd-251/src/network/netdev/
Dbridge.c14 assert_cc((int) MULTICAST_ROUTER_NONE == (int) MDB_RTR_TYPE_DISABLED);
15 assert_cc((int) MULTICAST_ROUTER_TEMPORARY_QUERY == (int) MDB_RTR_TYPE_TEMP_QUERY);
16 assert_cc((int) MULTICAST_ROUTER_PERMANENT == (int) MDB_RTR_TYPE_PERM);
17 assert_cc((int) MULTICAST_ROUTER_TEMPORARY == (int) MDB_RTR_TYPE_TEMP);
Dipoib.c11 assert_cc((int) IP_OVER_INFINIBAND_MODE_DATAGRAM == (int) IPOIB_MODE_DATAGRAM);
12 assert_cc((int) IP_OVER_INFINIBAND_MODE_CONNECTED == (int) IPOIB_MODE_CONNECTED);
/systemd-251/src/rfkill/
Drfkill.c174 assert_cc(offsetof(struct rfkill_event, op) < RFKILL_EVENT_SIZE_V1); in load_state()
175 assert_cc(offsetof(struct rfkill_event, soft) < RFKILL_EVENT_SIZE_V1); in load_state()
345 assert_cc(offsetof(struct rfkill_event, op) < RFKILL_EVENT_SIZE_V1); in run()
346 assert_cc(offsetof(struct rfkill_event, type) < RFKILL_EVENT_SIZE_V1); in run()
/systemd-251/src/nspawn/
Dnspawn-settings.h142 assert_cc(sizeof(SettingsMask) == 8);
143 assert_cc(sizeof(SETTING_RLIMIT_FIRST) == 8);
144 assert_cc(sizeof(SETTING_RLIMIT_LAST) == 8);
/systemd-251/src/libsystemd-network/
Dradv-internal.h130 assert_cc(sizeof(struct radv_prefix_opt) == sizeof(struct radv_prefix_opt__packed));
159 assert_cc(sizeof(struct radv_route_prefix_opt) == sizeof(struct radv_route_prefix_opt__packed));
/systemd-251/src/home/
Dhomework-mount.c192 assert_cc(HOME_UID_MIN <= HOME_UID_MAX); in make_userns()
193 assert_cc(HOME_UID_MAX < UID_NOBODY); in make_userns()

12345