Fabcoin Core  0.16.2
P2P Digital Currency
Macros | Typedefs | Functions
compat.h File Reference
#include <sys/fcntl.h>
#include <sys/mman.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <net/if.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <ifaddrs.h>
#include <limits.h>
#include <netdb.h>
#include <unistd.h>
#include <errno.h>
Include dependency graph for compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WSAGetLastError()   errno
 
#define WSAEINVAL   EINVAL
 
#define WSAEALREADY   EALREADY
 
#define WSAEWOULDBLOCK   EWOULDBLOCK
 
#define WSAEMSGSIZE   EMSGSIZE
 
#define WSAEINTR   EINTR
 
#define WSAEINPROGRESS   EINPROGRESS
 
#define WSAEADDRINUSE   EADDRINUSE
 
#define WSAENOTSOCK   EBADF
 
#define INVALID_SOCKET   (SOCKET)(~0)
 
#define SOCKET_ERROR   -1
 
#define MAX_PATH   1024
 
#define PRIO_MAX   20
 
#define THREAD_PRIORITY_LOWEST   PRIO_MAX
 
#define THREAD_PRIORITY_BELOW_NORMAL   2
 
#define THREAD_PRIORITY_NORMAL   0
 
#define THREAD_PRIORITY_ABOVE_NORMAL   (-2)
 

Typedefs

typedef unsigned int SOCKET
 

Functions

size_t strnlen (const char *start, size_t max_len)
 

Macro Definition Documentation

#define INVALID_SOCKET   (SOCKET)(~0)

Definition at line 62 of file compat.h.

#define MAX_PATH   1024

Definition at line 72 of file compat.h.

#define PRIO_MAX   20

Definition at line 78 of file compat.h.

#define SOCKET_ERROR   -1

Definition at line 63 of file compat.h.

#define THREAD_PRIORITY_ABOVE_NORMAL   (-2)

Definition at line 83 of file compat.h.

#define THREAD_PRIORITY_BELOW_NORMAL   2

Definition at line 81 of file compat.h.

#define THREAD_PRIORITY_LOWEST   PRIO_MAX

Definition at line 80 of file compat.h.

#define THREAD_PRIORITY_NORMAL   0

Definition at line 82 of file compat.h.

#define WSAEADDRINUSE   EADDRINUSE

Definition at line 60 of file compat.h.

#define WSAEALREADY   EALREADY

Definition at line 55 of file compat.h.

#define WSAEINPROGRESS   EINPROGRESS

Definition at line 59 of file compat.h.

#define WSAEINTR   EINTR

Definition at line 58 of file compat.h.

#define WSAEINVAL   EINVAL

Definition at line 54 of file compat.h.

#define WSAEMSGSIZE   EMSGSIZE

Definition at line 57 of file compat.h.

#define WSAENOTSOCK   EBADF

Definition at line 61 of file compat.h.

#define WSAEWOULDBLOCK   EWOULDBLOCK

Definition at line 56 of file compat.h.

#define WSAGetLastError ( )    errno

Definition at line 53 of file compat.h.

Typedef Documentation

typedef unsigned int SOCKET

Definition at line 51 of file compat.h.

Function Documentation

size_t strnlen ( const char *  start,
size_t  max_len 
)

Definition at line 12 of file strnlen.cpp.

Here is the caller graph for this function: