22 #ifndef UV_WIN_INTERNAL_H_
23 #define UV_WIN_INTERNAL_H_
26 #include "../uv-common.h"
33 # define INLINE __inline
34 # define UV_THREAD_LOCAL __declspec( thread )
36 # define INLINE inline
37 # define UV_THREAD_LOCAL __thread
45 #define UV_BEGIN_DISABLE_CRT_ASSERT() \
47 int uv__saved_crt_assert_enabled = uv__crt_assert_enabled; \
48 uv__crt_assert_enabled = FALSE;
51 #define UV_END_DISABLE_CRT_ASSERT() \
52 uv__crt_assert_enabled = uv__saved_crt_assert_enabled; \
56 #define UV_BEGIN_DISABLE_CRT_ASSERT()
57 #define UV_END_DISABLE_CRT_ASSERT()
119 char*
name,
size_t nameSize);
317 LPWSAOVERLAPPED_COMPLETION_ROUTINE completion_routine);
320 int* addr_len, WSAOVERLAPPED *overlapped,
321 LPWSAOVERLAPPED_COMPLETION_ROUTINE completion_routine);
static mcore_handle handle
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec req
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd socket
void uv_fatal_error(const int errorno, const char *syscall)
static static fork const void static count static fd const char const char static newpath char char char static envp time_t static t const char static mode static whence const char static dir time_t static t unsigned static seconds const char struct utimbuf static buf static inc pid
static static fork const void static count static fd const char static mode const char static pathname const char static path const char static dev const char static group static getpid static getuid void void static data static pause access
static const char struct stat static buf struct stat static buf static vhangup int options
static const char struct stat static buf struct stat static buf static vhangup int status
static static fork const void static count static fd const char static mode const char static pathname const char static path const char static dev const char static group static getpid static getuid void void static data static pause const char static mode static sync const char const char static newpath const char static pathname unsigned long static filedes void static end_data_segment signum
static struct sockaddr static addrlen static backlog const void static flags void flags
WSAPROTOCOL_INFOW socket_info
int uv_pipe_listen(uv_pipe_t *handle, int backlog, uv_connection_cb cb)
uint64_t uv__hrtime(uv_clocktype_t type)
int uv__getsockpeername(const uv_handle_t *handle, uv__peersockfunc func, struct sockaddr *name, int *namelen)
int uv_tcp_listen(uv_tcp_t *tcp, int backlog, uv_connection_cb cb)
int uv__getpwuid_r(uv_passwd_t *pwd)
int(* uv__peersockfunc)(int, struct sockaddr *, socklen_t *)
UV_THREAD_LOCAL int uv__crt_assert_enabled
void uv_fs_event_endgame(uv_loop_t *loop, uv_fs_event_t *handle)
__declspec(noreturn) void uv_fatal_error(const int errorno
void uv_pipe_close(uv_loop_t *loop, uv_pipe_t *handle)
void uv_tcp_endgame(uv_loop_t *loop, uv_tcp_t *handle)
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)
struct sockaddr_in uv_addr_ip4_any_
void uv_process_close(uv_loop_t *loop, uv_process_t *handle)
void uv_poll_endgame(uv_loop_t *loop, uv_poll_t *handle)
void uv_signal_close(uv_loop_t *loop, uv_signal_t *handle)
void uv__stdio_noinherit(BYTE *buffer)
int uv_stdio_pipe_server(uv_loop_t *loop, uv_pipe_t *handle, DWORD access, char *name, size_t nameSize)
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)
void uv_loop_watcher_endgame(uv_loop_t *loop, uv_handle_t *handle)
void uv_pipe_endgame(uv_loop_t *loop, uv_pipe_t *handle)
int WSAAPI uv_wsarecv_workaround(SOCKET socket, WSABUF *buffers, DWORD buffer_count, DWORD *bytes, DWORD *flags, WSAOVERLAPPED *overlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE completion_routine)
void uv__stdio_destroy(BYTE *buffer)
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)
void uv__pipe_read_stop(uv_pipe_t *handle)
int uv__tcp_try_write(uv_tcp_t *handle, const uv_buf_t bufs[], unsigned int nbufs)
uv__ipc_socket_xfer_type_t
@ UV__IPC_SOCKET_XFER_NONE
@ UV__IPC_SOCKET_XFER_TCP_CONNECTION
@ UV__IPC_SOCKET_XFER_TCP_SERVER
void uv_signal_endgame(uv_loop_t *loop, uv_signal_t *handle)
void uv_process_poll_req(uv_loop_t *loop, uv_poll_t *handle, uv_req_t *req)
int uv__convert_utf16_to_utf8(const WCHAR *utf16, int utf16len, char **utf8)
int uv_tty_read_stop(uv_tty_t *handle)
void uv_process_async_wakeup_req(uv_loop_t *loop, uv_async_t *handle, uv_req_t *req)
void uv_process_pipe_read_req(uv_loop_t *loop, uv_pipe_t *handle, uv_req_t *req)
void uv__fs_poll_endgame(uv_loop_t *loop, uv_fs_poll_t *handle)
void uv_process_pipe_write_req(uv_loop_t *loop, uv_pipe_t *handle, uv_write_t *req)
void uv_process_pipe_shutdown_req(uv_loop_t *loop, uv_pipe_t *handle, uv_shutdown_t *req)
void uv_tty_endgame(uv_loop_t *loop, uv_tty_t *handle)
BOOL uv_get_connectex_function(SOCKET socket, LPFN_CONNECTEX *target)
int uv__signal_dispatch(int signum)
int WSAAPI uv_msafd_poll(SOCKET socket, AFD_POLL_INFO *info_in, AFD_POLL_INFO *info_out, OVERLAPPED *overlapped)
void uv_process_tty_write_req(uv_loop_t *loop, uv_tty_t *handle, uv_write_t *req)
WORD uv__stdio_size(BYTE *buffer)
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)
void uv_process_tty_connect_req(uv_loop_t *loop, uv_tty_t *handle, uv_connect_t *req)
void uv_process_tcp_connect_req(uv_loop_t *loop, uv_tcp_t *handle, uv_connect_t *req)
int uv_tcp_non_ifs_lsp_ipv4
int uv__stdio_create(uv_loop_t *loop, const uv_process_options_t *options, BYTE **buffer_ptr)
void uv_tcp_close(uv_loop_t *loop, uv_tcp_t *tcp)
int uv_poll_close(uv_loop_t *loop, uv_poll_t *handle)
void uv_process_tty_accept_req(uv_loop_t *loop, uv_tty_t *handle, uv_req_t *raw_req)
void uv_udp_close(uv_loop_t *loop, uv_udp_t *handle)
int uv_tcp_read_start(uv_tcp_t *handle, uv_alloc_cb alloc_cb, uv_read_cb read_cb)
int uv__tty_try_write(uv_tty_t *handle, const uv_buf_t bufs[], unsigned int nbufs)
void uv_process_endgame(uv_loop_t *loop, uv_process_t *handle)
void uv_winapi_init(void)
void uv__init_detect_system_wakeup(void)
void uv_prepare_invoke(uv_loop_t *loop)
void uv_process_udp_recv_req(uv_loop_t *loop, uv_udp_t *handle, uv_req_t *req)
int uv_pipe_read_start(uv_pipe_t *handle, uv_alloc_cb alloc_cb, uv_read_cb read_cb)
int uv_tcp_non_ifs_lsp_ipv6
void uv_process_proc_exit(uv_loop_t *loop, uv_process_t *handle)
void uv_process_tcp_write_req(uv_loop_t *loop, uv_tcp_t *handle, uv_write_t *req)
int uv_tcp_accept(uv_tcp_t *server, uv_tcp_t *client)
int uv_pipe_accept(uv_pipe_t *server, uv_stream_t *client)
void uv_udp_endgame(uv_loop_t *loop, uv_udp_t *handle)
void uv_check_invoke(uv_loop_t *loop)
BOOL uv_get_acceptex_function(SOCKET socket, LPFN_ACCEPTEX *target)
void uv_tty_close(uv_tty_t *handle)
void uv_process_pipe_accept_req(uv_loop_t *loop, uv_pipe_t *handle, uv_req_t *raw_req)
void uv_process_udp_send_req(uv_loop_t *loop, uv_udp_t *handle, uv_udp_send_t *req)
void uv_winsock_init(void)
void uv_process_signal_req(uv_loop_t *loop, uv_signal_t *handle, uv_req_t *req)
int uv__convert_utf8_to_utf16(const char *utf8, int utf8len, WCHAR **utf16)
struct sockaddr_in6 uv_addr_ip6_any_
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)
void uv_async_close(uv_loop_t *loop, uv_async_t *handle)
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)
int uv_tty_read_start(uv_tty_t *handle, uv_alloc_cb alloc_cb, uv_read_cb read_cb)
int uv_translate_sys_error(int sys_errno)
int uv_ntstatus_to_winsock_error(NTSTATUS status)
int uv__stdio_verify(BYTE *buffer, WORD size)
void uv__wake_all_loops(void)
void uv_process_tcp_read_req(uv_loop_t *loop, uv_tcp_t *handle, uv_req_t *req)
int uv__random_rtlgenrandom(void *buf, size_t buflen)
void uv_console_init(void)
void uv_signals_init(void)
HANDLE uv__stdio_handle(BYTE *buffer, int fd)
void uv_pipe_cleanup(uv_loop_t *loop, uv_pipe_t *handle)
void uv_process_fs_event_req(uv_loop_t *loop, uv_req_t *req, uv_fs_event_t *handle)
void uv_fs_event_close(uv_loop_t *loop, uv_fs_event_t *handle)
void uv_process_pipe_connect_req(uv_loop_t *loop, uv_pipe_t *handle, uv_connect_t *req)
void uv_async_endgame(uv_loop_t *loop, uv_async_t *handle)
void uv_idle_invoke(uv_loop_t *loop)
void uv_process_tcp_accept_req(uv_loop_t *loop, uv_tcp_t *handle, uv_req_t *req)
void uv_process_tty_read_req(uv_loop_t *loop, uv_tty_t *handle, uv_req_t *req)
static char bufs[4][128]
Buffers for uint64_to_str() and uint64_to_nicestr()
void(* uv_write_cb)(uv_write_t *req, int status)
void(* uv_connection_cb)(uv_stream_t *server, int status)
void(* uv_read_cb)(uv_stream_t *stream, ssize_t nread, const uv_buf_t *buf)
void(* uv_alloc_cb)(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf)
BOOL(PASCAL * LPFN_ACCEPTEX)(SOCKET sListenSocket, SOCKET sAcceptSocket, PVOID lpOutputBuffer, DWORD dwReceiveDataLength, DWORD dwLocalAddressLength, DWORD dwRemoteAddressLength, LPDWORD lpdwBytesReceived, LPOVERLAPPED lpOverlapped)
BOOL(PASCAL * LPFN_CONNECTEX)(SOCKET s, const struct sockaddr *name, int namelen, PVOID lpSendBuffer, DWORD dwSendDataLength, LPDWORD lpdwBytesSent, LPOVERLAPPED lpOverlapped)
static const z80_opcode fd[]