/systemd-251/src/random-seed/ |
D | random-seed.c | 111 size_t buf_size; in run() local 124 buf_size = random_pool_size(); in run() 182 if ((uint64_t) st.st_size > buf_size) in run() 183 buf_size = MIN(st.st_size, RANDOM_POOL_SIZE_MAX); in run() 185 buf = malloc(buf_size); in run() 208 k = loop_read(seed_fd, buf, buf_size, false); in run() 270 k = getrandom(buf, buf_size, GRND_NONBLOCK); in run() 273 k = getrandom(buf, buf_size, 0); /* retry synchronously */ in run() 277 else if ((size_t) k < buf_size) in run() 284 k = loop_read(random_fd, buf, buf_size, false); in run()
|
/systemd-251/src/udev/ |
D | test-udev-event.c | 12 …c void test_event_spawn_core(bool with_pidfd, const char *cmd, char *result_buf, size_t buf_size) { in test_event_spawn_core() argument 20 …e(udev_event_spawn(event, 5 * USEC_PER_SEC, SIGKILL, false, cmd, result_buf, buf_size, NULL) == 0); in test_event_spawn_core() 25 static void test_event_spawn_cat(bool with_pidfd, size_t buf_size) { in test_event_spawn_cat() argument 36 buf_size >= BUF_SIZE ? BUF_SIZE : buf_size); in test_event_spawn_cat() 41 if (buf_size >= BUF_SIZE) { in test_event_spawn_cat()
|
/systemd-251/src/cryptsetup/cryptsetup-tokens/ |
D | cryptsetup-token-util.c | 8 size_t buf_size, in crypt_dump_buffer_to_hex_string() argument 14 assert(buf || !buf_size); in crypt_dump_buffer_to_hex_string() 17 for (size_t i = 0; i < buf_size; i++) { in crypt_dump_buffer_to_hex_string()
|
D | cryptsetup-token-util.h | 35 size_t buf_size,
|
/systemd-251/src/shared/ |
D | utmp-wtmp.c | 167 static void copy_suffix(char *buf, size_t buf_size, const char *src) { in copy_suffix() argument 171 if (l < buf_size) in copy_suffix() 172 strncpy(buf, src, buf_size); in copy_suffix() 174 memcpy(buf, src + l - buf_size, buf_size); in copy_suffix()
|
/systemd-251/src/pstore/ |
D | pstore.c | 340 size_t buf_size; in list_files() local 343 r = read_full_virtual_file(ifd_path, &buf, &buf_size); in list_files() 355 .content_size = buf_size, in list_files()
|
/systemd-251/src/basic/ |
D | hexdecoct.c | 113 size_t buf_size; in unhexmem_full() local 124 buf_size = (l + 1) / 2 + 1; in unhexmem_full() 125 buf = malloc(buf_size); in unhexmem_full() 160 explicit_bzero_safe(buf, buf_size); in unhexmem_full()
|
D | random-util.c | 265 info->buf_size = size; in random_write_entropy()
|
/systemd-251/src/test/ |
D | test-compress.c | 235 size_t buf_size = sizeof(buf), compressed; in test_lz4_decompress_partial() local 246 r = LZ4_compress_default(huge, buf, HUGE_SIZE, buf_size); in test_lz4_decompress_partial()
|
/systemd-251/src/resolve/ |
D | resolved-dns-rr.h | 316 char* dns_resource_key_to_string(const DnsResourceKey *key, char *buf, size_t buf_size);
|
D | resolved-dns-rr.c | 316 char* dns_resource_key_to_string(const DnsResourceKey *key, char *buf, size_t buf_size) { in dns_resource_key_to_string() argument 326 (void) snprintf(buf, buf_size, "%s %s%s%.0u %s%s%.0u", in dns_resource_key_to_string()
|
/systemd-251/src/basic/linux/ |
D | btrfs.h | 560 __u64 buf_size; /* in - size of buffer member
|
/systemd-251/src/boot/efi/ |
D | boot.c | 2080 UINTN buf_size; in boot_windows_bitlocker() local 2083 err = efivar_get_raw(EFI_GLOBAL_GUID, name, &buf, &buf_size); in boot_windows_bitlocker() 2090 if (buf_size < offset + sizeof(CHAR16)) in boot_windows_bitlocker()
|