Home
last modified time | relevance | path

Searched refs:buf_size (Results 1 – 13 of 13) sorted by relevance

/systemd-251/src/random-seed/
Drandom-seed.c111 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/
Dtest-udev-event.c12 …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/
Dcryptsetup-token-util.c8 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()
Dcryptsetup-token-util.h35 size_t buf_size,
/systemd-251/src/shared/
Dutmp-wtmp.c167 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/
Dpstore.c340 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/
Dhexdecoct.c113 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()
Drandom-util.c265 info->buf_size = size; in random_write_entropy()
/systemd-251/src/test/
Dtest-compress.c235 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/
Dresolved-dns-rr.h316 char* dns_resource_key_to_string(const DnsResourceKey *key, char *buf, size_t buf_size);
Dresolved-dns-rr.c316 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/
Dbtrfs.h560 __u64 buf_size; /* in - size of buffer member
/systemd-251/src/boot/efi/
Dboot.c2080 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()