Home
last modified time | relevance | path

Searched refs:write_fn (Results 1 – 2 of 2) sorted by relevance

/bionic/tests/
Dsys_uio_test.cpp50 void TestPreadVPwriteV(ReadFn read_fn, WriteFn write_fn) { in TestPreadVPwriteV() argument
56 ASSERT_EQ(5, write_fn(tf.fd, ios, 1, 5)); in TestPreadVPwriteV()
60 ASSERT_EQ(5, write_fn(tf.fd, ios, 1, 0)); in TestPreadVPwriteV()
78 void TestPreadV2PwriteV2(ReadFn read_fn, WriteFn write_fn) { in TestPreadV2PwriteV2() argument
84 ASSERT_EQ(5, write_fn(tf.fd, ios, 1, 5, 0)) << strerror(errno); in TestPreadV2PwriteV2()
88 ASSERT_EQ(5, write_fn(tf.fd, ios, 1, 0, 0)) << strerror(errno); in TestPreadV2PwriteV2()
/bionic/libc/stdio/
Dstdio.cpp685 int (*write_fn)(void*, const char*, int), in __funopen()
687 if (read_fn == nullptr && write_fn == nullptr) { in __funopen()
695 if (read_fn != nullptr && write_fn != nullptr) { in __funopen()
699 } else if (write_fn != nullptr) { in __funopen()
706 fp->_write = write_fn; in __funopen()
714 int (*write_fn)(void*, const char*, int), in funopen()
717 FILE* fp = __funopen(cookie, read_fn, write_fn, close_fn); in funopen()
726 int (*write_fn)(void*, const char*, int), in funopen64()
729 FILE* fp = __funopen(cookie, read_fn, write_fn, close_fn); in funopen64()