Rizin
unix-like reverse engineering framework and cli tools
|
#include <assert.h>
#include <io.h>
#include "uv.h"
#include "internal.h"
#include "handle-inl.h"
#include "req-inl.h"
Go to the source code of this file.
Classes | |
struct | uv_single_fd_set_s |
Typedefs | |
typedef struct uv_single_fd_set_s | uv_single_fd_set_t |
Variables | |
static const GUID | uv_msafd_provider_ids [UV_MSAFD_PROVIDER_COUNT] |
static OVERLAPPED | overlapped_dummy_ |
static uv_once_t | overlapped_dummy_init_guard_ = UV_ONCE_INIT |
static AFD_POLL_INFO | afd_poll_info_dummy_ |
typedef struct uv_single_fd_set_s uv_single_fd_set_t |
|
static |
|
static |
Definition at line 236 of file poll.c.
References ARRAY_SIZE, i, loop, uv__fast_poll_create_peer_socket(), and uv_msafd_provider_ids.
Referenced by uv_poll_init_socket().
|
static |
Definition at line 137 of file poll.c.
References AFD_POLL_ABORT, AFD_POLL_ACCEPT, AFD_POLL_CONNECT_FAIL, AFD_POLL_DISCONNECT, AFD_POLL_LOCAL_CLOSE, AFD_POLL_RECEIVE, AFD_POLL_SEND, assert(), DWORD, error(), _AFD_POLL_HANDLE_INFO::Events, GET_REQ_SOCK_ERROR, handle, _AFD_POLL_INFO::Handles, loop, _AFD_POLL_INFO::NumberOfHandles, req, REQ_SUCCESS, uv__fast_poll_submit_poll_req(), uv__handle_stop, uv__is_active, UV_DISCONNECT, UV_HANDLE_CLOSING, UV_READABLE, uv_translate_sys_error(), uv_want_endgame(), and UV_WRITABLE.
Referenced by uv_process_poll_req().
Definition at line 75 of file poll.c.
References AFD_POLL_ABORT, AFD_POLL_ACCEPT, AFD_POLL_CONNECT_FAIL, AFD_POLL_DISCONNECT, AFD_POLL_RECEIVE, AFD_POLL_SEND, _AFD_POLL_HANDLE_INFO::Events, _AFD_POLL_INFO::Exclusive, handle, HANDLE, _AFD_POLL_HANDLE_INFO::Handle, _AFD_POLL_INFO::Handles, if(), INT64_MAX, loop, memset(), _AFD_POLL_INFO::NumberOfHandles, req, SET_REQ_ERROR, _AFD_POLL_HANDLE_INFO::Status, _AFD_POLL_INFO::Timeout, TRUE, UV_DISCONNECT, uv_insert_pending_req(), uv_msafd_poll(), UV_READABLE, and UV_WRITABLE.
Referenced by uv__fast_poll_process_poll_req(), and uv__poll_set().
|
static |
Definition at line 70 of file poll.c.
References afd_poll_info_dummy_.
Referenced by uv_poll_close().
|
static |
Definition at line 64 of file poll.c.
References overlapped_dummy_, overlapped_dummy_init_guard_, uv__init_overlapped_dummy(), and uv_once().
Referenced by uv_poll_close().
|
static |
Definition at line 52 of file poll.c.
References HANDLE, memset(), NULL, overlapped_dummy_, TRUE, and uv_fatal_error().
Referenced by uv__get_overlapped_dummy().
|
static |
Definition at line 486 of file poll.c.
References assert(), cb, handle, uv__fast_poll_submit_poll_req(), uv__handle_start, uv__handle_stop, uv__slow_poll_submit_poll_req(), UV_DISCONNECT, UV_HANDLE_CLOSING, UV_HANDLE_POLL_SLOW, UV_READABLE, and UV_WRITABLE.
Referenced by uv_poll_start(), and uv_poll_stop().
|
static |
Definition at line 366 of file poll.c.
References assert(), err, GET_REQ_ERROR, handle, loop, req, REQ_SUCCESS, uv__slow_poll_submit_poll_req(), UV_HANDLE_CLOSING, uv_translate_sys_error(), and uv_want_endgame().
Referenced by uv_process_poll_req().
Definition at line 336 of file poll.c.
References assert(), handle, loop, req, SET_REQ_ERROR, uv__slow_poll_thread_proc(), and uv_insert_pending_req().
Referenced by uv__poll_set(), and uv__slow_poll_process_poll_req().
|
static |
Definition at line 267 of file poll.c.
References assert(), DWORD, handle, POST_COMPLETION_FOR_REQ, r, req, select, SET_REQ_ERROR, SET_REQ_SUCCESS, timeout, UV_READABLE, and UV_WRITABLE.
Referenced by uv__slow_poll_submit_poll_req().
Definition at line 535 of file poll.c.
References AFD_POLL_ALL, DWORD, error(), _AFD_POLL_HANDLE_INFO::Events, _AFD_POLL_INFO::Exclusive, handle, HANDLE, _AFD_POLL_HANDLE_INFO::Handle, _AFD_POLL_INFO::Handles, INT64_MAX, loop, _AFD_POLL_INFO::NumberOfHandles, _AFD_POLL_HANDLE_INFO::Status, _AFD_POLL_INFO::Timeout, TRUE, uv__get_afd_poll_info_dummy(), uv__get_overlapped_dummy(), uv__handle_closing, UV_HANDLE_POLL_SLOW, uv_msafd_poll(), uv_translate_sys_error(), and uv_want_endgame().
Referenced by uv_close().
Definition at line 576 of file poll.c.
References assert(), handle, uv__handle_close, UV_HANDLE_CLOSED, and UV_HANDLE_CLOSING.
Referenced by uv_process_endgames().
Definition at line 408 of file poll.c.
References err, fd, handle, loop, NULL, uv__fd_exists(), uv__get_osfhandle(), uv__handle_init, uv__io_check_fd(), uv__io_init(), uv__nonblock, uv__nonblock_fcntl(), uv__nonblock_ioctl(), uv__poll_io(), and uv_poll_init_socket().
int uv_poll_init_socket | ( | uv_loop_t * | loop, |
uv_poll_t * | handle, | ||
uv_os_sock_t | socket | ||
) |
Definition at line 413 of file poll.c.
References assert(), bytes, DWORD, FIONBIO, handle, len, loop, NULL, SIO_BASE_HANDLE, socket, SOL_SOCKET, uv__fast_poll_get_peer_socket(), uv__handle_init, UV_HANDLE_POLL_SLOW, uv_poll_init(), UV_REQ_INIT, and uv_translate_sys_error().
Referenced by create_curl_context().
int uv_poll_start | ( | uv_poll_t * | handle, |
int | events, | ||
uv_poll_cb | cb | ||
) |
Definition at line 516 of file poll.c.
References assert(), cb, handle, poll_cb(), uv__handle_start, uv__io_start(), uv__is_closing, uv__poll_set(), uv__poll_stop(), UV__POLLPRI, UV__POLLRDHUP, UV_DISCONNECT, UV_PRIORITIZED, UV_READABLE, and UV_WRITABLE.
Referenced by handle_socket().
Definition at line 521 of file poll.c.
References assert(), handle, uv__is_closing, uv__poll_set(), and uv__poll_stop().
Referenced by handle_socket().
Definition at line 526 of file poll.c.
References handle, loop, req, uv__fast_poll_process_poll_req(), uv__slow_poll_process_poll_req(), and UV_HANDLE_POLL_SLOW.
Referenced by uv_process_reqs().
|
static |
Definition at line 49 of file poll.c.
Referenced by uv__get_afd_poll_info_dummy().
|
static |
Definition at line 46 of file poll.c.
Referenced by uv__get_overlapped_dummy(), and uv__init_overlapped_dummy().
|
static |
Definition at line 47 of file poll.c.
Referenced by uv__get_overlapped_dummy().
|
static |
Definition at line 31 of file poll.c.
Referenced by uv__fast_poll_get_peer_socket().