Rizin
unix-like reverse engineering framework and cli tools
win.h File Reference
#include <winsock2.h>
#include <mswsock.h>
#include <ws2tcpip.h>
#include <windows.h>
#include <process.h>
#include <signal.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <stdint.h>
#include "uv/tree.h"
#include "uv/threadpool.h"

Go to the source code of this file.

Classes

struct  _AFD_POLL_HANDLE_INFO
 
struct  _AFD_POLL_INFO
 
struct  uv_buf_t
 
union  uv_cond_t
 
union  uv_rwlock_t
 
struct  uv_barrier_t
 
struct  uv_key_t
 
struct  uv_once_s
 
struct  uv__dirent_s
 
struct  uv_lib_t
 

Macros

#define _WIN32_WINNT   0x0600
 
#define SSIZE_MAX   INTPTR_MAX
 
#define _SSIZE_T_
 
#define _SSIZE_T_DEFINED
 
#define LOCALE_INVARIANT   0x007f
 
#define MAX_PIPENAME_LEN   256
 
#define S_IFLNK   0xA000
 
#define SIGHUP   1
 
#define SIGKILL   9
 
#define SIGWINCH   28
 
#define NSIG   SIGWINCH + 1
 
#define SIGABRT_COMPAT   6
 
#define WSAID_ACCEPTEX
 
#define WSAID_CONNECTEX
 
#define WSAID_GETACCEPTEXSOCKADDRS
 
#define WSAID_DISCONNECTEX
 
#define WSAID_TRANSMITFILE
 
#define UV_MSAFD_PROVIDER_COUNT   3
 
#define UV_ONCE_INIT   { 0, NULL }
 
#define UV_DIR_PRIVATE_FIELDS
 
#define HAVE_DIRENT_TYPES
 
#define UV__DT_DIR   UV_DIRENT_DIR
 
#define UV__DT_FILE   UV_DIRENT_FILE
 
#define UV__DT_LINK   UV_DIRENT_LINK
 
#define UV__DT_FIFO   UV_DIRENT_FIFO
 
#define UV__DT_SOCKET   UV_DIRENT_SOCKET
 
#define UV__DT_CHAR   UV_DIRENT_CHAR
 
#define UV__DT_BLOCK   UV_DIRENT_BLOCK
 
#define UV_DYNAMIC   FAR WINAPI
 
#define UV_LOOP_PRIVATE_FIELDS
 
#define UV_REQ_TYPE_PRIVATE
 
#define UV_REQ_PRIVATE_FIELDS
 
#define UV_WRITE_PRIVATE_FIELDS
 
#define UV_CONNECT_PRIVATE_FIELDS    /* empty */
 
#define UV_SHUTDOWN_PRIVATE_FIELDS    /* empty */
 
#define UV_UDP_SEND_PRIVATE_FIELDS    /* empty */
 
#define UV_PRIVATE_REQ_TYPES
 
#define uv_stream_connection_fields
 
#define uv_stream_server_fields    uv_connection_cb connection_cb;
 
#define UV_STREAM_PRIVATE_FIELDS
 
#define uv_tcp_server_fields
 
#define uv_tcp_connection_fields
 
#define UV_TCP_PRIVATE_FIELDS
 
#define UV_UDP_PRIVATE_FIELDS
 
#define uv_pipe_server_fields
 
#define uv_pipe_connection_fields
 
#define UV_PIPE_PRIVATE_FIELDS
 
#define UV_TTY_PRIVATE_FIELDS
 
#define UV_POLL_PRIVATE_FIELDS
 
#define UV_TIMER_PRIVATE_FIELDS
 
#define UV_ASYNC_PRIVATE_FIELDS
 
#define UV_PREPARE_PRIVATE_FIELDS
 
#define UV_CHECK_PRIVATE_FIELDS
 
#define UV_IDLE_PRIVATE_FIELDS
 
#define UV_HANDLE_PRIVATE_FIELDS
 
#define UV_GETADDRINFO_PRIVATE_FIELDS
 
#define UV_GETNAMEINFO_PRIVATE_FIELDS
 
#define UV_PROCESS_PRIVATE_FIELDS
 
#define UV_FS_PRIVATE_FIELDS
 
#define UV_WORK_PRIVATE_FIELDS    struct uv__work work_req;
 
#define UV_FS_EVENT_PRIVATE_FIELDS
 
#define UV_SIGNAL_PRIVATE_FIELDS
 
#define F_OK   0
 
#define R_OK   4
 
#define W_OK   2
 
#define X_OK   1
 
#define UV_FS_O_APPEND   _O_APPEND
 
#define UV_FS_O_CREAT   _O_CREAT
 
#define UV_FS_O_EXCL   _O_EXCL
 
#define UV_FS_O_FILEMAP   0x20000000
 
