Home
last modified time | relevance | path

Searched refs:TEST_BLOCK_SIZE (Results 1 – 4 of 4) sorted by relevance

/external/ltp/testcases/kernel/syscalls/tee/
Dtee01.c47 #define TEST_BLOCK_SIZE 1024 macro
53 static char buffer[TEST_BLOCK_SIZE];
76 char teebuffer[TEST_BLOCK_SIZE]; in check_file()
79 SAFE_READ(cleanup, 1, fd_out, teebuffer, TEST_BLOCK_SIZE); in check_file()
81 for (i = 0; i < TEST_BLOCK_SIZE; i++) { in check_file()
86 if (i < TEST_BLOCK_SIZE) in check_file()
107 ret = splice(fd_in, NULL, pipe1[1], NULL, TEST_BLOCK_SIZE, 0); in tee_test()
111 ret = tee(pipe1[0], pipe2[1], TEST_BLOCK_SIZE, SPLICE_F_NONBLOCK); in tee_test()
115 ret = splice(pipe2[0], NULL, fd_out, NULL, TEST_BLOCK_SIZE, 0); in tee_test()
153 for (i = 0; i < TEST_BLOCK_SIZE; i++) in setup()
[all …]
/external/ltp/testcases/kernel/syscalls/splice/
Dsplice01.c39 #define TEST_BLOCK_SIZE 1024 macro
47 static char buffer[TEST_BLOCK_SIZE];
71 char splicebuffer[TEST_BLOCK_SIZE]; in check_file()
74 SAFE_READ(cleanup, 1, fd_out, splicebuffer, TEST_BLOCK_SIZE); in check_file()
76 for (i = 0; i < TEST_BLOCK_SIZE; i++) { in check_file()
81 if (i < TEST_BLOCK_SIZE) in check_file()
99 ret = splice(fd_in, NULL, pipes[1], NULL, TEST_BLOCK_SIZE, 0); in splice_test()
103 ret = splice(pipes[0], NULL, fd_out, NULL, TEST_BLOCK_SIZE, 0); in splice_test()
139 for (i = 0; i < TEST_BLOCK_SIZE; i++) in setup()
143 SAFE_WRITE(cleanup, 1, fd_in, buffer, TEST_BLOCK_SIZE); in setup()
/external/ltp/testcases/kernel/syscalls/vmsplice/
Dvmsplice01.c43 #define TEST_BLOCK_SIZE (1<<17) /* 128K */ macro
52 static char buffer[TEST_BLOCK_SIZE];
75 char vmsplicebuffer[TEST_BLOCK_SIZE]; in check_file()
78 SAFE_READ(cleanup, 1, fd_out, vmsplicebuffer, TEST_BLOCK_SIZE); in check_file()
80 for (i = 0; i < TEST_BLOCK_SIZE; i++) { in check_file()
85 if (i < TEST_BLOCK_SIZE) in check_file()
104 v.iov_len = TEST_BLOCK_SIZE; in vmsplice_test()
165 for (i = 0; i < TEST_BLOCK_SIZE; i++) in setup()
Dvmsplice02.c47 #define TEST_BLOCK_SIZE 128 macro
49 static char buffer[TEST_BLOCK_SIZE];
116 ivc.iov_len = TEST_BLOCK_SIZE; in setup()