Searched refs:TEST_BLOCK_SIZE (Results 1 – 5 of 5) sorted by relevance
/external/ltp/testcases/kernel/syscalls/tee/ |
D | tee01.c | 40 #define TEST_BLOCK_SIZE 1024 macro 46 static char buffer[TEST_BLOCK_SIZE]; 51 char teebuffer[TEST_BLOCK_SIZE]; in check_file() 54 SAFE_READ(1, fd_out, teebuffer, TEST_BLOCK_SIZE); in check_file() 56 for (i = 0; i < TEST_BLOCK_SIZE; i++) { in check_file() 61 if (i < TEST_BLOCK_SIZE) in check_file() 81 ret = splice(fd_in, NULL, pipe1[1], NULL, TEST_BLOCK_SIZE, 0); in tee_test() 85 ret = tee(pipe1[0], pipe2[1], TEST_BLOCK_SIZE, SPLICE_F_NONBLOCK); in tee_test() 89 ret = splice(pipe2[0], NULL, fd_out, NULL, TEST_BLOCK_SIZE, 0); in tee_test() 113 for (i = 0; i < TEST_BLOCK_SIZE; i++) in setup() [all …]
|
/external/ltp/testcases/kernel/syscalls/splice/ |
D | splice01.c | 37 #define TEST_BLOCK_SIZE 1024 macro 42 static char buffer[TEST_BLOCK_SIZE]; 48 char splicebuffer[TEST_BLOCK_SIZE]; in check_file() 51 SAFE_READ(1, fd_out, splicebuffer, TEST_BLOCK_SIZE); in check_file() 53 for (i = 0; i < TEST_BLOCK_SIZE; i++) { in check_file() 58 if (i < TEST_BLOCK_SIZE) in check_file() 75 ret = splice(fd_in, NULL, pipes[1], NULL, TEST_BLOCK_SIZE, 0); in splice_test() 79 ret = splice(pipes[0], NULL, fd_out, NULL, TEST_BLOCK_SIZE, 0); in splice_test() 101 for (i = 0; i < TEST_BLOCK_SIZE; i++) in setup() 105 SAFE_WRITE(1, fd_in, buffer, TEST_BLOCK_SIZE); in setup()
|
/external/ltp/testcases/kernel/syscalls/vmsplice/ |
D | vmsplice01.c | 41 #define TEST_BLOCK_SIZE (1<<17) /* 128K */ macro 46 static char buffer[TEST_BLOCK_SIZE]; 51 char vmsplicebuffer[TEST_BLOCK_SIZE]; in check_file() 54 SAFE_READ(1, fd_out, vmsplicebuffer, TEST_BLOCK_SIZE); in check_file() 56 for (i = 0; i < TEST_BLOCK_SIZE; i++) { in check_file() 61 if (i < TEST_BLOCK_SIZE) in check_file() 79 v.iov_len = TEST_BLOCK_SIZE; in vmsplice_test() 130 for (i = 0; i < TEST_BLOCK_SIZE; i++) in setup()
|
D | vmsplice02.c | 45 #define TEST_BLOCK_SIZE 128 macro 47 static char buffer[TEST_BLOCK_SIZE]; 76 ivc.iov_len = TEST_BLOCK_SIZE; in setup()
|
/external/python/cpython2/Demo/md5test/ |
D | md5driver.py | 26 TEST_BLOCK_SIZE = 1000 29 TEST_BYTES = TEST_BLOCK_SIZE * TEST_BLOCKS 35 data = filler * (TEST_BLOCK_SIZE // filsiz) 36 data = data + filler[:(TEST_BLOCK_SIZE % filsiz)]
|