#define UV_FS_O_RANDOM   _O_RANDOM
 
#define UV_FS_O_RDONLY   _O_RDONLY
 
#define UV_FS_O_RDWR   _O_RDWR
 
#define UV_FS_O_SEQUENTIAL   _O_SEQUENTIAL
 
#define UV_FS_O_SHORT_LIVED   _O_SHORT_LIVED
 
#define UV_FS_O_TEMPORARY   _O_TEMPORARY
 
#define UV_FS_O_TRUNC   _O_TRUNC
 
#define UV_FS_O_WRONLY   _O_WRONLY
 
#define UV_FS_O_DIRECT   0x02000000 /* FILE_FLAG_NO_BUFFERING */
 
#define UV_FS_O_DIRECTORY   0
 
#define UV_FS_O_DSYNC   0x04000000 /* FILE_FLAG_WRITE_THROUGH */
 
#define UV_FS_O_EXLOCK   0x10000000 /* EXCLUSIVE SHARING MODE */
 
#define UV_FS_O_NOATIME   0
 
#define UV_FS_O_NOCTTY   0
 
#define UV_FS_O_NOFOLLOW   0
 
#define UV_FS_O_NONBLOCK   0
 
#define UV_FS_O_SYMLINK   0
 
#define UV_FS_O_SYNC   0x08000000 /* FILE_FLAG_WRITE_THROUGH */
 

Typedefs

typedef intptr_t ssize_t
 
typedef BOOL(PASCAL * LPFN_ACCEPTEX) (SOCKET sListenSocket, SOCKET sAcceptSocket, PVOID lpOutputBuffer, DWORD dwReceiveDataLength, DWORD dwLocalAddressLength, DWORD dwRemoteAddressLength, LPDWORD lpdwBytesReceived, LPOVERLAPPED lpOverlapped)
 
typedef BOOL(PASCAL * LPFN_CONNECTEX) (SOCKET s, const struct sockaddr *name, int namelen, PVOID lpSendBuffer, DWORD dwSendDataLength, LPDWORD lpdwBytesSent, LPOVERLAPPED lpOverlapped)
 
typedef void(PASCAL * LPFN_GETACCEPTEXSOCKADDRS) (PVOID lpOutputBuffer, DWORD dwReceiveDataLength, DWORD dwLocalAddressLength, DWORD dwRemoteAddressLength, LPSOCKADDR *LocalSockaddr, LPINT LocalSockaddrLength, LPSOCKADDR *RemoteSockaddr, LPINT RemoteSockaddrLength)
 
typedef BOOL(PASCAL * LPFN_DISCONNECTEX) (SOCKET hSocket, LPOVERLAPPED lpOverlapped, DWORD dwFlags, DWORD reserved)
 
typedef BOOL(PASCAL * LPFN_TRANSMITFILE) (SOCKET hSocket, HANDLE hFile, DWORD nNumberOfBytesToWrite, DWORD nNumberOfBytesPerSend, LPOVERLAPPED lpOverlapped, LPTRANSMIT_FILE_BUFFERS lpTransmitBuffers, DWORD dwFlags)
 
typedef PVOID RTL_SRWLOCK
 
typedef RTL_SRWLOCK SRWLOCK
 
typedef RTL_SRWLOCKPSRWLOCK
 
typedef int(WSAAPI * LPFN_WSARECV) (SOCKET socket, LPWSABUF buffers, DWORD buffer_count, LPDWORD bytes, LPDWORD flags, LPWSAOVERLAPPED overlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE completion_routine)
 
typedef int(WSAAPI * LPFN_WSARECVFROM) (SOCKET socket, LPWSABUF buffers, DWORD buffer_count, LPDWORD bytes, LPDWORD flags, struct sockaddr *addr, LPINT addr_len, LPWSAOVERLAPPED overlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE completion_routine)
 
typedef LONG NTSTATUS
 
typedef NTSTATUSPNTSTATUS
 
typedef PVOID CONDITION_VARIABLE
 
typedef PVOIDPCONDITION_VARIABLE
 
typedef struct _AFD_POLL_HANDLE_INFO AFD_POLL_HANDLE_INFO
 
typedef struct _AFD_POLL_HANDLE_INFOPAFD_POLL_HANDLE_INFO
 
typedef struct _AFD_POLL_INFO AFD_POLL_INFO
 
typedef struct _AFD_POLL_INFOPAFD_POLL_INFO
 
typedef struct uv_buf_t uv_buf_t
 
typedef int uv_file
 
typedef SOCKET uv_os_sock_t
 
typedef HANDLE uv_os_fd_t
 
typedef int uv_pid_t
 
typedef HANDLE uv_thread_t
 
typedef HANDLE uv_sem_t
 
typedef CRITICAL_SECTION uv_mutex_t
 
typedef struct uv_once_s uv_once_t
 
