Rizin
unix-like reverse engineering framework and cli tools
|
#include "uv.h"
#include "../uv-common.h"
#include "uv/tree.h"
#include "winapi.h"
#include "winsock.h"
Go to the source code of this file.
Classes | |
struct | uv__ipc_socket_xfer_info_t |
Macros | |
#define | INLINE inline |
#define | UV_THREAD_LOCAL __thread |
#define | UV_BEGIN_DISABLE_CRT_ASSERT() |
#define | UV_END_DISABLE_CRT_ASSERT() |
Typedefs | |
typedef int(WINAPI * | uv__peersockfunc) (SOCKET, struct sockaddr *, int *) |
Enumerations | |
enum | uv__ipc_socket_xfer_type_t { UV__IPC_SOCKET_XFER_NONE = 0 , UV__IPC_SOCKET_XFER_TCP_CONNECTION , UV__IPC_SOCKET_XFER_TCP_SERVER } |
Variables | |
const char * | syscall |
int | uv_tcp_non_ifs_lsp_ipv4 |
int | uv_tcp_non_ifs_lsp_ipv6 |
struct sockaddr_in | uv_addr_ip4_any_ |
struct sockaddr_in6 | uv_addr_ip6_any_ |
#define INLINE inline |
Definition at line 36 of file internal.h.
#define UV_BEGIN_DISABLE_CRT_ASSERT | ( | ) |
Definition at line 56 of file internal.h.
#define UV_END_DISABLE_CRT_ASSERT | ( | ) |
Definition at line 57 of file internal.h.
#define UV_THREAD_LOCAL __thread |
Definition at line 37 of file internal.h.
Definition at line 275 of file internal.h.
Enumerator | |
---|---|
UV__IPC_SOCKET_XFER_NONE | |
UV__IPC_SOCKET_XFER_TCP_CONNECTION | |
UV__IPC_SOCKET_XFER_TCP_SERVER |
Definition at line 64 of file internal.h.
__declspec | ( | noreturn | ) | const |
Referenced by fs__scandir().
Definition at line 1280 of file util.c.
References DWORD, NULL, uv__free(), uv__malloc(), and uv_translate_sys_error().
Referenced by fs__readdir(), uv__get_process_title(), uv__getpwuid_r(), uv_cpu_info(), uv_os_environ(), and uv_process_fs_event_req().
Definition at line 1335 of file util.c.
References L, NULL, uv__free(), uv__malloc(), and uv_translate_sys_error().
Referenced by uv_os_getenv(), uv_os_setenv(), and uv_os_unsetenv().
void uv__fs_poll_endgame | ( | uv_loop_t * | loop, |
uv_fs_poll_t * | handle | ||
) |
Referenced by uv_process_endgames().
int uv__getpwuid_r | ( | uv_passwd_t * | pwd | ) |
Definition at line 1146 of file core.c.
References ARRAY_SIZE, buf, DWORD, ERANGE, uv_passwd_s::gid, HANDLE, uv_passwd_s::homedir, memcpy(), NULL, path, r, uv_passwd_s::shell, uv_passwd_s::uid, UNLEN, uv_passwd_s::username, uv__convert_utf16_to_utf8(), uv__free(), uv__malloc(), and uv_translate_sys_error().
Referenced by uv_os_get_passwd(), and uv_os_homedir().
int uv__getsockpeername | ( | const uv_handle_t * | handle, |
uv__peersockfunc | func, | ||
struct sockaddr * | name, | ||
int * | namelen, | ||
int | delayed_error | ||
) |
Definition at line 727 of file core.c.
References fd, handle, uv_fileno(), and uv_translate_sys_error().
Definition at line 495 of file util.c.
References assert(), counter, hrtime_frequency_, and uv_fatal_error().
Referenced by uv_hrtime().
void uv__init_detect_system_wakeup | ( | void | ) |
Definition at line 28 of file detect-wakeup.c.
References uv__register_system_resume_callback().
Referenced by uv_init().
void uv__once_init | ( | void | ) |
Definition at line 329 of file core.c.
References uv_init(), uv_init_guard_, and uv_once().
Referenced by uv__pipe_getname(), uv__random(), uv_cpu_info(), uv_fs_req_init(), uv_get_process_title(), uv_hrtime(), uv_loop_init(), uv_os_gethostname(), uv_os_uname(), uv_pipe_open(), uv_set_process_title(), and uv_tty_init().
void uv__pipe_read_stop | ( | uv_pipe_t * | handle | ) |
Definition at line 775 of file pipe.c.
References DECREASE_ACTIVE_COUNT, handle, uv__pipe_interrupt_read(), and UV_HANDLE_READING.
Referenced by uv_read_stop().
int uv__pipe_write | ( | uv_loop_t * | loop, |
uv_write_t * | req, | ||
uv_pipe_t * | handle, | ||
const uv_buf_t | bufs[], | ||
size_t | nbufs, | ||
uv_stream_t * | send_handle, | ||
uv_write_cb | cb | ||
) |
Definition at line 1578 of file pipe.c.
References assert(), bufs, cb, handle, loop, NULL, req, uv__pipe_write_data(), and uv__pipe_write_ipc().
Referenced by uv_write(), and uv_write2().
Definition at line 1965 of file util.c.
References buflen, FALSE, and SystemFunction036().
Referenced by fs__mktemp(), and uv__random().
Definition at line 80 of file signal.c.
References handle, InterlockedExchange, LONG, NULL, POST_COMPLETION_FOR_REQ, RB_NEXT, RB_NFIND, signum, uv_signal_s::signum, uv__signal_lock, uv__signal_tree, UV_SIGNAL_ONE_SHOT, and UV_SIGNAL_ONE_SHOT_DISPATCHED.
Referenced by uv__signal_control_handler(), and uv__tty_console_signal_resize().
int uv__stdio_create | ( | uv_loop_t * | loop, |
const uv_process_options_t * | options, | ||
BYTE ** | buffer_ptr | ||
) |
Definition at line 265 of file process-stdio.c.
References access, assert(), CHILD_STDIO_COUNT, CHILD_STDIO_CRT_FLAGS, CHILD_STDIO_HANDLE, CHILD_STDIO_SIZE, count, uv_stdio_container_s::data, DWORD, err, error(), uv_stdio_container_s::fd, FDEV, uv_stdio_container_s::flags, FOPEN, FPIPE, HANDLE, i, INVALID_HANDLE_VALUE, loop, NULL, options, uv_stdio_container_s::stream, uv__create_nul_handle(), uv__create_stdio_pipe_pair(), uv__duplicate_fd(), uv__duplicate_handle(), uv__malloc(), uv__stdio_destroy(), UV_CREATE_PIPE, UV_HANDLE_CONNECTION, UV_HANDLE_PIPESERVER, UV_IGNORE, UV_INHERIT_FD, and UV_INHERIT_STREAM.
Referenced by uv_spawn().
void uv__stdio_destroy | ( | BYTE * | buffer | ) |
Definition at line 453 of file process-stdio.c.
References CHILD_STDIO_COUNT, CHILD_STDIO_HANDLE, count, handle, HANDLE, i, INVALID_HANDLE_VALUE, and uv__free().
Referenced by uv__stdio_create(), and uv_spawn().
Definition at line 510 of file process-stdio.c.
References CHILD_STDIO_HANDLE, and fd.
Referenced by uv_spawn().
void uv__stdio_noinherit | ( | BYTE * | buffer | ) |
Definition at line 468 of file process-stdio.c.
References CHILD_STDIO_COUNT, CHILD_STDIO_HANDLE, count, handle, HANDLE, i, and INVALID_HANDLE_VALUE.
Referenced by uv_disable_stdio_inheritance().
WORD uv__stdio_size | ( | BYTE * | buffer | ) |
Definition at line 505 of file process-stdio.c.
References CHILD_STDIO_COUNT, and CHILD_STDIO_SIZE.
Referenced by uv_spawn().
Definition at line 481 of file process-stdio.c.
References CHILD_STDIO_COUNT, CHILD_STDIO_SIZE, count, and NULL.
Referenced by uv_disable_stdio_inheritance().
Definition at line 968 of file tcp.c.
References bufs, bytes, DWORD, handle, NULL, and uv_translate_sys_error().
Referenced by uv_try_write().
int uv__tcp_xfer_export | ( | uv_tcp_t * | handle, |
int | pid, | ||
uv__ipc_socket_xfer_type_t * | xfer_type, | ||
uv__ipc_socket_xfer_info_t * | xfer_info | ||
) |
Definition at line 1242 of file tcp.c.
References uv__ipc_socket_xfer_info_t::delayed_error, handle, listen, uv__ipc_socket_xfer_info_t::socket_info, UV__IPC_SOCKET_XFER_TCP_CONNECTION, UV__IPC_SOCKET_XFER_TCP_SERVER, UV_HANDLE_BOUND, UV_HANDLE_CONNECTION, UV_HANDLE_LISTENING, and UV_HANDLE_SHARED_TCP_SOCKET.
Referenced by uv__pipe_write_ipc().
int uv__tcp_xfer_import | ( | uv_tcp_t * | tcp, |
uv__ipc_socket_xfer_type_t | xfer_type, | ||
uv__ipc_socket_xfer_info_t * | xfer_info | ||
) |
Definition at line 1277 of file tcp.c.
References assert(), uv__ipc_socket_xfer_info_t::delayed_error, err, socket, uv__ipc_socket_xfer_info_t::socket_info, UV__IPC_SOCKET_XFER_TCP_CONNECTION, UV__IPC_SOCKET_XFER_TCP_SERVER, uv_connection_init(), UV_HANDLE_BOUND, UV_HANDLE_READABLE, UV_HANDLE_SHARED_TCP_SOCKET, UV_HANDLE_WRITABLE, and uv_tcp_set_socket().
Referenced by uv_pipe_accept().
Definition at line 2212 of file tty.c.
References bufs, DWORD, error(), handle, uv__count_bufs(), uv_translate_sys_error(), and uv_tty_write_bufs().
Referenced by uv_try_write().
void uv__util_init | ( | void | ) |
Definition at line 79 of file util.c.
References hrtime_frequency_, process_title_lock, and uv_fatal_error().
Referenced by uv_init().
void uv__wake_all_loops | ( | void | ) |
Definition at line 162 of file core.c.
References assert(), i, INVALID_HANDLE_VALUE, loop, NULL, uv__loops, uv__loops_lock, uv__loops_size, uv_mutex_lock(), and uv_mutex_unlock().
Referenced by uv__system_resume_callback().
void uv_async_close | ( | uv_loop_t * | loop, |
uv_async_t * | handle | ||
) |
Definition at line 57 of file async.c.
References handle, loop, uv__handle_closing, and uv_want_endgame().
Referenced by uv_close().
void uv_async_endgame | ( | uv_loop_t * | loop, |
uv_async_t * | handle | ||
) |
Definition at line 31 of file async.c.
References assert(), handle, uv__handle_close, UV_HANDLE_CLOSED, and UV_HANDLE_CLOSING.
Referenced by uv_process_endgames().
void uv_console_init | ( | void | ) |
Definition at line 166 of file tty.c.
References INVALID_HANDLE_VALUE, L, NULL, uv__tty_console_handle, uv__tty_console_height, uv__tty_console_resize_message_loop_thread(), uv__tty_console_resize_mutex, uv__tty_console_width, uv_mutex_init(), uv_sem_init(), and uv_tty_output_lock.
Referenced by uv_init().
void uv_fs_event_close | ( | uv_loop_t * | loop, |
uv_fs_event_t * | handle | ||
) |
Definition at line 585 of file fs-event.c.
References handle, loop, uv__handle_closing, uv_fs_event_stop(), and uv_want_endgame().
Referenced by uv_close().
void uv_fs_event_endgame | ( | uv_loop_t * | loop, |
uv_fs_event_t * | handle | ||
) |
Definition at line 597 of file fs-event.c.
References assert(), handle, NULL, uv__free(), uv__handle_close, UV_HANDLE_CLOSED, and UV_HANDLE_CLOSING.
Referenced by uv_process_endgames().
void uv_fs_init | ( | void | ) |
Definition at line 141 of file fs.c.
References uv__allocation_granularity, and uv__fd_hash_init().
Referenced by uv_init().
BOOL uv_get_acceptex_function | ( | SOCKET | socket, |
LPFN_ACCEPTEX * | target | ||
) |
Definition at line 65 of file winsock.c.
References socket, uv_get_extension_function(), and WSAID_ACCEPTEX.
Referenced by uv_tcp_listen().
BOOL uv_get_connectex_function | ( | SOCKET | socket, |
LPFN_CONNECTEX * | target | ||
) |
Definition at line 71 of file winsock.c.
References socket, uv_get_extension_function(), and WSAID_CONNECTEX.
Referenced by uv_tcp_try_connect().
void uv_loop_watcher_endgame | ( | uv_loop_t * | loop, |
uv_handle_t * | handle | ||
) |
Definition at line 29 of file loop-watcher.c.
References assert(), handle, uv__handle_close, UV_HANDLE_CLOSED, and UV_HANDLE_CLOSING.
Referenced by uv_process_endgames().
int WSAAPI uv_msafd_poll | ( | SOCKET | socket, |
AFD_POLL_INFO * | info_in, | ||
AFD_POLL_INFO * | info_out, | ||
OVERLAPPED * | overlapped | ||
) |
Definition at line 461 of file winsock.c.
References DWORD, error(), FALSE, HANDLE, if(), IOCTL_AFD_POLL, NULL, pNtDeviceIoControlFile, r, socket, status, _IO_STATUS_BLOCK::Status, STATUS_PENDING, STATUS_SUCCESS, and uv_ntstatus_to_winsock_error().
Referenced by uv__fast_poll_submit_poll_req(), and uv_poll_close().
Definition at line 137 of file winsock.c.
References DWORD, FACILITY_NTWIN32, status, STATUS_ACCESS_DENIED, STATUS_ACCESS_VIOLATION, STATUS_ADDRESS_ALREADY_EXISTS, STATUS_BAD_NETWORK_PATH, STATUS_BUFFER_OVERFLOW, STATUS_BUFFER_TOO_SMALL, STATUS_CANCELLED, STATUS_COMMITMENT_LIMIT, STATUS_CONFLICTING_ADDRESSES, STATUS_CONNECTION_ABORTED, STATUS_CONNECTION_DISCONNECTED, STATUS_CONNECTION_REFUSED, STATUS_CONNECTION_RESET, STATUS_DEVICE_NOT_READY, STATUS_GRACEFUL_DISCONNECT, STATUS_HOPLIMIT_EXCEEDED, STATUS_HOST_UNREACHABLE, STATUS_INSUFFICIENT_RESOURCES, STATUS_INVALID_ADDRESS, STATUS_INVALID_ADDRESS_COMPONENT, STATUS_INVALID_BUFFER_SIZE, STATUS_INVALID_CONNECTION, STATUS_INVALID_HANDLE, STATUS_INVALID_NETWORK_RESPONSE, STATUS_IO_TIMEOUT, STATUS_LINK_FAILED, STATUS_LINK_TIMEOUT, STATUS_LOCAL_DISCONNECT, STATUS_NETWORK_BUSY, STATUS_NETWORK_UNREACHABLE, STATUS_NO_MEMORY, STATUS_NO_SUCH_DEVICE, STATUS_NO_SUCH_FILE, STATUS_NOT_IMPLEMENTED, STATUS_NOT_SUPPORTED, STATUS_OBJECT_NAME_NOT_FOUND, STATUS_OBJECT_PATH_NOT_FOUND, STATUS_OBJECT_TYPE_MISMATCH, STATUS_PAGEFILE_QUOTA, STATUS_PENDING, STATUS_PIPE_DISCONNECTED, STATUS_PORT_UNREACHABLE, STATUS_PROTOCOL_UNREACHABLE, STATUS_QUOTA_EXCEEDED, STATUS_REMOTE_DISCONNECT, STATUS_REMOTE_NOT_LISTENING, STATUS_REMOTE_RESOURCES, STATUS_REQUEST_ABORTED, STATUS_REQUEST_NOT_ACCEPTED, STATUS_SHARING_VIOLATION, STATUS_SUCCESS, STATUS_TIMEOUT, STATUS_TOO_MANY_ADDRESSES, STATUS_TOO_MANY_PAGING_FILES, STATUS_TRANSACTION_ABORTED, STATUS_UNEXPECTED_NETWORK_ERROR, and STATUS_WORKING_SET_QUOTA.
Referenced by uv_msafd_poll(), uv_wsarecv_workaround(), and uv_wsarecvfrom_workaround().
int uv_pipe_accept | ( | uv_pipe_t * | server, |
uv_stream_t * | client | ||
) |
Definition at line 876 of file pipe.c.
References err, FALSE, INVALID_HANDLE_VALUE, uv_pipe_s::ipc, loop, NULL, QUEUE_DATA, QUEUE_EMPTY, QUEUE_HEAD, QUEUE_REMOVE, req, uv__free(), uv__tcp_xfer_import(), UV_HANDLE_CLOSING, UV_HANDLE_READABLE, UV_HANDLE_WRITABLE, uv_pipe_connection_init(), uv_pipe_queue_accept(), uv__ipc_xfer_queue_item_t::xfer_info, and uv__ipc_xfer_queue_item_t::xfer_type.
Referenced by uv_accept().
Definition at line 785 of file pipe.c.
References close_pipe(), eof_timer_destroy(), handle, HANDLE, i, INVALID_HANDLE_VALUE, NULL, uv__free(), uv__pipe_interrupt_read(), UV_HANDLE_CONNECTION, UV_HANDLE_PIPESERVER, and UV_HANDLE_WRITABLE.
Referenced by uv__create_stdio_pipe_pair(), and uv_pipe_close().
Definition at line 818 of file pipe.c.
References DECREASE_ACTIVE_COUNT, handle, loop, uv__handle_closing, UV_HANDLE_LISTENING, UV_HANDLE_READABLE, UV_HANDLE_READING, UV_HANDLE_WRITABLE, uv_pipe_cleanup(), and uv_want_endgame().
Referenced by uv_close().
Definition at line 382 of file pipe.c.
References assert(), DECREASE_PENDING_REQ_COUNT, DWORD, err, FilePipeLocalInformation, handle, INVALID_HANDLE_VALUE, loop, NULL, _FILE_PIPE_LOCAL_INFORMATION::OutboundQuota, pipe_shutdown_thread_proc(), pNtQueryInformationFile, pRtlNtStatusToDosError, QUEUE_DATA, QUEUE_EMPTY, QUEUE_HEAD, QUEUE_REMOVE, req, socket, uv__ipc_socket_xfer_info_t::socket_info, STATUS_SUCCESS, UNREGISTER_HANDLE_REQ, uv__free(), uv__handle_close, UV_HANDLE_CLOSED, UV_HANDLE_CLOSING, UV_HANDLE_CONNECTION, UV_HANDLE_EMULATE_IOCP, UV_HANDLE_NON_OVERLAPPED_PIPE, UV_HANDLE_PIPESERVER, UV_HANDLE_WRITABLE, uv_insert_pending_req(), uv_translate_sys_error(), _FILE_PIPE_LOCAL_INFORMATION::WriteQuotaAvailable, and uv__ipc_xfer_queue_item_t::xfer_info.
Referenced by uv_process_endgames().
int uv_pipe_listen | ( | uv_pipe_t * | handle, |
int | backlog, | ||
uv_connection_cb | cb | ||
) |
Definition at line 94 of file pipe.c.
References assert(), cb, handle, i, INCREASE_ACTIVE_COUNT, INVALID_HANDLE_VALUE, loop, UV_HANDLE_BOUND, UV_HANDLE_LISTENING, UV_HANDLE_PIPESERVER, UV_HANDLE_READING, and uv_pipe_queue_accept().
int uv_pipe_read_start | ( | uv_pipe_t * | handle, |
uv_alloc_cb | alloc_cb, | ||
uv_read_cb | read_cb | ||
) |
Definition at line 1177 of file pipe.c.
References handle, INCREASE_ACTIVE_COUNT, loop, NULL, uv_fatal_error(), UV_HANDLE_EMULATE_IOCP, UV_HANDLE_READ_PENDING, UV_HANDLE_READING, and uv_pipe_queue_read().
Referenced by uv_read_start().
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().
void uv_process_async_wakeup_req | ( | uv_loop_t * | loop, |
uv_async_t * | handle, | ||
uv_req_t * | req | ||
) |
Definition at line 86 of file async.c.
References assert(), handle, loop, NULL, req, UV_HANDLE_CLOSING, and uv_want_endgame().
Referenced by uv_process_reqs().
void uv_process_close | ( | uv_loop_t * | loop, |
uv_process_t * | handle | ||
) |
Definition at line 903 of file process.c.
References handle, INVALID_HANDLE_VALUE, loop, r, uv__handle_closing, uv_fatal_error(), and uv_want_endgame().
Referenced by uv_close().
void uv_process_endgame | ( | uv_loop_t * | loop, |
uv_process_t * | handle | ||
) |
Definition at line 924 of file process.c.
References assert(), handle, uv__handle_close, UV_HANDLE_CLOSED, and UV_HANDLE_CLOSING.
Referenced by uv_process_endgames().
void uv_process_fs_event_req | ( | uv_loop_t * | loop, |
uv_req_t * | req, | ||
uv_fs_event_t * | handle | ||
) |
Definition at line 426 of file fs-event.c.
References assert(), DWORD, err, file_info_cmp(), GET_REQ_ERROR, handle, L, loop, NULL, req, REQ_SUCCESS, uv__convert_utf16_to_utf8(), uv__free(), uv__is_active, uv__malloc(), UV_CHANGE, uv_fatal_error(), uv_fs_event_queue_readdirchanges(), UV_HANDLE_CLOSING, uv_relative_path(), UV_RENAME, uv_translate_sys_error(), and uv_want_endgame().
Referenced by uv_process_reqs().
Definition at line 1910 of file pipe.c.
References assert(), DECREASE_PENDING_REQ_COUNT, FALSE, handle, INVALID_HANDLE_VALUE, loop, req, REQ_SUCCESS, UV_HANDLE_CLOSING, and uv_pipe_queue_accept().
void uv_process_pipe_connect_req | ( | uv_loop_t * | loop, |
uv_pipe_t * | handle, | ||
uv_connect_t * | req | ||
) |
Definition at line 1945 of file pipe.c.
References assert(), DECREASE_PENDING_REQ_COUNT, err, GET_REQ_ERROR, handle, loop, req, REQ_SUCCESS, UNREGISTER_HANDLE_REQ, uv_pipe_connection_init(), and uv_translate_sys_error().
Definition at line 1789 of file pipe.c.
References assert(), DECREASE_PENDING_REQ_COUNT, DWORD, eof_timer_stop(), err, GET_REQ_ERROR, handle, loop, NULL, req, REQ_SUCCESS, uv__pipe_read_data(), uv__pipe_read_ipc(), UV_HANDLE_CANCELLATION_PENDING, UV_HANDLE_READ_PENDING, UV_HANDLE_READING, uv_null_buf_, uv_pipe_queue_read(), and uv_pipe_read_error_or_eof().
void uv_process_pipe_shutdown_req | ( | uv_loop_t * | loop, |
uv_pipe_t * | handle, | ||
uv_shutdown_t * | req | ||
) |
Definition at line 1967 of file pipe.c.
References assert(), close_pipe(), DECREASE_PENDING_REQ_COUNT, eof_timer_init(), eof_timer_start(), handle, loop, req, UNREGISTER_HANDLE_REQ, UV_HANDLE_READ_PENDING, and UV_HANDLE_READABLE.
Referenced by uv_process_reqs().
void uv_process_pipe_write_req | ( | uv_loop_t * | loop, |
uv_pipe_t * | handle, | ||
uv_write_t * | req | ||
) |
Definition at line 1856 of file pipe.c.
References assert(), container_of, DECREASE_PENDING_REQ_COUNT, err, GET_REQ_ERROR, handle, INVALID_HANDLE_VALUE, loop, NULL, req, UNREGISTER_HANDLE_REQ, uv__coalesced_write_t::user_req, uv__free(), UV_HANDLE_EMULATE_IOCP, UV_HANDLE_NON_OVERLAPPED_PIPE, uv_queue_non_overlapped_write(), uv_translate_sys_error(), and uv_want_endgame().
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().
void uv_process_proc_exit | ( | uv_loop_t * | loop, |
uv_process_t * | handle | ||
) |
Definition at line 865 of file process.c.
References assert(), DWORD, handle, INVALID_HANDLE_VALUE, loop, status, uv__handle_stop, UV_HANDLE_CLOSING, uv_translate_sys_error(), and uv_want_endgame().
Referenced by uv_process_reqs().
void uv_process_signal_req | ( | uv_loop_t * | loop, |
uv_signal_t * | handle, | ||
uv_req_t * | req | ||
) |
Definition at line 234 of file signal.c.
References assert(), handle, InterlockedExchange, LONG, loop, req, UV_HANDLE_CLOSING, UV_SIGNAL_ONE_SHOT, uv_signal_stop(), and uv_want_endgame().
Referenced by uv_process_reqs().
Definition at line 1161 of file tcp.c.
References assert(), DECREASE_ACTIVE_COUNT, DECREASE_PENDING_REQ_COUNT, err, GET_REQ_SOCK_ERROR, handle, loop, req, REQ_SUCCESS, SOL_SOCKET, UV_HANDLE_LISTENING, uv_tcp_queue_accept(), and uv_translate_sys_error().
void uv_process_tcp_connect_req | ( | uv_loop_t * | loop, |
uv_tcp_t * | handle, | ||
uv_connect_t * | req | ||
) |
Definition at line 1209 of file tcp.c.
References assert(), DECREASE_PENDING_REQ_COUNT, err, GET_REQ_SOCK_ERROR, handle, loop, NULL, req, REQ_SUCCESS, SO_UPDATE_CONNECT_CONTEXT, SOL_SOCKET, UNREGISTER_HANDLE_REQ, uv_connection_init(), UV_HANDLE_CLOSING, UV_HANDLE_READABLE, UV_HANDLE_WRITABLE, and uv_translate_sys_error().
Definition at line 992 of file tcp.c.
References assert(), bytes, count, DECREASE_ACTIVE_COUNT, DECREASE_PENDING_REQ_COUNT, done, DWORD, err, flags, GET_REQ_SOCK_ERROR, handle, loop, NULL, req, REQ_SUCCESS, uv_buf_init(), UV_HANDLE_READ_PENDING, UV_HANDLE_READABLE, UV_HANDLE_READING, UV_HANDLE_ZERO_READ, uv_tcp_queue_read(), and uv_translate_sys_error().
void uv_process_tcp_write_req | ( | uv_loop_t * | loop, |
uv_tcp_t * | handle, | ||
uv_write_t * | req | ||
) |
Definition at line 1120 of file tcp.c.
References assert(), DECREASE_PENDING_REQ_COUNT, err, GET_REQ_SOCK_ERROR, handle, INVALID_HANDLE_VALUE, loop, NULL, req, UNREGISTER_HANDLE_REQ, UV_HANDLE_EMULATE_IOCP, uv_translate_sys_error(), and uv_want_endgame().
void uv_process_tty_connect_req | ( | uv_loop_t * | loop, |
uv_tty_t * | handle, | ||
uv_connect_t * | req | ||
) |
Definition at line 1002 of file tty.c.
References assert(), handle, loop, req, UV_HANDLE_TTY_READABLE, uv_process_tty_read_line_req(), and uv_process_tty_read_raw_req().
void uv_process_tty_write_req | ( | uv_loop_t * | loop, |
uv_tty_t * | handle, | ||
uv_write_t * | req | ||
) |
Definition at line 2227 of file tty.c.
References DECREASE_PENDING_REQ_COUNT, err, GET_REQ_ERROR, handle, loop, NULL, req, UNREGISTER_HANDLE_REQ, uv_translate_sys_error(), and uv_want_endgame().
Definition at line 453 of file udp.c.
References assert(), bytes, DECREASE_PENDING_REQ_COUNT, done, DWORD, err, flags, from, GET_REQ_SOCK_ERROR, handle, loop, memset(), NULL, req, REQ_SUCCESS, uv_buf_init(), UV_HANDLE_READ_PENDING, UV_HANDLE_READING, UV_HANDLE_ZERO_READ, uv_translate_sys_error(), UV_UDP_PARTIAL, uv_udp_queue_recv(), and uv_udp_recv_stop().
Referenced by uv_process_reqs().
void uv_process_udp_send_req | ( | uv_loop_t * | loop, |
uv_udp_t * | handle, | ||
uv_udp_send_t * | req | ||
) |
Definition at line 564 of file udp.c.
References assert(), DECREASE_PENDING_REQ_COUNT, err, GET_REQ_SOCK_ERROR, handle, loop, req, REQ_SUCCESS, UNREGISTER_HANDLE_REQ, and uv_translate_sys_error().
Referenced by uv_process_reqs().
void uv_signal_close | ( | uv_loop_t * | loop, |
uv_signal_t * | handle | ||
) |
Definition at line 262 of file signal.c.
References handle, loop, uv__handle_closing, uv_signal_stop(), and uv_want_endgame().
Referenced by uv_close().
void uv_signal_endgame | ( | uv_loop_t * | loop, |
uv_signal_t * | handle | ||
) |
Definition at line 272 of file signal.c.
References assert(), handle, uv__handle_close, UV_HANDLE_CLOSED, and UV_HANDLE_CLOSING.
Referenced by uv_process_endgames().
void uv_signals_init | ( | void | ) |
Definition at line 42 of file signal.c.
References TRUE, uv__signal_control_handler(), and uv__signal_lock.
Referenced by uv_init().
int uv_stdio_pipe_server | ( | uv_loop_t * | loop, |
uv_pipe_t * | handle, | ||
DWORD | access, | ||
char * | name, | ||
size_t | nameSize | ||
) |
Definition at line 205 of file pipe.c.
References access, err, error(), handle, HANDLE, INVALID_HANDLE_VALUE, loop, NULL, uv_pipe_connection_init(), and uv_unique_pipe_name().
Referenced by uv__create_stdio_pipe_pair().
Definition at line 657 of file tcp.c.
References AF_INET, AF_INET6, assert(), err, loop, NULL, req, uv_connection_init(), UV_HANDLE_BOUND, UV_HANDLE_CLOSING, UV_HANDLE_IPV6, UV_HANDLE_READABLE, UV_HANDLE_TCP_ACCEPT_STATE_CHANGING, UV_HANDLE_TCP_SINGLE_ACCEPT, UV_HANDLE_WRITABLE, uv_simultaneous_server_accepts, uv_tcp_queue_accept(), and uv_tcp_set_socket().
Referenced by uv_accept().
Definition at line 1426 of file tcp.c.
References DECREASE_ACTIVE_COUNT, i, loop, NULL, req, SD_SEND, uv__handle_closing, UV_HANDLE_LISTENING, UV_HANDLE_READ_PENDING, UV_HANDLE_READABLE, UV_HANDLE_READING, UV_HANDLE_SHARED_TCP_SOCKET, UV_HANDLE_TCP_SOCKET_CLOSED, UV_HANDLE_WRITABLE, uv_simultaneous_server_accepts, uv_tcp_try_cancel_io(), and uv_want_endgame().
Referenced by uv_close().
Definition at line 208 of file tcp.c.
References assert(), DECREASE_PENDING_REQ_COUNT, err, handle, i, INVALID_HANDLE_VALUE, loop, NULL, req, SD_SEND, UNREGISTER_HANDLE_REQ, uv__free(), uv__handle_close, UV_HANDLE_CLOSED, UV_HANDLE_CLOSING, UV_HANDLE_CONNECTION, UV_HANDLE_EMULATE_IOCP, UV_HANDLE_TCP_SOCKET_CLOSED, uv_simultaneous_server_accepts, and uv_translate_sys_error().
Referenced by uv_process_endgames().
int uv_tcp_listen | ( | uv_tcp_t * | handle, |
int | backlog, | ||
uv_connection_cb | cb | ||
) |
Definition at line 328 of file tcp.c.
References assert(), cb, err, handle, i, INCREASE_ACTIVE_COUNT, INVALID_HANDLE_VALUE, listen, loop, NULL, req, uv__malloc(), uv_addr_ip4_any_, uv_fatal_error(), uv_get_acceptex_function(), UV_HANDLE_BOUND, UV_HANDLE_EMULATE_IOCP, UV_HANDLE_LISTENING, UV_HANDLE_READING, UV_HANDLE_SHARED_TCP_SOCKET, UV_HANDLE_TCP_SINGLE_ACCEPT, UV_REQ_INIT, uv_simultaneous_server_accepts, uv_tcp_queue_accept(), and uv_tcp_try_bind().
int uv_tcp_read_start | ( | uv_tcp_t * | handle, |
uv_alloc_cb | alloc_cb, | ||
uv_read_cb | read_cb | ||
) |
Definition at line 726 of file tcp.c.
References handle, INCREASE_ACTIVE_COUNT, loop, NULL, uv_fatal_error(), UV_HANDLE_EMULATE_IOCP, UV_HANDLE_READ_PENDING, UV_HANDLE_READING, and uv_tcp_queue_read().
Referenced by uv_read_start().
int uv_tcp_write | ( | uv_loop_t * | loop, |
uv_write_t * | req, | ||
uv_tcp_t * | handle, | ||
const uv_buf_t | bufs[], | ||
unsigned int | nbufs, | ||
uv_write_cb | cb | ||
) |
Definition at line 901 of file tcp.c.
References bufs, bytes, cb, DWORD, handle, HANDLE, INVALID_HANDLE_VALUE, loop, memset(), NULL, post_write_completion(), REGISTER_HANDLE_REQ, req, SET_REQ_ERROR, uv__count_bufs(), uv_fatal_error(), UV_HANDLE_EMULATE_IOCP, uv_insert_pending_req(), UV_REQ_INIT, UV_SUCCEEDED_WITH_IOCP, and UV_SUCCEEDED_WITHOUT_IOCP.
Referenced by uv_write().
Definition at line 1249 of file core.c.
References ERROR_ELEVATION_REQUIRED, and ERROR_SYMLINK_NOT_SUPPORTED.
Referenced by uv__getsockpeername(), uv__socket_sockopt(), and uv_loop_init().
void uv_tty_close | ( | uv_tty_t * | handle | ) |
Definition at line 2249 of file tty.c.
References assert(), close, handle, INVALID_HANDLE_VALUE, uv__handle_closing, UV_HANDLE_READABLE, UV_HANDLE_READING, UV_HANDLE_WRITABLE, uv_tty_read_stop(), and uv_want_endgame().
Referenced by uv_close().
Definition at line 2270 of file tty.c.
References assert(), DECREASE_PENDING_REQ_COUNT, handle, loop, NULL, UNREGISTER_HANDLE_REQ, uv__handle_close, UV_HANDLE_CLOSED, UV_HANDLE_CLOSING, and UV_HANDLE_TTY_READABLE.
Referenced by uv_process_endgames().
int uv_tty_read_start | ( | uv_tty_t * | handle, |
uv_alloc_cb | alloc_cb, | ||
uv_read_cb | read_cb | ||
) |
Definition at line 1018 of file tty.c.
References handle, INCREASE_ACTIVE_COUNT, loop, SET_REQ_SUCCESS, UV_HANDLE_READ_PENDING, UV_HANDLE_READING, UV_HANDLE_TTY_READABLE, uv_insert_pending_req(), and uv_tty_queue_read().
Referenced by uv_read_start(), and uv_tty_set_mode().
Definition at line 1054 of file tty.c.
References DECREASE_ACTIVE_COUNT, DWORD, err, handle, memset(), uv__cancel_read_console(), UV_HANDLE_CANCELLATION_PENDING, UV_HANDLE_READ_PENDING, UV_HANDLE_READING, and UV_HANDLE_TTY_RAW.
Referenced by uv_read_stop(), uv_tty_close(), and uv_tty_set_mode().
int uv_tty_write | ( | uv_loop_t * | loop, |
uv_write_t * | req, | ||
uv_tty_t * | handle, | ||
const uv_buf_t | bufs[], | ||
unsigned int | nbufs, | ||
uv_write_cb | cb | ||
) |
Definition at line 2182 of file tty.c.
References bufs, cb, DWORD, error(), handle, loop, REGISTER_HANDLE_REQ, req, SET_REQ_ERROR, SET_REQ_SUCCESS, uv_insert_pending_req(), UV_REQ_INIT, and uv_tty_write_bufs().
Referenced by uv_write().
Definition at line 170 of file udp.c.
References handle, loop, uv__handle_closing, uv_udp_recv_stop(), and uv_want_endgame().
Referenced by uv_close().
Definition at line 183 of file udp.c.
References assert(), handle, uv__handle_close, UV_HANDLE_CLOSED, and UV_HANDLE_CLOSING.
Referenced by uv_process_endgames().
void uv_winapi_init | ( | void | ) |
Definition at line 49 of file winapi.c.
References NULL, pGetQueuedCompletionStatusEx, pNtDeviceIoControlFile, pNtQueryDirectoryFile, pNtQueryInformationFile, pNtQueryInformationProcess, pNtQuerySystemInformation, pNtQueryVolumeInformationFile, pNtSetInformationFile, pPowerRegisterSuspendResumeNotification, pRtlGetVersion, pRtlNtStatusToDosError, pSetWinEventHook, and uv_fatal_error().
Referenced by uv_init().
void uv_winsock_init | ( | void | ) |
Definition at line 78 of file winsock.c.
References AF_INET, AF_INET6, int, SOCK_STREAM, socket, SOL_SOCKET, uv_addr_ip4_any_, uv_addr_ip6_any_, uv_fatal_error(), uv_ip4_addr(), uv_ip6_addr(), uv_tcp_non_ifs_lsp_ipv4, and uv_tcp_non_ifs_lsp_ipv6.
Referenced by uv_init().
int WSAAPI uv_wsarecv_workaround | ( | SOCKET | socket, |
WSABUF * | buffers, | ||
DWORD | buffer_count, | ||
DWORD * | bytes, | ||
DWORD * | flags, | ||
WSAOVERLAPPED * | overlapped, | ||
LPWSAOVERLAPPED_COMPLETION_ROUTINE | completion_routine | ||
) |
Definition at line 270 of file winsock.c.
References AFD_OVERLAPPED, bytes, DWORD, error(), flags, HANDLE, if(), info(), _IO_STATUS_BLOCK::Information, IOCTL_AFD_RECEIVE, NULL, pNtDeviceIoControlFile, _IO_STATUS_BLOCK::Pointer, socket, status, _IO_STATUS_BLOCK::Status, STATUS_BUFFER_OVERFLOW, STATUS_PENDING, STATUS_RECEIVE_EXPEDITED, STATUS_RECEIVE_PARTIAL, STATUS_RECEIVE_PARTIAL_EXPEDITED, STATUS_SUCCESS, TDI_RECEIVE_NORMAL, TDI_RECEIVE_PARTIAL, TDI_RECEIVE_PEEK, and uv_ntstatus_to_winsock_error().
Referenced by uv_udp_set_socket().
int WSAAPI uv_wsarecvfrom_workaround | ( | SOCKET | socket, |
WSABUF * | buffers, | ||
DWORD | buffer_count, | ||
DWORD * | bytes, | ||
DWORD * | flags, | ||
struct sockaddr * | addr, | ||
int * | addr_len, | ||
WSAOVERLAPPED * | overlapped, | ||
LPWSAOVERLAPPED_COMPLETION_ROUTINE | completion_routine | ||
) |
Definition at line 364 of file winsock.c.
References addr, AFD_OVERLAPPED, bytes, DWORD, error(), flags, HANDLE, if(), info(), _IO_STATUS_BLOCK::Information, IOCTL_AFD_RECEIVE_DATAGRAM, NULL, pNtDeviceIoControlFile, _IO_STATUS_BLOCK::Pointer, socket, status, _IO_STATUS_BLOCK::Status, STATUS_BUFFER_OVERFLOW, STATUS_PENDING, STATUS_RECEIVE_EXPEDITED, STATUS_RECEIVE_PARTIAL, STATUS_RECEIVE_PARTIAL_EXPEDITED, STATUS_SUCCESS, TDI_RECEIVE_NORMAL, TDI_RECEIVE_PARTIAL, TDI_RECEIVE_PEEK, and uv_ntstatus_to_winsock_error().
Referenced by uv_udp_set_socket().
const char* syscall |
Definition at line 270 of file internal.h.
Referenced by linux_kill_thread(), resolve_syscalls(), uv__close_nocancel(), uv__dup3(), uv__fs_copy_file_range(), uv__getrandom(), uv__preadv(), uv__pwritev(), uv__random_sysctl(), uv__recvmmsg(), uv__sendmmsg(), uv__statx(), and uv_fatal_error().
|
extern |
Definition at line 31 of file winsock.c.
Referenced by uv__udp_connect(), uv__udp_recv_start(), uv__udp_send(), uv__udp_set_membership4(), uv__udp_set_source_membership4(), uv__udp_try_send(), uv_tcp_listen(), uv_tcp_try_connect(), and uv_winsock_init().
|
extern |
Definition at line 31 of file winsock.c.
Referenced by uv__convert_to_localhost_if_unspecified(), uv__udp_connect(), uv__udp_send(), uv__udp_set_membership6(), uv__udp_set_source_membership6(), uv__udp_try_send(), uv_tcp_try_connect(), and uv_winsock_init().
|
extern |
Definition at line 30 of file winsock.c.
Referenced by uv_tcp_set_socket(), uv_tcp_try_cancel_io(), and uv_winsock_init().
|
extern |
Definition at line 31 of file winsock.c.
Referenced by uv_tcp_set_socket(), uv_tcp_try_cancel_io(), and uv_winsock_init().