Searched refs:poll_handle (Results 1 – 4 of 4) sorted by relevance
| /netbsd-src/external/mit/libuv/dist/test/ |
| H A D | test-fs-poll.c | 45 static uv_fs_poll_t poll_handle; variable 106 ASSERT(handle == &poll_handle); in poll_cb() 159 ASSERT(0 == uv_fs_poll_init(loop, &poll_handle)); in TEST_IMPL() 160 ASSERT(0 == uv_fs_poll_start(&poll_handle, poll_cb, FIXTURE, 100)); in TEST_IMPL() 179 ASSERT(0 == uv_fs_poll_init(loop, &poll_handle)); in TEST_IMPL() 181 ASSERT(UV_EINVAL == uv_fs_poll_getpath(&poll_handle, buf, &len)); in TEST_IMPL() 182 ASSERT(0 == uv_fs_poll_start(&poll_handle, poll_cb_fail, FIXTURE, 100)); in TEST_IMPL() 184 ASSERT(0 == uv_fs_poll_getpath(&poll_handle, buf, &len)); in TEST_IMPL() 189 uv_close((uv_handle_t*) &poll_handle, close_cb); in TEST_IMPL() 202 uv_fs_poll_t poll_handle; in TEST_IMPL() local [all …]
|
| H A D | test-poll.c | 58 uv_poll_t poll_handle; member 69 uv_poll_t poll_handle; member 163 r = uv_poll_init_socket(uv_default_loop(), &context->poll_handle, sock); in create_connection_context() 165 context->poll_handle.data = context; in create_connection_context() 201 uv_close((uv_handle_t*) &context->poll_handle, connection_close_cb); in destroy_connection_context() 286 uv_poll_start(&context->poll_handle, UV_WRITABLE, connection_poll_cb); 287 uv_poll_start(&context->poll_handle, UV_READABLE, connection_poll_cb); 385 uv_poll_start(&context->poll_handle, 388 uv_poll_start(&context->poll_handle, 454 r = uv_poll_start(&context->poll_handle, [all …]
|
| H A D | test-fork.c | 124 uv_poll_t poll_handle; in TEST_IMPL() local 132 ASSERT(0 == uv_poll_init(uv_default_loop(), &poll_handle, socket_fds[0])); in TEST_IMPL() 145 ASSERT(0 == uv_poll_start(&poll_handle, UV_READABLE, socket_cb)); in TEST_IMPL() 164 uv_poll_t poll_handle; in TEST_IMPL() local 174 ASSERT(0 == uv_poll_init(uv_default_loop(), &poll_handle, socket_fds[0])); in TEST_IMPL() 175 ASSERT(0 == uv_poll_start(&poll_handle, UV_READABLE, socket_cb)); in TEST_IMPL() 188 ASSERT(0 == uv_poll_stop(&poll_handle)); in TEST_IMPL() 189 uv_close((uv_handle_t*)&poll_handle, NULL); in TEST_IMPL()
|
| /netbsd-src/external/mit/libuv/dist/docs/code/uvwget/ |
| H A D | main.c | 12 uv_poll_t poll_handle; member 23 int r = uv_poll_init_socket(loop, &context->poll_handle, sockfd); in create_curl_context() 25 context->poll_handle.data = context; in create_curl_context() 36 uv_close((uv_handle_t*) &context->poll_handle, curl_close_cb); in destroy_curl_context() 123 uv_poll_start(&curl_context->poll_handle, UV_READABLE, curl_perform); in handle_socket() 126 uv_poll_start(&curl_context->poll_handle, UV_WRITABLE, curl_perform); in handle_socket() 130 uv_poll_stop(&((curl_context_t*)socketp)->poll_handle); in handle_socket()
|