typedef unsigned char uv_uid_t
 
typedef unsigned char uv_gid_t
 
typedef struct uv__dirent_s uv__dirent_t
 

Macro Definition Documentation

◆ _SSIZE_T_

#define _SSIZE_T_

Definition at line 29 of file win.h.

◆ _SSIZE_T_DEFINED

#define _SSIZE_T_DEFINED

Definition at line 30 of file win.h.

◆ _WIN32_WINNT

#define _WIN32_WINNT   0x0600

Definition at line 23 of file win.h.

◆ F_OK

#define F_OK   0

Definition at line 655 of file win.h.

◆ HAVE_DIRENT_TYPES

#define HAVE_DIRENT_TYPES

Definition at line 309 of file win.h.

◆ LOCALE_INVARIANT

#define LOCALE_INVARIANT   0x007f

Definition at line 44 of file win.h.

◆ MAX_PIPENAME_LEN

#define MAX_PIPENAME_LEN   256

Definition at line 65 of file win.h.

◆ NSIG

#define NSIG   SIGWINCH + 1

Definition at line 95 of file win.h.

◆ R_OK

#define R_OK   4

Definition at line 658 of file win.h.

◆ S_IFLNK

#define S_IFLNK   0xA000

Definition at line 68 of file win.h.

◆ SIGABRT_COMPAT

#define SIGABRT_COMPAT   6

Definition at line 101 of file win.h.

◆ SIGHUP

#define SIGHUP   1

Definition at line 86 of file win.h.

◆ SIGKILL

#define SIGKILL   9

Definition at line 87 of file win.h.

◆ SIGWINCH

#define SIGWINCH   28

Definition at line 88 of file win.h.

◆ SSIZE_MAX

#define SSIZE_MAX   INTPTR_MAX

Definition at line 28 of file win.h.

◆ UV__DT_BLOCK

#define UV__DT_BLOCK   UV_DIRENT_BLOCK

Definition at line 316 of file win.h.

◆ UV__DT_CHAR

#define UV__DT_CHAR   UV_DIRENT_CHAR

Definition at line 315 of file win.h.

◆ UV__DT_DIR

#define UV__DT_DIR   UV_DIRENT_DIR

Definition at line 310 of file win.h.

◆ UV__DT_FIFO

#define UV__DT_FIFO   UV_DIRENT_FIFO

Definition at line 313 of file win.h.

◆ UV__DT_FILE

#define UV__DT_FILE   UV_DIRENT_FILE

Definition at line 311 of file win.h.

◆ UV__DT_LINK

#define UV__DT_LINK   UV_DIRENT_LINK

Definition at line 312 of file win.h.

◆ UV__DT_SOCKET

#define UV__DT_SOCKET   UV_DIRENT_SOCKET

Definition at line 314 of file win.h.

◆ UV_ASYNC_PRIVATE_FIELDS

#define UV_ASYNC_PRIVATE_FIELDS
Value:
struct uv_req_s async_req; \
uv_async_cb async_cb; \
/* char to avoid alignment issues */ \
char volatile async_sent;
Definition: uv.h:407

Definition at line 551 of file win.h.

◆ UV_CHECK_PRIVATE_FIELDS

#define UV_CHECK_PRIVATE_FIELDS
Value:
uv_check_t* check_prev; \
uv_check_t* check_next; \
uv_check_cb check_cb;
Definition: uv.h:824

Definition at line 562 of file win.h.

◆ UV_CONNECT_PRIVATE_FIELDS

#define UV_CONNECT_PRIVATE_FIELDS    /* empty */

Definition at line 389 of file win.h.

◆ UV_DIR_PRIVATE_FIELDS

#define UV_DIR_PRIVATE_FIELDS
Value:
HANDLE dir_handle; \
WIN32_FIND_DATAW find_data; \
BOOL need_find_call;
DWORD * HANDLE

Definition at line 304 of file win.h.

◆ UV_DYNAMIC

#define UV_DYNAMIC   FAR WINAPI

Definition at line 319 of file win.h.

◆ UV_FS_EVENT_PRIVATE_FIELDS

#define UV_FS_EVENT_PRIVATE_FIELDS
Value:
struct uv_fs_event_req_s { \
UV_REQ_FIELDS \
} req; \
HANDLE dir_handle; \
int req_pending; \
uv_fs_event_cb cb; \
WCHAR* filew; \
WCHAR* short_filew; \
WCHAR* dirw; \
char* buffer;
struct buffer buffer
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
Definition: sflib.h:128
static const char * cb[]
Definition: z80_tab.h:176

Definition at line 637 of file win.h.

◆ UV_FS_O_APPEND

#define UV_FS_O_APPEND   _O_APPEND

Definition at line 668 of file win.h.

◆ UV_FS_O_CREAT

