Lines Matching refs:fd

104     int fd = getClatEgressMapFd();  in TEST_F()  local
105 ASSERT_GE(fd, 3); // 0,1,2 - stdin/out/err, thus fd >= 3 in TEST_F()
106 EXPECT_EQ(FD_CLOEXEC, fcntl(fd, F_GETFD)); in TEST_F()
107 close(fd); in TEST_F()
113 int fd = getClatEgressProgFd(RAWIP); in TEST_F() local
114 ASSERT_GE(fd, 3); in TEST_F()
115 EXPECT_EQ(FD_CLOEXEC, fcntl(fd, F_GETFD)); in TEST_F()
116 close(fd); in TEST_F()
122 int fd = getClatEgressProgFd(ETHER); in TEST_F() local
123 ASSERT_GE(fd, 3); in TEST_F()
124 EXPECT_EQ(FD_CLOEXEC, fcntl(fd, F_GETFD)); in TEST_F()
125 close(fd); in TEST_F()
131 int fd = getClatIngressMapFd(); in TEST_F() local
132 ASSERT_GE(fd, 3); // 0,1,2 - stdin/out/err, thus fd >= 3 in TEST_F()
133 EXPECT_EQ(FD_CLOEXEC, fcntl(fd, F_GETFD)); in TEST_F()
134 close(fd); in TEST_F()
140 int fd = getClatIngressProgFd(RAWIP); in TEST_F() local
141 ASSERT_GE(fd, 3); in TEST_F()
142 EXPECT_EQ(FD_CLOEXEC, fcntl(fd, F_GETFD)); in TEST_F()
143 close(fd); in TEST_F()
149 int fd = getClatIngressProgFd(ETHER); in TEST_F() local
150 ASSERT_GE(fd, 3); in TEST_F()
151 EXPECT_EQ(FD_CLOEXEC, fcntl(fd, F_GETFD)); in TEST_F()
152 close(fd); in TEST_F()
158 int fd = getTetherIngressMapFd(); in TEST_F() local
159 ASSERT_GE(fd, 3); // 0,1,2 - stdin/out/err, thus fd >= 3 in TEST_F()
160 EXPECT_EQ(FD_CLOEXEC, fcntl(fd, F_GETFD)); in TEST_F()
161 close(fd); in TEST_F()
169 int fd = getTetherIngressProgFd(RAWIP); in TEST_F() local
170 ASSERT_GE(fd, 3); in TEST_F()
171 EXPECT_EQ(FD_CLOEXEC, fcntl(fd, F_GETFD)); in TEST_F()
172 close(fd); in TEST_F()
180 int fd = getTetherIngressProgFd(ETHER); in TEST_F() local
181 ASSERT_GE(fd, 3); in TEST_F()
182 EXPECT_EQ(FD_CLOEXEC, fcntl(fd, F_GETFD)); in TEST_F()
183 close(fd); in TEST_F()
189 int fd = getTetherStatsMapFd(); in TEST_F() local
190 ASSERT_GE(fd, 3); // 0,1,2 - stdin/out/err, thus fd >= 3 in TEST_F()
191 EXPECT_EQ(FD_CLOEXEC, fcntl(fd, F_GETFD)); in TEST_F()
192 close(fd); in TEST_F()
198 int fd = getTetherLimitMapFd(); in TEST_F() local
199 ASSERT_GE(fd, 3); // 0,1,2 - stdin/out/err, thus fd >= 3 in TEST_F()
200 EXPECT_EQ(FD_CLOEXEC, fcntl(fd, F_GETFD)); in TEST_F()
201 close(fd); in TEST_F()