implement missing seekdir and telldir

Bug: 18266863
Change-Id: I189ee949d4f7ccee099f3341e349cd969d25480f
This commit is contained in:
Yabin Cui
2014-11-06 19:55:09 -08:00
parent 9df70403d9
commit 5ca4a9e2da
4 changed files with 69 additions and 1 deletions

View File

@@ -77,7 +77,7 @@ TEST(stdio, dprintf) {
int rc = dprintf(tf.fd, "hello\n");
ASSERT_EQ(rc, 6);
lseek(tf.fd, SEEK_SET, 0);
lseek(tf.fd, 0, SEEK_SET);
FILE* tfile = fdopen(tf.fd, "r");
ASSERT_TRUE(tfile != NULL);