#define UV_FS_O_CREAT   _O_CREAT

Definition at line 669 of file win.h.

◆ UV_FS_O_DIRECT

#define UV_FS_O_DIRECT   0x02000000 /* FILE_FLAG_NO_BUFFERING */

Definition at line 682 of file win.h.

◆ UV_FS_O_DIRECTORY

#define UV_FS_O_DIRECTORY   0

Definition at line 683 of file win.h.

◆ UV_FS_O_DSYNC

#define UV_FS_O_DSYNC   0x04000000 /* FILE_FLAG_WRITE_THROUGH */

Definition at line 684 of file win.h.

◆ UV_FS_O_EXCL

#define UV_FS_O_EXCL   _O_EXCL

Definition at line 670 of file win.h.

◆ UV_FS_O_EXLOCK

#define UV_FS_O_EXLOCK   0x10000000 /* EXCLUSIVE SHARING MODE */

Definition at line 685 of file win.h.

◆ UV_FS_O_FILEMAP

#define UV_FS_O_FILEMAP   0x20000000

Definition at line 671 of file win.h.

◆ UV_FS_O_NOATIME

#define UV_FS_O_NOATIME   0

Definition at line 686 of file win.h.

◆ UV_FS_O_NOCTTY

#define UV_FS_O_NOCTTY   0

Definition at line 687 of file win.h.

◆ UV_FS_O_NOFOLLOW

#define UV_FS_O_NOFOLLOW   0

Definition at line 688 of file win.h.

◆ UV_FS_O_NONBLOCK

#define UV_FS_O_NONBLOCK   0

Definition at line 689 of file win.h.

◆ UV_FS_O_RANDOM

#define UV_FS_O_RANDOM   _O_RANDOM

Definition at line 672 of file win.h.

◆ UV_FS_O_RDONLY

#define UV_FS_O_RDONLY   _O_RDONLY

Definition at line 673 of file win.h.

◆ UV_FS_O_RDWR

#define UV_FS_O_RDWR   _O_RDWR

Definition at line 674 of file win.h.

◆ UV_FS_O_SEQUENTIAL

#define UV_FS_O_SEQUENTIAL   _O_SEQUENTIAL

Definition at line 675 of file win.h.

◆ UV_FS_O_SHORT_LIVED

#define UV_FS_O_SHORT_LIVED   _O_SHORT_LIVED

Definition at line 676 of file win.h.

◆ UV_FS_O_SYMLINK

#define UV_FS_O_SYMLINK   0

Definition at line 690 of file win.h.

◆ UV_FS_O_SYNC

#define UV_FS_O_SYNC   0x08000000 /* FILE_FLAG_WRITE_THROUGH */

Definition at line 691 of file win.h.

◆ UV_FS_O_TEMPORARY

#define UV_FS_O_TEMPORARY   _O_TEMPORARY

Definition at line 677 of file win.h.

◆ UV_FS_O_TRUNC

#define UV_FS_O_TRUNC   _O_TRUNC

Definition at line 678 of file win.h.

◆ UV_FS_O_WRONLY

#define UV_FS_O_WRONLY   _O_WRONLY

Definition at line 679 of file win.h.

◆ UV_FS_PRIVATE_FIELDS

#define UV_FS_PRIVATE_FIELDS
Value:
struct uv__work work_req; \
int flags; \
DWORD sys_errno_; \
union { \
/* TODO: remove me in 0.9. */ \
WCHAR* pathw; \
int fd; \
} file; \
union { \
struct { \
int mode; \
WCHAR* new_pathw; \
int file_flags; \
int fd_out; \
unsigned int nbufs; \
uv_buf_t* bufs; \
int64_t offset; \
uv_buf_t bufsml[4]; \
} info; \
struct { \
double atime; \
double mtime; \
} time; \
} fs;
RzBinInfo * info(RzBinFile *bf)
Definition: bin_ne.c:86
voidpf uLong offset
Definition: ioapi.h:144
const char int mode
Definition: ioapi.h:137
static static fork const void static count static fd const char const char static newpath char char char static envp time
Definition: sflib.h:42
static struct sockaddr static addrlen static backlog const void static flags void flags
Definition: sfsocketcall.h:123
static char bufs[4][128]
Buffers for uint64_to_str() and uint64_to_nicestr()
Definition: util.c:18
static const z80_opcode fd[]
Definition: z80_tab.h:997
static int file
Definition: z80asm.c:58

Definition at line 608 of file win.h.

◆ UV_GETADDRINFO_PRIVATE_FIELDS

