Searched refs:CPT_IO_SIZE (Results 1 - 1 of 1) sorted by relevance

/xnu-2422.115.4/tools/tests/xnu_quick_test/
H A Dcontent_protection_test.c19 #define CPT_IO_SIZE 4096 macro
363 char rd_buffer[CPT_IO_SIZE];
364 char wr_buffer[CPT_IO_SIZE];
522 while (current_byte < CPT_IO_SIZE)
524 local_result = pwrite(fd, &wr_buffer[current_byte], CPT_IO_SIZE - current_byte, current_byte);
538 while (current_byte < CPT_IO_SIZE)
540 local_result = pread(fd, &rd_buffer[current_byte], CPT_IO_SIZE - current_byte, current_byte);
559 if (pread(fd, rd_buffer, CPT_IO_SIZE, 0) > 0)
566 if (pwrite(fd, wr_buffer, CPT_IO_SIZE, 0) > 0)
648 while (current_byte < CPT_IO_SIZE)
[all...]

Completed in 68 milliseconds