ELinks 0.18.0
|
#include "osdep/system.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/types.h>
#include "elinks.h"
#include "config/options.h"
#include "intl/libintl.h"
#include "osdep/osdep.h"
#include "osdep/win32/overrides.h"
#include "osdep/win32/vt100.h"
#include "osdep/win32/win32.h"
#include "terminal/mouse.h"
#include "terminal/terminal.h"
Macros | |
#define | WIN32_OVERRIDES_SELF |
#define | SOCK_SHIFT 1024 |
#define | TRACE(m...) |
Enumerations | |
enum | fd_types { FDT_FILE = 1 , FDT_SOCKET , FDT_TERMINAL , FDT_PIPE } |
Functions | |
static enum fd_types | what_fd_type (int *fd) |
static int | console_key_read (const KEY_EVENT_RECORD *ker, char *buf, int max) |
static int | console_read (HANDLE hnd, void *buf, int max, INPUT_RECORD *irp) |
static int | console_peek (HANDLE hnd) |
int | win32_write (int fd, const void *buf, unsigned len) |
int | win32_read (int fd, void *buf, unsigned len) |
int | win32_close (int fd) |
int | win32_ioctl (int fd, long option, int *flag) |
int | win32_socket (int pf, int type, int protocol) |
int | win32_connect (int fd, struct sockaddr *addr, int addr_len) |
int | win32_getpeername (int fd, struct sockaddr *addr, int *addr_len) |
int | win32_getsockname (int fd, struct sockaddr *addr, int *addr_len) |
int | win32_accept (int fd, struct sockaddr *addr, int *addr_len) |
int | win32_listen (int fd, int backlog) |
int | win32_bind (int fd, struct sockaddr *addr, int addr_len) |
int | win32_getsockopt (int fd, int level, int option, void *optval, int *optlen) |
int | win32_pipe (int *fds) |
static const char * | timeval_str (const struct timeval *tv) |
static char * | fd_set_str (char *buf, size_t len, const fd_set *fd, int num_fds) |
static void | select_dump (int num_fds, const fd_set *rd, const fd_set *wr, const fd_set *ex) |
static int | select_read (int fd, struct fd_set *rd) |
static int | select_one_loop (int num_fds, struct fd_set *rd, struct fd_set *wr, struct fd_set *ex) |
int | win32_select (int num_fds, struct fd_set *rd, struct fd_set *wr, struct fd_set *ex, struct timeval *tv) |
static char * | get_winsock_error (int err, char *buf, size_t len) |
char * | win32_strerror (int err) |
int | win32_send (int sockfd, const void *buf, unsigned len, int flags) |
int | win32_recv (int sockfd, void *buf, unsigned len, int flags) |
Variables | |
static BOOL | console_nbio = FALSE |
static const char * | keymap [] |
static const char * | keymap_2 [] |
#define SOCK_SHIFT 1024 |
#define TRACE | ( | m... | ) |
#define WIN32_OVERRIDES_SELF |
enum fd_types |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
int win32_accept | ( | int | fd, |
struct sockaddr * | addr, | ||
int * | addr_len ) |
int win32_bind | ( | int | fd, |
struct sockaddr * | addr, | ||
int | addr_len ) |
int win32_close | ( | int | fd | ) |
int win32_connect | ( | int | fd, |
struct sockaddr * | addr, | ||
int | addr_len ) |
int win32_getpeername | ( | int | fd, |
struct sockaddr * | addr, | ||
int * | addr_len ) |
int win32_getsockname | ( | int | fd, |
struct sockaddr * | addr, | ||
int * | addr_len ) |
int win32_getsockopt | ( | int | fd, |
int | level, | ||
int | option, | ||
void * | optval, | ||
int * | optlen ) |
int win32_ioctl | ( | int | fd, |
long | option, | ||
int * | flag ) |
int win32_listen | ( | int | fd, |
int | backlog ) |
int win32_pipe | ( | int * | fds | ) |
int win32_read | ( | int | fd, |
void * | buf, | ||
unsigned | len ) |
int win32_recv | ( | int | sockfd, |
void * | buf, | ||
unsigned | len, | ||
int | flags ) |
int win32_select | ( | int | num_fds, |
struct fd_set * | rd, | ||
struct fd_set * | wr, | ||
struct fd_set * | ex, | ||
struct timeval * | tv ) |
int win32_send | ( | int | sockfd, |
const void * | buf, | ||
unsigned | len, | ||
int | flags ) |
int win32_socket | ( | int | pf, |
int | type, | ||
int | protocol ) |
char * win32_strerror | ( | int | err | ) |
int win32_write | ( | int | fd, |
const void * | buf, | ||
unsigned | len ) |
|
static |
|
static |
|
static |