NCBI C++ ToolKit
Macros | Typedefs
sysdep_private.h File Reference
#include <config.h>
#include <inttypes.h>
+ Include dependency graph for sysdep_private.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define TDS_ADDITIONAL_SPACE   16
 
#define TDS_NOSIGNAL   0L
 
#define sock_errno   errno
 
#define set_sock_errno(err)   do { errno = (err); } while(0)
 
#define sock_strerror(n)   strerror(n)
 
#define sock_strerror_free(s)   do {} while(0)
 
#define TDSSOCK_EINTR   EINTR
 
#define TDSSOCK_EINPROGRESS   EINPROGRESS
 
#define TDSSOCK_ETIMEDOUT   ETIMEDOUT
 
#define TDSSOCK_WOULDBLOCK(e)   ((e)==EAGAIN)
 
#define TDSSOCK_ECONNRESET   ECONNRESET
 
#define INITSOCKET()   0
 
#define DONESOCKET()   do { } while(0)
 
#define READSOCKET(s, b, l)   read((s), (b), (l))
 
#define WRITESOCKET(s, b, l)   write((s), (b), (l))
 
#define CLOSESOCKET(s)   close((s))
 
#define IOCTLSOCKET(s, b, l)   ioctl((s), (b), (l))
 
#define SOCKLEN_T   socklen_t
 
#define INVALID_SOCKET   -1
 
#define TDS_IS_SOCKET_INVALID(s)   ((s) < 0)
 
#define tds_accept   accept
 
#define tds_getpeername   getpeername
 
#define tds_getsockopt   getsockopt
 
#define tds_getsockname   getsockname
 
#define tds_recvfrom   recvfrom
 
#define TDS_SDIR_SEPARATOR   "/"
 
#define PRId64   TDS_I64_PREFIX "d"
 
#define PRIu64   TDS_I64_PREFIX "u"
 
#define PRIx64   TDS_I64_PREFIX "x"
 

Typedefs

typedef int TDS_SYS_SOCKET
 

Macro Definition Documentation

◆ CLOSESOCKET

#define CLOSESOCKET (   s)    close((s))

Definition at line 183 of file sysdep_private.h.

◆ DONESOCKET

#define DONESOCKET ( )    do { } while(0)

Definition at line 163 of file sysdep_private.h.

◆ INITSOCKET

#define INITSOCKET ( )    0

Definition at line 159 of file sysdep_private.h.

◆ INVALID_SOCKET

#define INVALID_SOCKET   -1

Definition at line 196 of file sysdep_private.h.

◆ IOCTLSOCKET

#define IOCTLSOCKET (   s,
  b,
 
)    ioctl((s), (b), (l))

Definition at line 187 of file sysdep_private.h.

◆ PRId64

#define PRId64   TDS_I64_PREFIX "d"

Definition at line 256 of file sysdep_private.h.

◆ PRIu64

#define PRIu64   TDS_I64_PREFIX "u"

Definition at line 259 of file sysdep_private.h.

◆ PRIx64

#define PRIx64   TDS_I64_PREFIX "x"

Definition at line 262 of file sysdep_private.h.

◆ READSOCKET

#define READSOCKET (   s,
  b,
 
)    read((s), (b), (l))

Definition at line 170 of file sysdep_private.h.

◆ set_sock_errno

#define set_sock_errno (   err)    do { errno = (err); } while(0)

Definition at line 126 of file sysdep_private.h.

◆ sock_errno

#define sock_errno   errno

Definition at line 122 of file sysdep_private.h.

◆ sock_strerror

#define sock_strerror (   n)    strerror(n)

Definition at line 130 of file sysdep_private.h.

◆ sock_strerror_free

#define sock_strerror_free (   s)    do {} while(0)

Definition at line 131 of file sysdep_private.h.

◆ SOCKLEN_T

#define SOCKLEN_T   socklen_t

Definition at line 191 of file sysdep_private.h.

◆ tds_accept

#define tds_accept   accept

Definition at line 203 of file sysdep_private.h.

◆ TDS_ADDITIONAL_SPACE

#define TDS_ADDITIONAL_SPACE   16

Definition at line 26 of file sysdep_private.h.

◆ tds_getpeername

#define tds_getpeername   getpeername

Definition at line 204 of file sysdep_private.h.

◆ tds_getsockname

#define tds_getsockname   getsockname

Definition at line 206 of file sysdep_private.h.

◆ tds_getsockopt

#define tds_getsockopt   getsockopt

Definition at line 205 of file sysdep_private.h.

◆ TDS_IS_SOCKET_INVALID

#define TDS_IS_SOCKET_INVALID (   s)    ((s) < 0)

Definition at line 197 of file sysdep_private.h.

◆ TDS_NOSIGNAL

#define TDS_NOSIGNAL   0L

Definition at line 31 of file sysdep_private.h.

◆ tds_recvfrom

#define tds_recvfrom   recvfrom

Definition at line 207 of file sysdep_private.h.

◆ TDS_SDIR_SEPARATOR

#define TDS_SDIR_SEPARATOR   "/"

Definition at line 248 of file sysdep_private.h.

◆ TDSSOCK_ECONNRESET

#define TDSSOCK_ECONNRESET   ECONNRESET

Definition at line 155 of file sysdep_private.h.

◆ TDSSOCK_EINPROGRESS

#define TDSSOCK_EINPROGRESS   EINPROGRESS

Definition at line 139 of file sysdep_private.h.

◆ TDSSOCK_EINTR

#define TDSSOCK_EINTR   EINTR

Definition at line 135 of file sysdep_private.h.

◆ TDSSOCK_ETIMEDOUT

#define TDSSOCK_ETIMEDOUT   ETIMEDOUT

Definition at line 143 of file sysdep_private.h.

◆ TDSSOCK_WOULDBLOCK

#define TDSSOCK_WOULDBLOCK (   e)    ((e)==EAGAIN)

Definition at line 150 of file sysdep_private.h.

◆ WRITESOCKET

#define WRITESOCKET (   s,
  b,
 
)    write((s), (b), (l))

Definition at line 178 of file sysdep_private.h.

Typedef Documentation

◆ TDS_SYS_SOCKET

Definition at line 195 of file sysdep_private.h.

Modified on Wed Jun 19 17:01:03 2024 by modify_doxy.py rev. 669887