#define UV_GETADDRINFO_PRIVATE_FIELDS
Value:
struct uv__work work_req; \
uv_getaddrinfo_cb getaddrinfo_cb; \
void* alloc; \
WCHAR* node; \
WCHAR* service; \
/* The addrinfoW field is used to store a pointer to the hints, and */ \
/* later on to store the result of GetAddrInfoW. The final result will */ \
/* be converted to struct addrinfo* and stored in the addrinfo field. */ \
struct addrinfoW* addrinfow; \
struct addrinfo* addrinfo; \
int retcode;

Definition at line 576 of file win.h.

◆ UV_GETNAMEINFO_PRIVATE_FIELDS

#define UV_GETNAMEINFO_PRIVATE_FIELDS
Value:
struct uv__work work_req; \
uv_getnameinfo_cb getnameinfo_cb; \
struct sockaddr_storage storage; \
int flags; \
char host[NI_MAXHOST]; \
char service[NI_MAXSERV]; \
int retcode;
#define NI_MAXHOST
Definition: unix.h:77
#define NI_MAXSERV
Definition: unix.h:81

Definition at line 589 of file win.h.

◆ UV_HANDLE_PRIVATE_FIELDS

#define UV_HANDLE_PRIVATE_FIELDS
Value:
uv_handle_t* endgame_next; \
unsigned int flags;

Definition at line 572 of file win.h.

◆ UV_IDLE_PRIVATE_FIELDS

#define UV_IDLE_PRIVATE_FIELDS
Value:
uv_idle_t* idle_prev; \
uv_idle_t* idle_next; \
uv_idle_cb idle_cb;
Definition: uv.h:834
void idle_cb(uv_idle_t *handle)
Definition: main.c:6

Definition at line 567 of file win.h.

◆ UV_LOOP_PRIVATE_FIELDS

#define UV_LOOP_PRIVATE_FIELDS

Definition at line 325 of file win.h.

◆ UV_MSAFD_PROVIDER_COUNT

#define UV_MSAFD_PROVIDER_COUNT   3

Definition at line 219 of file win.h.

◆ UV_ONCE_INIT

#define UV_ONCE_INIT   { 0, NULL }

Definition at line 288 of file win.h.

◆ uv_pipe_connection_fields

#define uv_pipe_connection_fields
Value:
uv_timer_t* eof_timer; \
uv_write_t dummy; /* TODO: retained for ABI compat; remove this in v2.x. */ \
DWORD ipc_remote_pid; \
union { \
uint32_t payload_remaining; \
uint64_t dummy; /* TODO: retained for ABI compat; remove this in v2.x. */ \
} ipc_data_frame; \
void* ipc_xfer_queue[2]; \
int ipc_xfer_queue_length; \
uv_write_t* non_overlapped_writes_tail; \
CRITICAL_SECTION readfile_thread_lock; \
volatile HANDLE readfile_thread_handle;
Definition: uv.h:860

Definition at line 472 of file win.h.

◆ UV_PIPE_PRIVATE_FIELDS

#define UV_PIPE_PRIVATE_FIELDS
Value:
WCHAR* name; \
union { \
struct { uv_pipe_server_fields } serv; \
struct { uv_pipe_connection_fields } conn; \
} pipe;
static mcore_handle handle
Definition: asm_mcore.c:8
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 pipe
Definition: sflib.h:73
const char * name
Definition: op.c:541
#define uv_pipe_server_fields
Definition: win.h:467
#define uv_pipe_connection_fields
Definition: win.h:472

Definition at line 486 of file win.h.

◆ uv_pipe_server_fields

#define uv_pipe_server_fields
Value:
int pending_instances; \
uv_pipe_accept_t* accept_reqs; \
uv_pipe_accept_t* pending_accepts;

Definition at line 467 of file win.h.

◆ UV_POLL_PRIVATE_FIELDS

#define UV_POLL_PRIVATE_FIELDS
Value:
SOCKET socket; \
/* Used in fast mode */ \
SOCKET peer_socket; \
AFD_POLL_INFO afd_poll_info_1; \
AFD_POLL_INFO afd_poll_info_2; \
/* Used in fast and slow mode. */ \
uv_req_t poll_req_1; \
uv_req_t poll_req_2; \
unsigned char submitted_events_1; \
unsigned char submitted_events_2; \
unsigned char mask_events_1; \
unsigned char mask_events_2; \
unsigned char events;
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
Definition: sflib.h:79

Definition at line 528 of file win.h.

◆ UV_PREPARE_PRIVATE_FIELDS

#define UV_PREPARE_PRIVATE_FIELDS
Value:
uv_prepare_t* prepare_prev; \
uv_prepare_t* prepare_next; \
uv_prepare_cb prepare_cb;

Definition at line 557 of file win.h.

◆ UV_PRIVATE_REQ_TYPES

