OpenVPN
Macros | Typedefs | Functions
syshead.h File Reference
#include "compat.h"
#include <stdbool.h>
#include <windows.h>
#include <winsock2.h>
#include <tlhelp32.h>
#include <time.h>
#include <stdlib.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdarg.h>
#include <signal.h>
#include <limits.h>
#include <stdio.h>
#include <ctype.h>
#include <errno.h>
#include <string.h>
#include <naptypes.h>
#include <ntddndis.h>
#include <iphlpapi.h>
#include <wininet.h>
#include <shellapi.h>
#include <io.h>
#include <ws2tcpip.h>
Include dependency graph for syshead.h:

Go to the source code of this file.

Macros

#define likely(x)   (x)
 
#define unlikely(x)   (x)
 
#define sleep(x)   Sleep((x)*1000)
 
#define random   rand
 
#define srandom   srand
 
#define PASSTOS_CAPABILITY   0
 
#define EXTENDED_SOCKET_ERROR_CAPABILITY   0
 
#define ENABLE_IP_PKTINFO   0
 
#define SOL_IP   IPPROTO_IP
 
#define SYSLOG_CAPABILITY   0
 
#define O_BINARY   0
 
#define PATH_SEPARATOR   '\\'
 
#define PATH_SEPARATOR_STR   "\\"
 
#define SOCKET_UNDEFINED   (INVALID_SOCKET)
 
#define SOCKET_PRINTF   "%" PRIxPTR
 
#define PORT_SHARE   0
 
#define UNIX_SOCK_SUPPORT   0
 
#define PROXY_DIGEST_AUTH   1
 
#define ENABLE_CRYPTOAPI
 
#define POLL   0
 
#define EPOLL   0
 

Typedefs

typedef unsigned short sa_family_t
 
typedef SOCKET socket_descriptor_t
 

Functions

static int socket_defined (const socket_descriptor_t sd)
 

Macro Definition Documentation

◆ ENABLE_CRYPTOAPI

#define ENABLE_CRYPTOAPI

Definition at line 489 of file syshead.h.

◆ ENABLE_IP_PKTINFO

#define ENABLE_IP_PKTINFO   0

Definition at line 370 of file syshead.h.

◆ EPOLL

#define EPOLL   0

Definition at line 509 of file syshead.h.

◆ EXTENDED_SOCKET_ERROR_CAPABILITY

#define EXTENDED_SOCKET_ERROR_CAPABILITY   0

Definition at line 360 of file syshead.h.

◆ likely

#define likely (   x)    (x)

Definition at line 35 of file syshead.h.

◆ O_BINARY

#define O_BINARY   0

Definition at line 409 of file syshead.h.

◆ PASSTOS_CAPABILITY

#define PASSTOS_CAPABILITY   0

Definition at line 351 of file syshead.h.

◆ PATH_SEPARATOR

#define PATH_SEPARATOR   '\\'

Definition at line 416 of file syshead.h.

◆ PATH_SEPARATOR_STR

#define PATH_SEPARATOR_STR   "\\"

Definition at line 417 of file syshead.h.

◆ POLL

#define POLL   0

Definition at line 500 of file syshead.h.

◆ PORT_SHARE

#define PORT_SHARE   0

Definition at line 456 of file syshead.h.

◆ PROXY_DIGEST_AUTH

#define PROXY_DIGEST_AUTH   1

Definition at line 482 of file syshead.h.

◆ random

#define random   rand

Definition at line 44 of file syshead.h.

◆ sleep

#define sleep (   x)    Sleep((x)*1000)

Definition at line 43 of file syshead.h.

◆ SOCKET_PRINTF

#define SOCKET_PRINTF   "%" PRIxPTR

Definition at line 428 of file syshead.h.

◆ SOCKET_UNDEFINED

#define SOCKET_UNDEFINED   (INVALID_SOCKET)

Definition at line 427 of file syshead.h.

◆ SOL_IP

#define SOL_IP   IPPROTO_IP

Definition at line 378 of file syshead.h.

◆ srandom

#define srandom   srand

Definition at line 45 of file syshead.h.

◆ SYSLOG_CAPABILITY

#define SYSLOG_CAPABILITY   0

Definition at line 402 of file syshead.h.

◆ UNIX_SOCK_SUPPORT

#define UNIX_SOCK_SUPPORT   0

Definition at line 469 of file syshead.h.

◆ unlikely

#define unlikely (   x)    (x)

Definition at line 36 of file syshead.h.

Typedef Documentation

◆ sa_family_t

typedef unsigned short sa_family_t

Definition at line 385 of file syshead.h.

◆ socket_descriptor_t

typedef SOCKET socket_descriptor_t

Definition at line 429 of file syshead.h.

Function Documentation

◆ socket_defined()

static int socket_defined ( const socket_descriptor_t  sd)
inlinestatic