NCBI C++ ToolKit
Macros | Typedefs
sysdep_private.h File Reference
#include <config.h>
#include "../impl/rename_ftds_tds.h"
#include <inttypes.h>
+ Include dependency graph for sysdep_private.h:

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 188 of file sysdep_private.h.

◆ DONESOCKET

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

Definition at line 168 of file sysdep_private.h.

◆ INITSOCKET

#define INITSOCKET ( )    0

Definition at line 164 of file sysdep_private.h.

◆ INVALID_SOCKET

#define INVALID_SOCKET   -1

Definition at line 201 of file sysdep_private.h.

◆ IOCTLSOCKET

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

Definition at line 192 of file sysdep_private.h.

◆ PRId64

#define PRId64   TDS_I64_PREFIX "d"

Definition at line 261 of file sysdep_private.h.

◆ PRIu64

#define PRIu64   TDS_I64_PREFIX "u"

Definition at line 264 of file sysdep_private.h.

◆ PRIx64

#define PRIx64   TDS_I64_PREFIX "x"

Definition at line 267 of file sysdep_private.h.

◆ READSOCKET

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

Definition at line 175 of file sysdep_private.h.

◆ set_sock_errno

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

Definition at line 131 of file sysdep_private.h.

◆ sock_errno

#define sock_errno   errno

Definition at line 127 of file sysdep_private.h.

◆ sock_strerror

#define sock_strerror (   n)    strerror(n)

Definition at line 135 of file sysdep_private.h.

◆ sock_strerror_free

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

Definition at line 136 of file sysdep_private.h.

◆ SOCKLEN_T

#define SOCKLEN_T   socklen_t

Definition at line 196 of file sysdep_private.h.

◆ tds_accept

#define tds_accept   accept

Definition at line 208 of file sysdep_private.h.

◆ TDS_ADDITIONAL_SPACE

#define TDS_ADDITIONAL_SPACE   16

Definition at line 27 of file sysdep_private.h.

◆ tds_getpeername

#define tds_getpeername   getpeername

Definition at line 209 of file sysdep_private.h.

◆ tds_getsockname

#define tds_getsockname   getsockname

Definition at line 211 of file sysdep_private.h.

◆ tds_getsockopt

#define tds_getsockopt   getsockopt

Definition at line 210 of file sysdep_private.h.

◆ TDS_IS_SOCKET_INVALID

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

Definition at line 202 of file sysdep_private.h.

◆ TDS_NOSIGNAL

#define TDS_NOSIGNAL   0L

Definition at line 32 of file sysdep_private.h.

◆ tds_recvfrom

#define tds_recvfrom   recvfrom

Definition at line 212 of file sysdep_private.h.

◆ TDS_SDIR_SEPARATOR

#define TDS_SDIR_SEPARATOR   "/"

Definition at line 253 of file sysdep_private.h.

◆ TDSSOCK_ECONNRESET

#define TDSSOCK_ECONNRESET   ECONNRESET

Definition at line 160 of file sysdep_private.h.

◆ TDSSOCK_EINPROGRESS

#define TDSSOCK_EINPROGRESS   EINPROGRESS

Definition at line 144 of file sysdep_private.h.

◆ TDSSOCK_EINTR

#define TDSSOCK_EINTR   EINTR

Definition at line 140 of file sysdep_private.h.

◆ TDSSOCK_ETIMEDOUT

#define TDSSOCK_ETIMEDOUT   ETIMEDOUT

Definition at line 148 of file sysdep_private.h.

◆ TDSSOCK_WOULDBLOCK

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

Definition at line 155 of file sysdep_private.h.

◆ WRITESOCKET

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

Definition at line 183 of file sysdep_private.h.

Typedef Documentation

◆ TDS_SYS_SOCKET

Definition at line 200 of file sysdep_private.h.

Modified on Wed Sep 04 15:05:22 2024 by modify_doxy.py rev. 669887