#define UV_PRIVATE_REQ_TYPES
Value:
typedef struct uv_pipe_accept_s { \
UV_REQ_FIELDS \
HANDLE pipeHandle; \
struct uv_pipe_accept_s* next_pending; \
} uv_pipe_accept_t; \
\
typedef struct uv_tcp_accept_s { \
UV_REQ_FIELDS \
SOCKET accept_socket; \
char accept_buffer[sizeof(struct sockaddr_storage) * 2 + 32]; \
HANDLE event_handle; \
HANDLE wait_handle; \
struct uv_tcp_accept_s* next_pending; \
} uv_tcp_accept_t; \
\
typedef struct uv_read_s { \
UV_REQ_FIELDS \
HANDLE event_handle; \
HANDLE wait_handle; \
} uv_read_t;

Definition at line 398 of file win.h.

◆ UV_PROCESS_PRIVATE_FIELDS

#define UV_PROCESS_PRIVATE_FIELDS
Value:
struct uv_process_exit_s { \
UV_REQ_FIELDS \
} exit_req; \
BYTE* child_stdio_buffer; \
int exit_signal; \
HANDLE wait_handle; \
HANDLE process_handle; \
volatile char exit_cb_pending;
static volatile sig_atomic_t exit_signal
Definition: signals.c:24

Definition at line 598 of file win.h.

◆ UV_REQ_PRIVATE_FIELDS

#define UV_REQ_PRIVATE_FIELDS
Value:
union { \
/* Used by I/O operations */ \
struct { \
OVERLAPPED overlapped; \
size_t queued_bytes; \
} io; \
} u; \
struct uv_req_s* next_req;

Definition at line 373 of file win.h.

◆ UV_REQ_TYPE_PRIVATE

#define UV_REQ_TYPE_PRIVATE
Value:
/* TODO: remove the req suffix */ \
UV_ACCEPT, \
UV_FS_EVENT_REQ, \
UV_POLL_REQ, \
UV_PROCESS_EXIT, \
UV_READ, \
UV_UDP_RECV, \
UV_WAKEUP, \
UV_SIGNAL_REQ,

Definition at line 362 of file win.h.

◆ UV_SHUTDOWN_PRIVATE_FIELDS

#define UV_SHUTDOWN_PRIVATE_FIELDS    /* empty */

Definition at line 392 of file win.h.

◆ UV_SIGNAL_PRIVATE_FIELDS

#define UV_SIGNAL_PRIVATE_FIELDS
Value:
RB_ENTRY(uv_signal_s) tree_entry; \
struct uv_req_s signal_req; \
unsigned long pending_signum;
#define RB_ENTRY(type)
Definition: tree.h:310

Definition at line 649 of file win.h.

◆ uv_stream_connection_fields

#define uv_stream_connection_fields
Value:
unsigned int write_reqs_pending; \
uv_shutdown_t* shutdown_req;

Definition at line 420 of file win.h.

◆ UV_STREAM_PRIVATE_FIELDS

#define UV_STREAM_PRIVATE_FIELDS
Value:
unsigned int reqs_pending; \
int activecnt; \
uv_read_t read_req; \
union { \
struct { uv_stream_connection_fields } conn; \
struct { uv_stream_server_fields } serv; \
} stream;
voidpf stream
Definition: ioapi.h:138
uv_fs_t read_req
Definition: main.c:10
#define uv_stream_server_fields
Definition: win.h:424
#define uv_stream_connection_fields
Definition: win.h:420

Definition at line 427 of file win.h.

◆ uv_stream_server_fields

#define uv_stream_server_fields    uv_connection_cb connection_cb;

Definition at line 424 of file win.h.

◆ uv_tcp_connection_fields

#define uv_tcp_connection_fields
Value:
uv_buf_t read_buffer; \
LPFN_CONNECTEX func_connectex;
Definition: unix.h:123

Definition at line 442 of file win.h.

◆ UV_TCP_PRIVATE_FIELDS

#define UV_TCP_PRIVATE_FIELDS
Value:
SOCKET socket; \
int delayed_error; \
union { \
struct { uv_tcp_server_fields } serv; \
struct { uv_tcp_connection_fields } conn; \
} tcp;
#define uv_tcp_server_fields
Definition: win.h:436
#define uv_tcp_connection_fields
Definition: win.h:442

Definition at line 446 of file win.h.

◆ uv_tcp_server_fields

#define uv_tcp_server_fields
Value:
uv_tcp_accept_t* accept_reqs; \
unsigned int processed_accepts; \
uv_tcp_accept_t* pending_accepts; \
LPFN_ACCEPTEX func_acceptex;

Definition at line 436 of file win.h.

◆ UV_TIMER_PRIVATE_FIELDS

#define UV_TIMER_PRIVATE_FIELDS
Value:
void* heap_node[3]; \
int unused; \
uint64_t timeout; \
uint64_t repeat; \
uint64_t start_id; \
uv_timer_cb timer_cb;
static void timer_cb(uv_timer_t *timer)
Definition: fs-poll.c:172
static void repeat(struct parse *, sopno, int, int)
Definition: regcomp.c:1155
uv_timer_t timeout
Definition: main.c:9

