Home
last modified time | relevance | path

Searched refs:read_fn (Results 1 – 3 of 3) sorted by relevance

/bionic/tests/
Dsys_uio_test.cpp44 void TestPreadVPwriteV(ReadFn read_fn, WriteFn write_fn) { in TestPreadVPwriteV() argument
57 ASSERT_EQ(5, read_fn(tf.fd, ios, 1, 5)); in TestPreadVPwriteV()
59 ASSERT_EQ(5, read_fn(tf.fd, ios, 1, 0)); in TestPreadVPwriteV()
Dstdio_test.cpp2224 auto read_fn = [](void*, char*, int) { return -1; }; in TEST() local
2225 FILE* fp = funopen(nullptr, read_fn, nullptr, nullptr, nullptr); in TEST()
2261 auto read_fn = [](void*, char*, int) { return -1; }; in TEST() local
2266 FILE* fp = funopen(nullptr, read_fn, nullptr, seek_fn, nullptr); in TEST()
2277 FILE* fp64 = funopen64(nullptr, read_fn, nullptr, seek64_fn, nullptr); in TEST()
/bionic/libc/stdio/
Dstdio.cpp684 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()