Lines Matching refs:K1
85 #define K1 1024 macro
86 #define K2 (K1 * 2)
87 #define K3 (K1 * 3)
88 #define K4 (K1 * 4)
119 nwrite = pwrite(fildes, write_buf[0], K1, 0); in main()
122 if (nwrite != K1) { in main()
135 l_seek(fildes, K1 / 2, SEEK_SET, K1 / 2); in main()
141 nwrite = pwrite(fildes, write_buf[2], K1, K2); in main()
142 if (nwrite != K1) { in main()
150 l_seek(fildes, 0, SEEK_CUR, K1 / 2); in main()
160 nwrite = write(fildes, write_buf[3], K1); in main()
161 if (nwrite != K1) { in main()
171 nwrite = pwrite(fildes, write_buf[1], K1, K1); in main()
172 if (nwrite != K1) { in main()
175 K1, TEMPFILE, errno, strerror(errno)); in main()
235 write_buf[count] = malloc(K1); in init_buffers()
240 memset(write_buf[count], count, K1); in init_buffers()
276 read_buf = malloc(K1); in check_file_contents()
284 offloc = lseek(fildes, count * K1, SEEK_SET); in check_file_contents()
285 if (offloc != (count * K1)) { in check_file_contents()
292 nread = read(fildes, read_buf, K1); in check_file_contents()
293 if (nread != K1) { in check_file_contents()
299 if (memcmp(write_buf[count], read_buf, K1) != 0) { in check_file_contents()