Lines Matching refs:fd
49 fprintf(stderr, " event %zu: fd %d created by %s\n", index, event.fd, in DumpEvent()
52 fprintf(stderr, " event %zu: fd %d closed\n", index, event.fd); in DumpEvent()
91 if (event.fd == events[j].fd) { in FdtrackRun()
123 static int fd = open("/dev/null", O_WRONLY | O_CLOEXEC); in TEST() local
124 ASSERT_NE(-1, fd); in TEST()
126 auto events = FdtrackRun([]() { close(fd); }); in TEST()
128 ASSERT_EQ(fd, events[0].fd); in TEST()
156 ASSERT_EQ(fd1, events[0].fd); in TEST()
160 ASSERT_EQ(fd3, events[1].fd); in TEST()
169 void SetFdResult(std::vector<int>* output, int fd) { in SetFdResult() argument
170 output->push_back(fd); in SetFdResult()
181 for (auto& fd : expected_fds) { \
182 ASSERT_NE(-1, fd); \
195 std::find(expected_fds.begin(), expected_fds.end(), events[0].fd)); \
294 int fd = open("/dev/null", O_RDONLY);
300 close(fd);
310 fd;