Definition at line 543 of file win.h.

◆ UV_TTY_PRIVATE_FIELDS

#define UV_TTY_PRIVATE_FIELDS
Value:
union { \
struct { \
/* Used for readable TTY handles */ \
/* TODO: remove me in v2.x. */ \
HANDLE unused_; \
uv_buf_t read_line_buffer; \
HANDLE read_raw_wait; \
/* Fields used for translating win keystrokes into vt100 characters */ \
char last_key[8]; \
unsigned char last_key_offset; \
unsigned char last_key_len; \
WCHAR last_utf16_high_surrogate; \
INPUT_RECORD last_input_record; \
} rd; \
struct { \
/* Used for writable TTY handles */ \
/* utf8-to-utf16 conversion state */ \
unsigned int utf8_codepoint; \
unsigned char utf8_bytes_left; \
/* eol conversion state */ \
unsigned char previous_eol; \
/* ansi parser state */ \
unsigned short ansi_parser_state; \
unsigned char ansi_csi_argc; \
unsigned short ansi_csi_argv[4]; \
COORD saved_position; \
WORD saved_attributes; \
} wr; \
} tty;
#define rd()
uv_tty_t tty
Definition: main.c:7

Definition at line 496 of file win.h.

◆ UV_UDP_PRIVATE_FIELDS

#define UV_UDP_PRIVATE_FIELDS
Value:
SOCKET socket; \
unsigned int reqs_pending; \
int activecnt; \
uv_req_t recv_req; \
uv_buf_t recv_buffer; \
struct sockaddr_storage recv_from; \
int recv_from_len; \
uv_udp_recv_cb recv_cb; \
uv_alloc_cb alloc_cb; \
LPFN_WSARECV func_wsarecv; \
LPFN_WSARECVFROM func_wsarecvfrom;

Definition at line 454 of file win.h.

◆ UV_UDP_SEND_PRIVATE_FIELDS

#define UV_UDP_SEND_PRIVATE_FIELDS    /* empty */

Definition at line 395 of file win.h.

◆ UV_WORK_PRIVATE_FIELDS

#define UV_WORK_PRIVATE_FIELDS    struct uv__work work_req;

Definition at line 634 of file win.h.

◆ UV_WRITE_PRIVATE_FIELDS

#define UV_WRITE_PRIVATE_FIELDS
Value:
int coalesced; \
uv_buf_t write_buffer; \
HANDLE event_handle; \
HANDLE wait_handle;

Definition at line 383 of file win.h.

◆ W_OK

#define W_OK   2

Definition at line 661 of file win.h.

◆ WSAID_ACCEPTEX

#define WSAID_ACCEPTEX
Value:
{0xb5367df1, 0xcbac, 0x11cf, \
{0x95, 0xca, 0x00, 0x80, 0x5f, 0x48, 0xa1, 0x92}}

Definition at line 109 of file win.h.

◆ WSAID_CONNECTEX

#define WSAID_CONNECTEX
Value:
{0x25a207b9, 0xddf3, 0x4660, \
{0x8e, 0xe9, 0x76, 0xe5, 0x8c, 0x74, 0x06, 0x3e}}

Definition at line 113 of file win.h.

◆ WSAID_DISCONNECTEX

#define WSAID_DISCONNECTEX
Value:
{0x7fda2e11, 0x8630, 0x436f, \
{0xa0, 0x31, 0xf5, 0x36, 0xa6, 0xee, 0xc1, 0x57}}

Definition at line 121 of file win.h.

◆ WSAID_GETACCEPTEXSOCKADDRS

#define WSAID_GETACCEPTEXSOCKADDRS
Value:
{0xb5367df2, 0xcbac, 0x11cf, \
{0x95, 0xca, 0x00, 0x80, 0x5f, 0x48, 0xa1, 0x92}}

Definition at line 117 of file win.h.

◆ WSAID_TRANSMITFILE

#define WSAID_TRANSMITFILE
Value:
{0xb5367df0, 0xcbac, 0x11cf, \
{0x95, 0xca, 0x00, 0x80, 0x5f, 0x48, 0xa1, 0x92}}

Definition at line 125 of file win.h.

◆ X_OK

#define X_OK   1

Definition at line 664 of file win.h.

Typedef Documentation

◆ AFD_POLL_HANDLE_INFO

◆ AFD_POLL_INFO

typedef struct _AFD_POLL_INFO AFD_POLL_INFO

◆ CONDITION_VARIABLE

Definition at line 203 of file win.h.

◆ LPFN_ACCEPTEX

