Lines Matching refs:fileno
120 int fd = fileno(fp); in TEST()
925 ASSERT_NE(-1, dup2(fd_rdonly, fileno(fp))); in TEST()
935 ASSERT_NE(-1, dup2(fd_rdonly, fileno(fp))); in TEST()
974 ASSERT_EQ(0, shutdown(fileno(fp), SHUT_WR)); in TEST()
1901 ASSERT_EQ(-1, fileno(fp)); in TEST()
1965 ASSERT_TRUE(CloseOnExec(fileno(fp))); in TEST()
1975 ASSERT_TRUE(CloseOnExec(fileno(fp))); in TEST()
1982 ASSERT_FALSE(CloseOnExec(fileno(fp))); in TEST()
1985 ASSERT_TRUE(CloseOnExec(fileno(fp))); in TEST()
1993 ASSERT_TRUE(CloseOnExec(fileno(fp))); in TEST()
1996 ASSERT_FALSE(CloseOnExec(fileno(fp))); in TEST()
2003 ASSERT_FALSE(CloseOnExec(fileno(fp))); in TEST()
2006 ASSERT_TRUE(CloseOnExec(fileno(fp))); in TEST()
2013 ASSERT_TRUE(CloseOnExec(fileno(fp))); in TEST()
2016 ASSERT_FALSE(CloseOnExec(fileno(fp))); in TEST()
2218 ASSERT_EQ(-1, fileno(stdin)); in TEST()
2590 ASSERT_EQ(fileno(fp), fileno_unlocked(fp)); in TEST()
2642 ASSERT_EQ(0, ftruncate64(fileno(fp), 0x2'0000'0000)); in TEST()
2924 ASSERT_EQ(0, read(fileno(fp), buf, 1)); in TEST()
2925 ASSERT_EQ(-1, write(fileno(fp), "hello", 1)); in TEST()
2928 ASSERT_EQ(0, read(fileno(fp), buf, 1)); in TEST()
2929 ASSERT_EQ(1, write(fileno(fp), "hello", 1)); in TEST()
2932 ASSERT_EQ(-1, read(fileno(fp), buf, 1)); in TEST()
2933 ASSERT_EQ(1, write(fileno(fp), "hello", 1)); in TEST()