ACE  6.2.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros
OS_NS_macros.h File Reference
#include "ace/config-all.h"

Macros

#define ACE_SOCKCALL_RETURN(OP, TYPE, FAILVALUE)
 
#define ACE_SOCKCALL(OP, TYPE, FAILVALUE, RESULT)
 
#define ACE_ADAPT_RETVAL(OP, RESULT)   ((RESULT = (OP)) == FALSE ? -1 : 0)
 
#define ACE_FAIL_RETURN(RESULT)
 
#define ACE_LOW_PART(X)   X
 
#define ACE_HIGH_PART(X)   0
 
#define ACE_COMBINE_PARTS(X, Y)   X
 

Detailed Description

Id:
OS_NS_macros.h 80826 2008-03-04 14:51:23Z wotte
Author
Douglas C. Schmidt schmi.nosp@m.dt@c.nosp@m.s.wus.nosp@m.tl.e.nosp@m.du
Jesper S. M|llerstoph.nosp@m.ph@d.nosp@m.iku.d.nosp@m.k
and a cast of thousands...

Originally in OS.h.

Macro Definition Documentation

#define ACE_ADAPT_RETVAL (   OP,
  RESULT 
)    ((RESULT = (OP)) == FALSE ? -1 : 0)
#define ACE_COMBINE_PARTS (   X,
 
)    X
#define ACE_FAIL_RETURN (   RESULT)
Value:
do { \
case ERROR_NOT_ENOUGH_MEMORY: errno = ENOMEM; break; \
case ERROR_FILE_EXISTS: errno = EEXIST; break; \
case ERROR_SHARING_VIOLATION: errno = EACCES; break; \
case ERROR_PATH_NOT_FOUND: errno = ENOENT; break; \
} \
return RESULT; } while (0)
int set_errno_to_last_error(void)
Definition: OS_NS_errno.inl:39
#define ACE_HIGH_PART (   X)    0
#define ACE_LOW_PART (   X)    X
#define ACE_SOCKCALL (   OP,
  TYPE,
  FAILVALUE,
  RESULT 
)
Value:
do { RESULT = (TYPE) OP; \
if (RESULT == FAILVALUE) { int ___ = ::WSAGetLastError (); errno = ___; RESULT = FAILVALUE; } \
} while (0)
#define ACE_SOCKCALL_RETURN (   OP,
  TYPE,
  FAILVALUE 
)
Value:
do { TYPE ace_result_ = (TYPE) OP; \
if (ace_result_ == FAILVALUE) { int ___ = ::WSAGetLastError (); errno = ___; return (TYPE) FAILVALUE; } else return ace_result_; \
} while (0)