Home
last modified time | relevance | path

Searched refs:BLK_SIZE (Results 1 – 2 of 2) sorted by relevance

/glibc-2.36/sysdeps/unix/sysv/linux/
Dtst-fallocate-common.c54 #define BLK_SIZE 1024 in do_test_with_offset() macro
55 char bwrite[BLK_SIZE] = { 0xf0 }; in do_test_with_offset()
56 char bread[BLK_SIZE]; in do_test_with_offset()
61 ret = fallocate (temp_fd, 0, offset, BLK_SIZE); in do_test_with_offset()
75 if (finfo.st_size < (offset + BLK_SIZE)) in do_test_with_offset()
77 (long long unsigned int)offset + BLK_SIZE); in do_test_with_offset()
82 if (write (temp_fd, bwrite, BLK_SIZE) != BLK_SIZE) in do_test_with_offset()
83 FAIL_EXIT1 ("fail trying to write " XSTR (BLK_SIZE) " bytes"); in do_test_with_offset()
88 if (read (temp_fd, bread, BLK_SIZE) != BLK_SIZE) in do_test_with_offset()
89 FAIL_EXIT1 ("fail trying to read " XSTR (BLK_SIZE) " bytes"); in do_test_with_offset()
[all …]
/glibc-2.36/posix/
Dtst-posix_fadvise-common.c68 #define BLK_SIZE 2048 in do_test_common() macro
69 char buffer[BLK_SIZE] = { 0xcd }; in do_test_common()
72 if ((ret = write (temp_fd, buffer, BLK_SIZE)) != BLK_SIZE) in do_test_common()
74 ret, BLK_SIZE); in do_test_common()
95 if (posix_fadvise (temp_fd, 0, 2 * BLK_SIZE, POSIX_FADV_NORMAL) != 0) in do_test_common()
97 BLK_SIZE); in do_test_common()
99 if (posix_fadvise (temp_fd, 2 * BLK_SIZE, 0, POSIX_FADV_NORMAL) != 0) in do_test_common()
101 BLK_SIZE); in do_test_common()