/systemd-251/src/boot/efi/ |
D | bcd.c | 54 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/ |
D | dirent-util.h | 37 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 …]
|
D | parse-util.h | 54 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 …]
|
D | missing_syscall_def.h | 98 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 …]
|
D | format-util.h | 11 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));
|
D | recurse-dir.h | 39 assert_cc(RECURSE_DIR_LEAVE_DIRECTORY < -ERRNO_MAX); 40 assert_cc(RECURSE_DIR_SKIP_ENTRY < -ERRNO_MAX);
|
D | format-util.c | 8 assert_cc(STRLEN("%") + DECIMAL_STR_MAX(int) <= IF_NAMESIZE); 68 assert_cc(ELEMENTSOF(table_iec) == ELEMENTSOF(table_si)); in format_bytes_full()
|
D | random-util.c | 139 assert_cc(RAND_MAX >= 16777215); 143 assert_cc(RAND_MAX >= 255);
|
/systemd-251/src/test/ |
D | test-format-util.c | 9 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 …]
|
D | test-macro.c | 75 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 …]
|
D | test-log.c | 12 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/ |
D | bus-get-properties.h | 15 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));
|
D | acl-util.c | 383 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);
|
D | json-internal.h | 21 assert_cc(sizeof(JsonValue) == 8U); 56 assert_cc((unsigned) __JSON_VARIANT_MAGIC_MAX < 4096U);
|
D | bus-message-util.c | 13 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/ |
D | journal-def.h | 74 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/ |
D | test-network-tables.c | 46 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/ |
D | dns-type.h | 96 assert_cc(DNS_TYPE_SSHFP == 44); 97 assert_cc(DNS_TYPE_TLSA == 52); 98 assert_cc(DNS_TYPE_ANY == 255);
|
D | resolved-dns-packet.h | 42 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/ |
D | bridge.c | 14 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);
|
D | ipoib.c | 11 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/ |
D | rfkill.c | 174 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/ |
D | nspawn-settings.h | 142 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/ |
D | radv-internal.h | 130 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/ |
D | homework-mount.c | 192 assert_cc(HOME_UID_MIN <= HOME_UID_MAX); in make_userns() 193 assert_cc(HOME_UID_MAX < UID_NOBODY); in make_userns()
|