typedef BOOL(PASCAL * LPFN_ACCEPTEX) (SOCKET sListenSocket, SOCKET sAcceptSocket, PVOID lpOutputBuffer, DWORD dwReceiveDataLength, DWORD dwLocalAddressLength, DWORD dwRemoteAddressLength, LPDWORD lpdwBytesReceived, LPOVERLAPPED lpOverlapped)

Definition at line 129 of file win.h.

◆ LPFN_CONNECTEX

typedef BOOL(PASCAL * LPFN_CONNECTEX) (SOCKET s, const struct sockaddr *name, int namelen, PVOID lpSendBuffer, DWORD dwSendDataLength, LPDWORD lpdwBytesSent, LPOVERLAPPED lpOverlapped)

Definition at line 139 of file win.h.

◆ LPFN_DISCONNECTEX

typedef BOOL(PASCAL * LPFN_DISCONNECTEX) (SOCKET hSocket, LPOVERLAPPED lpOverlapped, DWORD dwFlags, DWORD reserved)

Definition at line 158 of file win.h.

◆ LPFN_GETACCEPTEXSOCKADDRS

typedef void(PASCAL * LPFN_GETACCEPTEXSOCKADDRS) (PVOID lpOutputBuffer, DWORD dwReceiveDataLength, DWORD dwLocalAddressLength, DWORD dwRemoteAddressLength, LPSOCKADDR *LocalSockaddr, LPINT LocalSockaddrLength, LPSOCKADDR *RemoteSockaddr, LPINT RemoteSockaddrLength)

Definition at line 148 of file win.h.

◆ LPFN_TRANSMITFILE

typedef BOOL(PASCAL * LPFN_TRANSMITFILE) (SOCKET hSocket, HANDLE hFile, DWORD nNumberOfBytesToWrite, DWORD nNumberOfBytesPerSend, LPOVERLAPPED lpOverlapped, LPTRANSMIT_FILE_BUFFERS lpTransmitBuffers, DWORD dwFlags)

Definition at line 164 of file win.h.

◆ LPFN_WSARECV

typedef int(WSAAPI* LPFN_WSARECV) (SOCKET socket, LPWSABUF buffers, DWORD buffer_count, LPDWORD bytes, LPDWORD flags, LPWSAOVERLAPPED overlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE completion_routine)

Definition at line 177 of file win.h.

◆ LPFN_WSARECVFROM

typedef int(WSAAPI* LPFN_WSARECVFROM) (SOCKET socket, LPWSABUF buffers, DWORD buffer_count, LPDWORD bytes, LPDWORD flags, struct sockaddr *addr, LPINT addr_len, LPWSAOVERLAPPED overlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE completion_routine)

Definition at line 186 of file win.h.

◆ NTSTATUS

__kernel_entry NTSTATUS

Definition at line 198 of file win.h.

◆ PAFD_POLL_HANDLE_INFO

◆ PAFD_POLL_INFO

typedef struct _AFD_POLL_INFO * PAFD_POLL_INFO

◆ PCONDITION_VARIABLE

Definition at line 203 of file win.h.

◆ PNTSTATUS

typedef NTSTATUS* PNTSTATUS

Definition at line 199 of file win.h.

◆ PSRWLOCK

typedef RTL_SRWLOCK * PSRWLOCK

Definition at line 174 of file win.h.

◆ RTL_SRWLOCK

typedef PVOID RTL_SRWLOCK

Definition at line 173 of file win.h.

◆ SRWLOCK

Definition at line 174 of file win.h.

◆ ssize_t

typedef intptr_t ssize_t

Definition at line 27 of file win.h.

◆ uv__dirent_t

typedef struct uv__dirent_s uv__dirent_t

◆ uv_buf_t

typedef struct uv_buf_t uv_buf_t

It should be possible to cast uv_buf_t[] to WSABUF[] see http://msdn.microsoft.com/en-us/library/ms741542(v=vs.85).aspx

◆ uv_file

typedef int uv_file

Definition at line 231 of file win.h.

◆ uv_gid_t

typedef unsigned char uv_gid_t

Definition at line 297 of file win.h.

◆ uv_mutex_t

typedef CRITICAL_SECTION uv_mutex_t

Definition at line 240 of file win.h.

◆ uv_once_t

typedef struct uv_once_s uv_once_t

◆ uv_os_fd_t

typedef HANDLE uv_os_fd_t

Definition at line 233 of file win.h.

◆ uv_os_sock_t

typedef SOCKET uv_os_sock_t

Definition at line 232 of file win.h.

◆ uv_pid_t

typedef int uv_pid_t

Definition at line 234 of file win.h.

◆ uv_sem_t

typedef HANDLE uv_sem_t

Definition at line 238 of file win.h.

◆ uv_thread_t

Definition at line 236 of file win.h.

◆ uv_uid_t

typedef unsigned char uv_uid_t

Definition at line 296 of file win.h.