Lines Matching refs:K1
23 #define K1 1024 macro
24 #define K2 (K1 * 2)
25 #define K3 (K1 * 3)
26 #define K4 (K1 * 4)
49 l_seek(fildes, count * K1, SEEK_SET, count * K1); in check_file_contents()
51 SAFE_READ(1, fildes, read_buf[count], K1); in check_file_contents()
53 if (memcmp(write_buf[count], read_buf[count], K1) != 0) { in check_file_contents()
65 SAFE_PWRITE(1, fildes, write_buf[0], K1, 0); in verify_pwrite()
67 l_seek(fildes, K1 / 2, SEEK_SET, K1 / 2); in verify_pwrite()
69 SAFE_PWRITE(1, fildes, write_buf[2], K1, K2); in verify_pwrite()
70 l_seek(fildes, 0, SEEK_CUR, K1 / 2); in verify_pwrite()
73 SAFE_WRITE(1, fildes, write_buf[3], K1); in verify_pwrite()
76 SAFE_PWRITE(1, fildes, write_buf[1], K1, K1); in verify_pwrite()
88 write_buf[count] = SAFE_MALLOC(K1); in setup()
89 read_buf[count] = SAFE_MALLOC(K1); in setup()
90 memset(write_buf[count], count, K1); in setup()