Lines Matching refs:actual

44         ssize_t actual = context->mInputReader->read(buffer, sizeof(buffer), &timeout);  in input_routine()  local
46 if (actual > 0) { in input_routine()
47 if ((size_t) actual > sizeof(buffer)) { in input_routine()
48 printf("input.read actual = %d\n", (int) actual); in input_routine()
51 ssize_t actual2 = context->mTransferWriter->write(buffer, actual, &timeout); in input_routine()
52 if (actual2 != actual) { in input_routine()
53 printf("transfer.write(%d) = %d\n", (int) actual, (int) actual2); in input_routine()
56 } else if (actual == -ETIMEDOUT) { in input_routine()
59 printf("input.read actual = %d\n", (int) actual); in input_routine()
79 ssize_t actual = context->mTransferReader->read(buffer, sizeof(buffer), &timeout); in output_routine() local
80 if (actual > 0) { in output_routine()
81 if ((size_t) actual > sizeof(buffer)) { in output_routine()
82 printf("transfer.read actual = %d\n", (int) actual); in output_routine()
85 ssize_t actual2 = context->mOutputWriter->write(buffer, actual, NULL /*timeout*/); in output_routine()
86 if (actual2 != actual) { in output_routine()
87 printf("output.write(%d) = %d\n", (int) actual, (int) actual2); in output_routine()
89 } else if (actual == -ETIMEDOUT) { in output_routine()
92 printf("transfer.read actual = %d\n", (int) actual); in output_routine()
143 ssize_t actual = outputReader.read(buffer, sizeof(buffer), NULL /*timeout*/); in main() local
144 if (actual > 0) { in main()
145 printf("%.*s", (int) actual, buffer); in main()
147 } else if (actual != 0) { in main()
148 printf("outputReader.read actual = %d\n", (int) actual); in main()
160 actual = inputWriter.write(buffer, 1, NULL /*timeout*/); in main()
161 if (actual != 1) { in main()
162 printf("inputWriter.write actual = %d\n", (int) actual); in main()