Home
last modified time | relevance | path

Searched refs:UINT64_C (Results 1 – 25 of 49) sorted by relevance

12

/systemd-251/src/basic/
Dformat-util.c51 …{ "E", UINT64_C(1024)*UINT64_C(1024)*UINT64_C(1024)*UINT64_C(1024)*UINT64_C(1024)*UINT64_C(1024) }, in format_bytes_full()
52 { "P", UINT64_C(1024)*UINT64_C(1024)*UINT64_C(1024)*UINT64_C(1024)*UINT64_C(1024) }, in format_bytes_full()
53 { "T", UINT64_C(1024)*UINT64_C(1024)*UINT64_C(1024)*UINT64_C(1024) }, in format_bytes_full()
54 { "G", UINT64_C(1024)*UINT64_C(1024)*UINT64_C(1024) }, in format_bytes_full()
55 { "M", UINT64_C(1024)*UINT64_C(1024) }, in format_bytes_full()
56 { "K", UINT64_C(1024) }, in format_bytes_full()
58 …{ "E", UINT64_C(1000)*UINT64_C(1000)*UINT64_C(1000)*UINT64_C(1000)*UINT64_C(1000)*UINT64_C(1000) }, in format_bytes_full()
59 { "P", UINT64_C(1000)*UINT64_C(1000)*UINT64_C(1000)*UINT64_C(1000)*UINT64_C(1000) }, in format_bytes_full()
60 { "T", UINT64_C(1000)*UINT64_C(1000)*UINT64_C(1000)*UINT64_C(1000) }, in format_bytes_full()
61 { "G", UINT64_C(1000)*UINT64_C(1000)*UINT64_C(1000) }, in format_bytes_full()
[all …]
Dcgroup-util.h89 #define CGROUP_WEIGHT_MIN UINT64_C(1)
90 #define CGROUP_WEIGHT_MAX UINT64_C(10000)
91 #define CGROUP_WEIGHT_DEFAULT UINT64_C(100)
93 #define CGROUP_LIMIT_MIN UINT64_C(0)
120 #define CGROUP_CPU_SHARES_MIN UINT64_C(2)
121 #define CGROUP_CPU_SHARES_MAX UINT64_C(262144)
122 #define CGROUP_CPU_SHARES_DEFAULT UINT64_C(1024)
132 #define CGROUP_BFQ_WEIGHT_MIN UINT64_C(1)
133 #define CGROUP_BFQ_WEIGHT_MAX UINT64_C(1000)
134 #define CGROUP_BFQ_WEIGHT_DEFAULT UINT64_C(100)
[all …]
Dcapability-util.c91 cap_flag_value_t flag = set & (UINT64_C(1) << i) ? CAP_SET : CAP_CLEAR; in capability_update_inherited_set()
112 if (FLAGS_SET(set, (UINT64_C(1) << i)) && prctl(PR_CAPBSET_READ, i) != 1) { in capability_ambient_set_apply()
115 set &= ~(UINT64_C(1) << i); in capability_ambient_set_apply()
142 if (set & (UINT64_C(1) << i)) { in capability_ambient_set_apply()
218 if ((keep & (UINT64_C(1) << i))) in capability_bounding_set_drop()
354 assert(keep_capabilities & (UINT64_C(1) << (i - 1))); in drop_privileges()
413 unsigned long bit = UINT64_C(1) << i; in capability_quintet_mangle()
450 uint64_t m = UINT64_C(1) << i; in capability_quintet_enforce()
492 uint64_t m = UINT64_C(1) << i; in capability_quintet_enforce()
Dlogin-util.h7 #define SD_LOGIND_ROOT_CHECK_INHIBITORS (UINT64_C(1) << 0)
8 #define SD_LOGIND_REBOOT_VIA_KEXEC (UINT64_C(1) << 1)
11 #define SD_LOGIND_INTERACTIVE (UINT64_C(1) << 63)
Dcap-list.c67 if (set & (UINT64_C(1) << i)) { in capability_set_to_string_alloc()
116 val |= ((uint64_t) UINT64_C(1)) << (uint64_t) r; in capability_set_from_string()
/systemd-251/src/core/
Dunit-dependency-atom.h14 UNIT_ATOM_PULL_IN_START = UINT64_C(1) << 0,
16 UNIT_ATOM_PULL_IN_START_IGNORED = UINT64_C(1) << 1,
19 UNIT_ATOM_PULL_IN_VERIFY = UINT64_C(1) << 2,
22 UNIT_ATOM_PULL_IN_STOP = UINT64_C(1) << 3,
24 UNIT_ATOM_PULL_IN_STOP_IGNORED = UINT64_C(1) << 4,
27 UNIT_ATOM_ADD_STOP_WHEN_UNNEEDED_QUEUE = UINT64_C(1) << 5,
30 UNIT_ATOM_PINS_STOP_WHEN_UNNEEDED = UINT64_C(1) << 6,
33 UNIT_ATOM_CANNOT_BE_ACTIVE_WITHOUT = UINT64_C(1) << 7,
35 UNIT_ATOM_ADD_CANNOT_BE_ACTIVE_WITHOUT_QUEUE = UINT64_C(1) << 8,
38 UNIT_ATOM_START_STEADILY = UINT64_C(1) << 9,
[all …]
/systemd-251/src/resolve/
Dresolved-def.h9 #define SD_RESOLVED_DNS (UINT64_C(1) << 0)
10 #define SD_RESOLVED_LLMNR_IPV4 (UINT64_C(1) << 1)
11 #define SD_RESOLVED_LLMNR_IPV6 (UINT64_C(1) << 2)
12 #define SD_RESOLVED_MDNS_IPV4 (UINT64_C(1) << 3)
13 #define SD_RESOLVED_MDNS_IPV6 (UINT64_C(1) << 4)
16 #define SD_RESOLVED_NO_CNAME (UINT64_C(1) << 5)
19 #define SD_RESOLVED_NO_TXT (UINT64_C(1) << 6)
22 #define SD_RESOLVED_NO_ADDRESS (UINT64_C(1) << 7)
25 #define SD_RESOLVED_NO_SEARCH (UINT64_C(1) << 8)
28 #define SD_RESOLVED_AUTHENTICATED (UINT64_C(1) << 9)
[all …]
Dresolved.c63 … (UINT64_C(1) << CAP_NET_RAW)| /* needed for SO_BINDTODEVICE */ in run()
64 … (UINT64_C(1) << CAP_NET_BIND_SERVICE)| /* needed to bind on port 53 */ in run()
65 … (UINT64_C(1) << CAP_SETPCAP) /* needed in order to drop the caps later */); in run()
86 r = capability_bounding_set_drop((UINT64_C(1) << CAP_NET_RAW), true); in run()
Dtest-dnssec-complex.c57 … assert_se(sd_bus_message_append(req, "isqqt", 0, name, DNS_CLASS_IN, type, UINT64_C(0)) >= 0); in test_rr_lookup()
94 assert_se(sd_bus_message_append(req, "isit", 0, name, family, UINT64_C(0)) >= 0); in test_hostname_lookup()
/systemd-251/src/nspawn/
Dnspawn-settings.h98 SETTING_START_MODE = UINT64_C(1) << 0,
99 SETTING_ENVIRONMENT = UINT64_C(1) << 1,
100 SETTING_USER = UINT64_C(1) << 2,
101 SETTING_CAPABILITY = UINT64_C(1) << 3,
102 SETTING_KILL_SIGNAL = UINT64_C(1) << 4,
103 SETTING_PERSONALITY = UINT64_C(1) << 5,
104 SETTING_MACHINE_ID = UINT64_C(1) << 6,
105 SETTING_NETWORK = UINT64_C(1) << 7,
106 SETTING_EXPOSE_PORTS = UINT64_C(1) << 8,
107 SETTING_READ_ONLY = UINT64_C(1) << 9,
[all …]
/systemd-251/src/test/
Dtest-cap-list.c84 assert_se(c == UINT64_C(1)); in TEST()
87 assert_se(c == UINT64_C(1) << 1); in TEST()
90 assert_se(c == (UINT64_C(1) << 4) - 1); in TEST()
98 c = (UINT64_C(1) << CAP_DAC_OVERRIDE | invalid_cap_set); in test_capability_set_to_string_invalid()
101 c = (UINT64_C(1) << CAP_CHOWN | in test_capability_set_to_string_invalid()
102 UINT64_C(1) << CAP_DAC_OVERRIDE | in test_capability_set_to_string_invalid()
103 UINT64_C(1) << CAP_DAC_READ_SEARCH | in test_capability_set_to_string_invalid()
104 UINT64_C(1) << CAP_FOWNER | in test_capability_set_to_string_invalid()
105 UINT64_C(1) << CAP_SETGID | in test_capability_set_to_string_invalid()
106 UINT64_C(1) << CAP_SETUID | in test_capability_set_to_string_invalid()
[all …]
Dtest-format-util.c40 test_format_bytes_one(UINT64_C(3)*1024*1024, true, "3.0M", "3M", "3.1M", "3M"); in TEST()
41 test_format_bytes_one(UINT64_C(3)*1024*1024*1024, true, "3.0G", "3G", "3.2G", "3G"); in TEST()
42 test_format_bytes_one(UINT64_C(3)*1024*1024*1024*1024, true, "3.0T", "3T", "3.2T", "3T"); in TEST()
43 … test_format_bytes_one(UINT64_C(3)*1024*1024*1024*1024*1024, true, "3.0P", "3P", "3.3P", "3P"); in TEST()
44 …test_format_bytes_one(UINT64_C(3)*1024*1024*1024*1024*1024*1024, true, "3.0E", "3E", "3.4E", "3E"); in TEST()
Dtest-sizeof.c36 big_enum_value = UINT64_C(1),
40 big_enum2_pos = UINT64_C(1),
41 big_enum2_neg = UINT64_C(-1),
Dtest-capability.c28 static const uint64_t test_flags = UINT64_C(1) << CAP_SYS_PTRACE;
31 static const uint64_t test_flags = UINT64_C(1) << CAP_DAC_OVERRIDE;
193 set = (UINT64_C(1) << CAP_CHOWN); in test_update_inherited_set()
209 set = (UINT64_C(1) << CAP_CHOWN); in test_apply_ambient_caps()
/systemd-251/src/fundamental/
Defivars-fundamental.h7 #ifndef UINT64_C
8 # define UINT64_C(c) (c ## ULL) macro
11 #define EFI_LOADER_FEATURE_CONFIG_TIMEOUT (UINT64_C(1) << 0)
12 #define EFI_LOADER_FEATURE_CONFIG_TIMEOUT_ONE_SHOT (UINT64_C(1) << 1)
13 #define EFI_LOADER_FEATURE_ENTRY_DEFAULT (UINT64_C(1) << 2)
14 #define EFI_LOADER_FEATURE_ENTRY_ONESHOT (UINT64_C(1) << 3)
15 #define EFI_LOADER_FEATURE_BOOT_COUNTING (UINT64_C(1) << 4)
16 #define EFI_LOADER_FEATURE_XBOOTLDR (UINT64_C(1) << 5)
17 #define EFI_LOADER_FEATURE_RANDOM_SEED (UINT64_C(1) << 6)
18 #define EFI_LOADER_FEATURE_LOAD_DRIVER (UINT64_C(1) << 7)
/systemd-251/src/analyze/
Danalyze-security.c981 .parameter = UINT64_C(1) << CAP_SYS_ADMIN,
992 .parameter = (UINT64_C(1) << CAP_SETUID)|
993 (UINT64_C(1) << CAP_SETGID)|
994 (UINT64_C(1) << CAP_SETPCAP),
1005 .parameter = (UINT64_C(1) << CAP_SYS_PTRACE),
1016 .parameter = UINT64_C(1) << CAP_SYS_TIME,
1027 .parameter = (UINT64_C(1) << CAP_NET_ADMIN),
1038 .parameter = (UINT64_C(1) << CAP_SYS_RAWIO),
1049 .parameter = (UINT64_C(1) << CAP_SYS_MODULE),
1060 .parameter = (UINT64_C(1) << CAP_AUDIT_CONTROL) |
[all …]
/systemd-251/src/shared/
Dbitmap.c90 bitmask = UINT64_C(1) << BITMAP_NUM_TO_REM(n); in bitmap_set()
109 bitmask = UINT64_C(1) << BITMAP_NUM_TO_REM(n); in bitmap_unset()
126 bitmask = UINT64_C(1) << BITMAP_NUM_TO_REM(n); in bitmap_isset()
164 bitmask = UINT64_C(1) << rem; in bitmap_iterate()
Duser-record.h224 #define REBALANCE_WEIGHT_OFF UINT64_C(0)
225 #define REBALANCE_WEIGHT_DEFAULT UINT64_C(100)
226 #define REBALANCE_WEIGHT_BACKING UINT64_C(20)
227 #define REBALANCE_WEIGHT_MIN UINT64_C(1)
228 #define REBALANCE_WEIGHT_MAX UINT64_C(10000)
Dloop-util.c314 (void) usleep(UINT64_C(10) * USEC_PER_MSEC + in loop_configure()
315 random_u64_range(UINT64_C(240) * USEC_PER_MSEC * n_attempts/64)); in loop_configure()
572 (void) usleep(random_u64_range(UINT64_C(10) * USEC_PER_MSEC + in loop_device_make_internal()
573 UINT64_C(240) * USEC_PER_MSEC * n_attempts/64)); in loop_device_make_internal()
Din-addr-prefix-util.c125 UINT64_C(1) << ((p->prefixlen - 1) % sizeof(uint64_t)); in in_addr_prefixes_reduce()
139 (UINT64_C(1) << (i % sizeof(uint64_t)))) in in_addr_prefixes_reduce()
/systemd-251/src/hostname/
Dhostnamed.c83 if (!FLAGS_SET(mask, UINT64_C(1) << p)) in context_reset()
107 context_reset(c, UINT64_C(1) << PROP_STATIC_HOSTNAME); in context_read_etc_hostname()
127 (UINT64_C(1) << PROP_PRETTY_HOSTNAME) | in context_read_machine_info()
128 (UINT64_C(1) << PROP_ICON_NAME) | in context_read_machine_info()
129 (UINT64_C(1) << PROP_CHASSIS) | in context_read_machine_info()
130 (UINT64_C(1) << PROP_DEPLOYMENT) | in context_read_machine_info()
131 (UINT64_C(1) << PROP_LOCATION) | in context_read_machine_info()
132 (UINT64_C(1) << PROP_HARDWARE_VENDOR) | in context_read_machine_info()
133 (UINT64_C(1) << PROP_HARDWARE_MODEL)); in context_read_machine_info()
161 (UINT64_C(1) << PROP_OS_PRETTY_NAME) | in context_read_os_release()
[all …]
/systemd-251/src/home/
Dhome-util.h12 #define USER_DISK_SIZE_MIN (UINT64_C(5)*1024*1024)
13 #define USER_DISK_SIZE_MAX (UINT64_C(5)*1024*1024*1024*1024)
/systemd-251/src/systemd/
Dsd-id128.h127 … return a.qwords[0] == UINT64_C(0xFFFFFFFFFFFFFFFF) && a.qwords[1] == UINT64_C(0xFFFFFFFFFFFFFFFF); in sd_id128_is_allf()
131 #define SD_ID128_ALLF ((const sd_id128_t) { .qwords = { UINT64_C(0xFFFFFFFFFFFFFFFF), UINT64_C(0xFF…
/systemd-251/src/libsystemd/sd-device/
Ddevice-monitor.c539 bits |= UINT64_C(1) << (hash & 63); in string_bloom64()
540 bits |= UINT64_C(1) << ((hash >> 6) & 63); in string_bloom64()
541 bits |= UINT64_C(1) << ((hash >> 12) & 63); in string_bloom64()
542 bits |= UINT64_C(1) << ((hash >> 18) & 63); in string_bloom64()
/systemd-251/src/timesync/
Dtimesyncd-ntp-message.h21 #define OFFSET_1900_1970 UINT64_C(2208988800)

12