Searched refs:read_fn (Results 1 – 3 of 3) sorted by relevance
/bionic/tests/ |
D | sys_uio_test.cpp | 48 void TestPreadVPwriteV(ReadFn read_fn, WriteFn write_fn) { in TestPreadVPwriteV() argument 61 ASSERT_EQ(5, read_fn(tf.fd, ios, 1, 5)); in TestPreadVPwriteV() 63 ASSERT_EQ(5, read_fn(tf.fd, ios, 1, 0)); in TestPreadVPwriteV() 76 void TestPreadV2PwriteV2(ReadFn read_fn, WriteFn write_fn) { in TestPreadV2PwriteV2() argument 89 ASSERT_EQ(5, read_fn(tf.fd, ios, 1, 5, 0)) << strerror(errno); in TestPreadV2PwriteV2() 91 ASSERT_EQ(5, read_fn(tf.fd, ios, 1, 0, 0)) << strerror(errno); in TestPreadV2PwriteV2()
|
D | stdio_test.cpp | 2255 auto read_fn = [](void*, char*, int) { return -1; }; in TEST() local 2256 FILE* fp = funopen(nullptr, read_fn, nullptr, nullptr, nullptr); in TEST() 2292 auto read_fn = [](void*, char*, int) { return -1; }; in TEST() local 2297 FILE* fp = funopen(nullptr, read_fn, nullptr, seek_fn, nullptr); in TEST() 2308 FILE* fp64 = funopen64(nullptr, read_fn, nullptr, seek64_fn, nullptr); in TEST()
|
/bionic/libc/stdio/ |
D | stdio.cpp | 684 int (*read_fn)(void*, char*, int), in __funopen() 687 if (read_fn == nullptr && write_fn == nullptr) { in __funopen() 695 if (read_fn != nullptr && write_fn != nullptr) { in __funopen() 697 } else if (read_fn != nullptr) { in __funopen() 705 fp->_read = read_fn; in __funopen() 713 int (*read_fn)(void*, char*, int), in funopen() 717 FILE* fp = __funopen(cookie, read_fn, write_fn, close_fn); in funopen() 725 int (*read_fn)(void*, char*, int), in funopen64() 729 FILE* fp = __funopen(cookie, read_fn, write_fn, close_fn); in funopen64()
|