Lines Matching refs:fileno
147 int fd = fileno(fp); in TEST()
175 std::string fd_path = android::base::StringPrintf("/proc/self/fd/%d", fileno(fp)); in TEST()
978 ASSERT_NE(-1, dup2(fd_rdonly, fileno(fp))); in TEST()
988 ASSERT_NE(-1, dup2(fd_rdonly, fileno(fp))); in TEST()
1027 ASSERT_EQ(0, shutdown(fileno(fp), SHUT_WR)); in TEST()
1956 ASSERT_EQ(-1, fileno(fp)); in TEST()
2023 ASSERT_TRUE(CloseOnExec(fileno(fp))); in TEST()
2033 ASSERT_TRUE(CloseOnExec(fileno(fp))); in TEST()
2040 ASSERT_FALSE(CloseOnExec(fileno(fp))); in TEST()
2043 ASSERT_TRUE(CloseOnExec(fileno(fp))); in TEST()
2051 ASSERT_TRUE(CloseOnExec(fileno(fp))); in TEST()
2054 ASSERT_FALSE(CloseOnExec(fileno(fp))); in TEST()
2061 ASSERT_FALSE(CloseOnExec(fileno(fp))); in TEST()
2064 ASSERT_TRUE(CloseOnExec(fileno(fp))); in TEST()
2071 ASSERT_TRUE(CloseOnExec(fileno(fp))); in TEST()
2074 ASSERT_FALSE(CloseOnExec(fileno(fp))); in TEST()
2297 ASSERT_EQ(-1, fileno(stdin)); in TEST()
2675 ASSERT_EQ(fileno(fp), fileno_unlocked(fp)); in TEST()
2727 ASSERT_EQ(0, ftruncate64(fileno(fp), 0x2'0000'0000)); in TEST()
3009 ASSERT_EQ(0, read(fileno(fp), buf, 1)); in TEST()
3010 ASSERT_EQ(-1, write(fileno(fp), "hello", 1)); in TEST()
3013 ASSERT_EQ(0, read(fileno(fp), buf, 1)); in TEST()
3014 ASSERT_EQ(1, write(fileno(fp), "hello", 1)); in TEST()
3017 ASSERT_EQ(-1, read(fileno(fp), buf, 1)); in TEST()
3018 ASSERT_EQ(1, write(fileno(fp), "hello", 1)); in TEST()