Lines Matching full:pfd

63 	struct pollfd pfd;  in waiter_entry1ap()  local
67 pfd.fd = ctx->efd[0]; in waiter_entry1ap()
68 pfd.events = POLLIN; in waiter_entry1ap()
69 if (poll(&pfd, 1, -1) > 0) { in waiter_entry1ap()
90 struct pollfd pfd; in waiter_entry1op() local
94 pfd.fd = ctx->efd[0]; in waiter_entry1op()
95 pfd.events = POLLIN; in waiter_entry1op()
96 if (poll(&pfd, 1, -1) > 0) { in waiter_entry1op()
117 struct pollfd pfd; in waiter_entry2ap() local
121 pfd.fd = ctx->efd[0]; in waiter_entry2ap()
122 pfd.events = POLLIN; in waiter_entry2ap()
123 if (poll(&pfd, 1, -1) > 0) { in waiter_entry2ap()
305 struct pollfd pfd; in TEST() local
318 pfd.fd = efd; in TEST()
319 pfd.events = POLLIN; in TEST()
320 ASSERT_EQ(poll(&pfd, 1, 0), 1); in TEST()
323 pfd.fd = efd; in TEST()
324 pfd.events = POLLIN; in TEST()
325 ASSERT_EQ(poll(&pfd, 1, 0), 1); in TEST()
344 struct pollfd pfd; in TEST() local
357 pfd.fd = efd; in TEST()
358 pfd.events = POLLIN; in TEST()
359 ASSERT_EQ(poll(&pfd, 1, 0), 1); in TEST()
362 pfd.fd = efd; in TEST()
363 pfd.events = POLLIN; in TEST()
364 ASSERT_EQ(poll(&pfd, 1, 0), 0); in TEST()
384 struct pollfd pfd; in TEST() local
402 pfd.fd = efd; in TEST()
403 pfd.events = POLLIN; in TEST()
404 EXPECT_EQ(poll(&pfd, 1, 0), 1); in TEST()
407 pfd.fd = efd; in TEST()
408 pfd.events = POLLIN; in TEST()
409 EXPECT_EQ(poll(&pfd, 1, 0), 1); in TEST()
430 struct pollfd pfd; in TEST() local
448 pfd.fd = efd; in TEST()
449 pfd.events = POLLIN; in TEST()
450 EXPECT_EQ(poll(&pfd, 1, 0), 1); in TEST()
453 pfd.fd = efd; in TEST()
454 pfd.events = POLLIN; in TEST()
455 EXPECT_EQ(poll(&pfd, 1, 0), 0); in TEST()
1006 struct pollfd pfd; in TEST() local
1025 pfd.fd = efd[0]; in TEST()
1026 pfd.events = POLLIN; in TEST()
1027 EXPECT_EQ(poll(&pfd, 1, 0), 1); in TEST()
1030 pfd.fd = efd[0]; in TEST()
1031 pfd.events = POLLIN; in TEST()
1032 EXPECT_EQ(poll(&pfd, 1, 0), 1); in TEST()
1054 struct pollfd pfd; in TEST() local
1073 pfd.fd = efd[0]; in TEST()
1074 pfd.events = POLLIN; in TEST()
1075 EXPECT_EQ(poll(&pfd, 1, 0), 1); in TEST()
1078 pfd.fd = efd[0]; in TEST()
1079 pfd.events = POLLIN; in TEST()
1080 EXPECT_EQ(poll(&pfd, 1, 0), 1); in TEST()
1102 struct pollfd pfd; in TEST() local
1121 pfd.fd = efd[0]; in TEST()
1122 pfd.events = POLLIN; in TEST()
1123 EXPECT_EQ(poll(&pfd, 1, 0), 1); in TEST()
1126 pfd.fd = efd[0]; in TEST()
1127 pfd.events = POLLIN; in TEST()
1128 EXPECT_EQ(poll(&pfd, 1, 0), 0); in TEST()
1150 struct pollfd pfd; in TEST() local
1169 pfd.fd = efd[0]; in TEST()
1170 pfd.events = POLLIN; in TEST()
1171 EXPECT_EQ(poll(&pfd, 1, 0), 1); in TEST()
1174 pfd.fd = efd[0]; in TEST()
1175 pfd.events = POLLIN; in TEST()
1176 EXPECT_EQ(poll(&pfd, 1, 0), 0); in TEST()
1817 struct pollfd pfd; in TEST() local
1841 pfd.fd = ctx.efd[1]; in TEST()
1842 pfd.events = POLLIN; in TEST()
1843 if (poll(&pfd, 1, -1) > 0) { in TEST()
1874 struct pollfd pfd; in TEST() local
1898 pfd.fd = ctx.efd[1]; in TEST()
1899 pfd.events = POLLIN; in TEST()
1900 if (poll(&pfd, 1, -1) > 0) { in TEST()
1931 struct pollfd pfd; in TEST() local
1955 pfd.fd = ctx.efd[1]; in TEST()
1956 pfd.events = POLLIN; in TEST()
1957 if (poll(&pfd, 1, -1) > 0) { in TEST()
1988 struct pollfd pfd; in TEST() local
2012 pfd.fd = ctx.efd[1]; in TEST()
2013 pfd.events = POLLIN; in TEST()
2014 if (poll(&pfd, 1, -1) > 0) { in TEST()
2253 struct pollfd pfd; in TEST() local
2277 pfd.fd = ctx.efd[1]; in TEST()
2278 pfd.events = POLLIN; in TEST()
2279 if (poll(&pfd, 1, -1) > 0) { in TEST()
2362 struct pollfd pfd; in TEST() local
2386 pfd.fd = ctx.efd[1]; in TEST()
2387 pfd.events = POLLIN; in TEST()
2388 if (poll(&pfd, 1, -1) > 0) { in TEST()
2580 struct pollfd pfd; in TEST() local
2610 pfd.fd = efd[0]; in TEST()
2611 pfd.events = POLLIN; in TEST()
2612 EXPECT_EQ(poll(&pfd, 1, 0), 1); in TEST()
2615 pfd.fd = efd[0]; in TEST()
2616 pfd.events = POLLIN; in TEST()
2617 EXPECT_EQ(poll(&pfd, 1, 0), 1); in TEST()
2642 struct pollfd pfd; in TEST() local
2672 pfd.fd = efd[0]; in TEST()
2673 pfd.events = POLLIN; in TEST()
2674 EXPECT_EQ(poll(&pfd, 1, 0), 1); in TEST()
2677 pfd.fd = efd[0]; in TEST()
2678 pfd.events = POLLIN; in TEST()
2679 EXPECT_EQ(poll(&pfd, 1, 0), 0); in TEST()
2963 struct pollfd pfd; in TEST() local
2997 pfd.fd = ctx.efd[0]; in TEST()
2998 pfd.events = POLLIN; in TEST()
2999 if (poll(&pfd, 1, -1) > 0) { in TEST()
3033 struct pollfd pfd; in TEST() local
3067 pfd.fd = ctx.efd[0]; in TEST()
3068 pfd.events = POLLIN; in TEST()
3069 if (poll(&pfd, 1, -1) > 0) { in TEST()
3121 struct pollfd pfd; in TEST() local