OS_NS_macros.h File Reference

#include "ace/config-all.h"

Include dependency graph for OS_NS_macros.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#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)


Detailed Description

OS_NS_macros.h,v 1.9 2006/05/30 10:57:22 jwillemsen Exp

Author:
Douglas C. Schmidt <schmidt@cs.wustl.edu>

Jesper S. M|ller<stophph@diku.dk>

and a cast of thousands...

Originally in OS.h.

Definition in file OS_NS_macros.h.


Define Documentation

#define ACE_ADAPT_RETVAL OP,
RESULT   )     ((RESULT = (OP)) == FALSE ? -1 : 0)
 

Definition at line 58 of file OS_NS_macros.h.

Referenced by ACE_OS::close(), ACE_OS::cond_broadcast(), ACE_OS::cond_destroy(), ACE_OS::cond_init(), ACE_OS::cond_signal(), ACE_OS::cond_timedwait(), ACE_OS::cond_wait(), ACE_OS::condattr_init(), ACE_OS::dlclose(), ACE_OS::event_destroy(), ACE_OS::event_pulse(), ACE_OS::event_reset(), ACE_OS::event_signal(), ACE_OS::flock_rdlock(), ACE_OS::flock_tryrdlock(), ACE_OS::flock_trywrlock(), ACE_OS::flock_unlock(), ACE_OS::flock_wrlock(), ACE_OS::fsync(), ACE_OS::ftruncate(), ACE_OS::getrusage(), ACE_OS::mkdir(), ACE_OS::msync(), ACE_OS::munmap(), ACE_OS::mutex_destroy(), ACE_OS::mutex_init(), ACE_OS::mutex_lock(), ACE_OS::mutex_trylock(), ACE_OS::mutex_unlock(), ACE_OS::pipe(), ACE_OS::pthread_sigmask(), ACE_OS::rmdir(), ACE_OS::rw_rdlock(), ACE_OS::rw_tryrdlock(), ACE_OS::rw_trywrlock(), ACE_OS::rw_trywrlock_upgrade(), ACE_OS::rw_unlock(), ACE_OS::rw_wrlock(), ACE_OS::rwlock_destroy(), ACE_OS::rwlock_init(), ACE_OS::sched_params(), ACE_OS::sema_destroy(), ACE_OS::sema_init(), ACE_OS::sema_post(), ACE_OS::sema_trywait(), ACE_OS::sema_wait(), ACE_OS::thr_cancel(), ACE_OS::thr_continue(), ACE_OS::thr_create(), ACE_OS::thr_getprio(), ACE_OS::thr_join(), ACE_OS::thr_kill(), ACE_OS::thr_min_stack(), ACE_OS::thr_setcancelstate(), ACE_OS::thr_setcanceltype(), ACE_OS::thr_setconcurrency(), ACE_OS::thr_setprio(), ACE_OS::thr_sigsetmask(), ACE_OS::thr_suspend(), ACE_OS::truncate(), and ACE_OS::unlink().

#define ACE_FAIL_RETURN RESULT   ) 
 

Value:

do { \
  switch (ACE_OS::set_errno_to_last_error ()) { \
  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)

Definition at line 61 of file OS_NS_macros.h.

Referenced by ACE_OS::cuserid(), ACE_OS::dup(), ACE_OS::event_init(), ACE_OS::ftruncate(), ACE_OS::lseek(), ACE_OS::mmap(), ACE_OS::mutex_init(), ACE_OS::open(), ACE_OS::read(), ACE_OS::rename(), ACE_OS::sema_init(), ACE_OS::thr_continue(), ACE_OS::thr_create(), ACE_OS::thr_getprio(), ACE_OS::thr_join(), ACE_OS::thr_suspend(), ACE_OS::truncate(), and ACE_OS::write().

#define ACE_SOCKCALL OP,
TYPE,
FAILVALUE,
RESULT   ) 
 

Value:

do { RESULT = (TYPE) OP; \
      if (RESULT == FAILVALUE) { int ___ = ::WSAGetLastError (); errno = ___; RESULT = FAILVALUE; } \
  } while (0)

Definition at line 33 of file OS_NS_macros.h.

Referenced by ACE_OS::getpeername(), ACE_OS::getsockname(), and ACE_OS::setsockopt().

#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)

Definition at line 29 of file OS_NS_macros.h.

Referenced by ACE_OS::accept(), ACE_OS::bind(), ACE_OS::closesocket(), ACE_OS::connect(), ACE_OS::enum_protocols(), ACE_OS::gethostbyaddr(), ACE_OS::gethostbyaddr_r(), ACE_OS::gethostbyname(), ACE_OS::gethostbyname_r(), ACE_OS::getipnodebyname(), ACE_OS::getpeername(), ACE_OS::getprotobyname(), ACE_OS::getprotobyname_r(), ACE_OS::getprotobynumber(), ACE_OS::getprotobynumber_r(), ACE_OS::getservbyname(), ACE_OS::getservbyname_r(), ACE_OS::getsockname(), ACE_OS::getsockopt(), ACE_OS::ioctl(), ACE_OS::join_leaf(), ACE_OS::listen(), ACE_OS::recv(), ACE_OS::recvfrom(), ACE_OS::recvmsg(), ACE_OS::select(), ACE_OS::send(), ACE_OS::sendmsg(), ACE_OS::sendto(), ACE_OS::shutdown(), and ACE_OS::socket().


Generated on Thu Nov 9 10:40:47 2006 for ACE by doxygen 1.3.6