Lines Matching refs:pollout

44 	struct zsock_pollfd pollout[1];  in ZTEST()  local
117 memset(pollout, 0, sizeof(pollout)); in ZTEST()
118 pollout[0].fd = c_sock; in ZTEST()
119 pollout[0].events = ZSOCK_POLLOUT; in ZTEST()
126 res = zsock_poll(pollout, ARRAY_SIZE(pollout), 200); in ZTEST()
129 zassert_equal(pollout[0].revents, ZSOCK_POLLOUT, ""); in ZTEST()
134 memset(pollout, 0, sizeof(pollout)); in ZTEST()
135 pollout[0].fd = c_sock_tcp; in ZTEST()
136 pollout[0].events = ZSOCK_POLLOUT; in ZTEST()
148 res = zsock_poll(pollout, ARRAY_SIZE(pollout), 200); in ZTEST()
151 zassert_equal(pollout[0].revents, ZSOCK_POLLOUT, ""); in ZTEST()
186 struct zsock_pollfd pollout[1]; in ZTEST() local
205 memset(pollout, 0, sizeof(pollout)); in ZTEST()
206 pollout[0].fd = c_sock; in ZTEST()
207 pollout[0].events = ZSOCK_POLLOUT; in ZTEST()
209 res = zsock_poll(pollout, ARRAY_SIZE(pollout), 10); in ZTEST()
211 zassert_equal(pollout[0].revents, ZSOCK_POLLOUT, ""); in ZTEST()
217 memset(pollout, 0, sizeof(pollout)); in ZTEST()
218 pollout[0].fd = c_sock; in ZTEST()
219 pollout[0].events = ZSOCK_POLLOUT; in ZTEST()
221 res = zsock_poll(pollout, ARRAY_SIZE(pollout), 10); in ZTEST()
222 zassert_equal(res, 0, "%d", pollout[0].revents); in ZTEST()
223 zassert_equal(pollout[0].revents, 0, ""); in ZTEST()
231 memset(pollout, 0, sizeof(pollout)); in ZTEST()
232 pollout[0].fd = c_sock; in ZTEST()
233 pollout[0].events = ZSOCK_POLLOUT; in ZTEST()
236 res = zsock_poll(pollout, ARRAY_SIZE(pollout), 500); in ZTEST()
238 zassert_equal(pollout[0].revents, ZSOCK_POLLOUT, ""); in ZTEST()