Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

OS.h File Reference

#include "ace/pre.h"
#include "ace/config-all.h"
#include "ace/OS_Dirent.h"
#include "ace/OS_String.h"
#include "ace/OS_Memory.h"
#include "ace/OS_TLI.h"
#include "ace/OS_Errno.h"
#include "ace/Default_Constants.h"
#include "ace/Global_Macros.h"
#include "ace/Min_Max.h"
#include "ace/streams.h"
#include "ace/Basic_Types.h"
#include "ace/Trace.h"
#include "ace/post.h"

Include dependency graph for OS.h:

Include dependency graph

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

Included by dependency graph

Compounds

class  ACE_Cleanup
 Base class for objects that are cleaned by ACE_Object_Manager. More...

class  ACE_Cleanup_Info
 Hold cleanup information for thread/process. More...

class  ACE_Countdown_Time
 Keeps track of the amount of elapsed time. More...

class  ACE_Object_Manager_Base
 Base class for ACE_Object_Manager(s). More...

class  ACE_OS
 This class defines an OS independent programming API that shields developers from nonportable aspects of writing efficient system programs on Win32, POSIX and other versions of UNIX, and various real-time operating systems. More...

class  ACE_OS::ace_flock_t
 OS file locking structure. More...

class  ACE_OS_Exit_Info
 Hold Object Manager cleanup (exit) information. More...

class  ACE_OS_Object_Manager
struct  ACE_Protocol_Info
class  ACE_recursive_thread_mutex_t
 Implement a thin C++ wrapper that allows nested acquisition and release of a mutex that occurs in the same thread. More...

class  ACE_Str_Buf
 Simple wrapper for STREAM pipes strbuf. More...

class  ACE_Thread_ID
 Defines a platform-independent thread ID. More...

class  ACE_Time_Value
 Operations on "timeval" structures, which express time in <secs> and <usecs>. More...

class  ACE_TSS_Info
 Thread Specific Key management. More...

class  ACE_TSS_Keys
 Collection of in-use flags for a thread's TSS keys. For internal use only by ACE_TSS_Cleanup; it is public because some compilers can't use nested classes for template instantiation parameters. More...

class  ACE_TSS_Ref
 "Reference count" for thread-specific storage keys. More...

struct  cancel_state
struct  iovec
struct  ip_mreq
struct  msghdr
struct  msghdr
struct  msqid_ds
struct  rusage
union  semun
struct  shmaddr
struct  siginfo_t
struct  strbuf
struct  timespec

Service Configurator macros

The following macros are used to define helper objects used in ACE's Service Configurator. This is an implementation of the Service Configurator pattern:

http://www.cs.wustl.edu/~schmidt/PDF/SvcConf.pdf

The intent of this pattern is to allow developers to dynamically load and configure services into a system. With a little help from this macros statically linked services can also be dynamically configured.

More details about this component are available in the documentation of the ACE_Service_Configurator class and also ACE_Dynamic_Service.

Notice that in all the macros the SERVICE_CLASS parameter must be the name of a class derived from ACE_Service_Object.

#define ACE_STATIC_SVC_DECLARE(SERVICE_CLASS)   extern ACE_Static_Svc_Descriptor ace_svc_desc_##SERVICE_CLASS ;
 Declare a the data structure required to register a statically linked service into the service configurator. More...

#define ACE_STATIC_SVC_DECLARE_EXPORT(EXPORT_NAME, SERVICE_CLASS)   extern EXPORT_NAME##_Export ACE_Static_Svc_Descriptor ace_svc_desc_##SERVICE_CLASS;
 As ACE_STATIC_SVC_DECLARE, but using an export macro for NT compilers. More...

#define ACE_STATIC_SVC_DEFINE(SERVICE_CLASS, NAME, TYPE, FN, FLAGS, ACTIVE)   ACE_Static_Svc_Descriptor ace_svc_desc_##SERVICE_CLASS = { NAME, TYPE, FN, FLAGS, ACTIVE };
 Define the data structure used to register a statically linked service into the Service Configurator. More...

#define ACE_STATIC_SVC_REQUIRE(SERVICE_CLASS)
 Automatically register a service with the service configurator. More...

#define ACE_STATIC_SVC_REGISTER(SERVICE_CLASS)   do {} while (0)
#define ACE_FACTORY_DECLARE(CLS, SERVICE_CLASS)
 Declare the factory method used to create dynamically loadable services. More...

#define ACE_FACTORY_DEFINE(CLS, SERVICE_CLASS)
 Define the factory method (and destructor) for a dynamically loadable service. More...

#define ACE_SVC_NAME(SERVICE_CLASS)   _make_##SERVICE_CLASS
 The canonical name for a service factory method. More...

#define ACE_SVC_INVOKE(SERVICE_CLASS)   _make_##SERVICE_CLASS (0)
 The canonical way to invoke (i.e. construct) a service factory method. More...


Helper macros for services defined in the netsvcs library.

The ACE services defined in netsvcs use this helper macros for simplicity.

#define ACE_SVC_FACTORY_DECLARE(X)   ACE_FACTORY_DECLARE (ACE_Svc, X)
#define ACE_SVC_FACTORY_DEFINE(X)   ACE_FACTORY_DEFINE (ACE_Svc, X)

A set of wrappers for low-level file operations.

#define ACE_DEFAULT_OPEN_PERMS   (FILE_SHARE_READ | FILE_SHARE_WRITE)

Default values to control CDR classes memory allocation

strategies

#define ACE_DEFAULT_CDR_BUFSIZE   512
 Control the initial size of all CDR buffers, application developers may want to optimize this value to fit their request size. More...

#define ACE_DEFAULT_CDR_EXP_GROWTH_MAX   65536
 Stop exponential growth of CDR buffers to avoid overallocation. More...

#define ACE_DEFAULT_CDR_LINEAR_GROWTH_CHUNK   65536
 Control CDR buffer growth after maximum exponential growth is reached. More...


Efficiently compute aligned pointers to powers of 2 boundaries.

#define ACE_align_binary(ptr, alignment)   ((ptr + ((ptr_arith_t)((alignment)-1))) & (~((ptr_arith_t)((alignment)-1))))
 Return the next integer aligned to a required boundary. More...

#define ACE_ptr_align_binary(ptr, alignment)   ((char *) ACE_align_binary (((ptr_arith_t) (ptr)), (alignment)))
 Return the next address aligned to a required boundary. More...


Defines

#define _SC_AIO_MAX   1
#define ACE_ASCII_SIZE   128
#define ACE_EBCDIC_SIZE   256
#define ACE_HAS_ASCII
#define ACE_STANDARD_CHARACTER_SET_SIZE   128
#define ACE_CORBA_1(NAME)   CORBA::NAME
#define ACE_CORBA_2(TYPE, NAME)   CORBA::TYPE::NAME
#define ACE_CORBA_3(TYPE, NAME)   CORBA::TYPE::NAME
#define ACE_NESTED_CLASS(TYPE, NAME)   TYPE::NAME
#define ACE_FD_SETSIZE   FD_SETSIZE
#define ACE_DEFAULT_SELECT_REACTOR_SIZE   ACE_FD_SETSIZE
#define ACE_SPRINTF_ADAPTER(X)   X
#define ACE_DEFAULT_BASE_ADDR   ((char *) (64 * 1024 * 1024))
#define ACE_TIMER_SKEW   0
#define ACE_OS_TRACE(X)
#define CLOCK_REALTIME   0
#define ACE_USING
#define ACE_TYPENAME
#define ACE_TEMPLATE_SPECIALIZATION
#define ACE_TEMPLATE_METHOD_SPECIALIZATION
#define ACE_SYNCH_DECL   class _ACE_SYNCH_MUTEX_T, class _ACE_SYNCH_CONDITION_T
#define ACE_SYNCH_USE   _ACE_SYNCH_MUTEX_T, _ACE_SYNCH_CONDITION_T
#define ACE_SYNCH_MUTEX_T   _ACE_SYNCH_MUTEX_T
#define ACE_SYNCH_CONDITION_T   _ACE_SYNCH_CONDITION_T
#define ACE_SYNCH_SEMAPHORE_T   _ACE_SYNCH_SEMAPHORE_T
#define ACE_MEM_POOL_1   class _ACE_MEM_POOL, class _ACE_MEM_POOL_OPTIONS
#define ACE_MEM_POOL_2   _ACE_MEM_POOL, _ACE_MEM_POOL_OPTIONS
#define ACE_MEM_POOL   _ACE_MEM_POOL
#define ACE_MEM_POOL_OPTIONS   _ACE_MEM_POOL_OPTIONS
#define ACE_PEER_STREAM_1   class _ACE_PEER_STREAM, class _ACE_PEER_ADDR
#define ACE_PEER_STREAM_2   _ACE_PEER_STREAM, _ACE_PEER_ADDR
#define ACE_PEER_STREAM   _ACE_PEER_STREAM
#define ACE_PEER_STREAM_ADDR   _ACE_PEER_ADDR
#define ACE_PEER_ACCEPTOR_1   class _ACE_PEER_ACCEPTOR, class _ACE_PEER_ADDR
#define ACE_PEER_ACCEPTOR_2   _ACE_PEER_ACCEPTOR, _ACE_PEER_ADDR
#define ACE_PEER_ACCEPTOR   _ACE_PEER_ACCEPTOR
#define ACE_PEER_ACCEPTOR_ADDR   _ACE_PEER_ADDR
#define ACE_PEER_CONNECTOR_1   class _ACE_PEER_CONNECTOR, class _ACE_PEER_ADDR
#define ACE_PEER_CONNECTOR_2   _ACE_PEER_CONNECTOR, _ACE_PEER_ADDR
#define ACE_PEER_CONNECTOR   _ACE_PEER_CONNECTOR
#define ACE_PEER_CONNECTOR_ADDR   _ACE_PEER_ADDR
#define ACE_PEER_CONNECTOR_ADDR_ANY   ACE_PEER_CONNECTOR_ADDR::sap_any
#define ACE_SOCK_ACCEPTOR   ACE_SOCK_Acceptor, ACE_INET_Addr
#define ACE_SOCK_CONNECTOR   ACE_SOCK_Connector, ACE_INET_Addr
#define ACE_SOCK_STREAM   ACE_SOCK_Stream, ACE_INET_Addr
#define ACE_MEM_ACCEPTOR   ACE_MEM_Acceptor, ACE_MEM_Addr
#define ACE_MEM_CONNECTOR   ACE_MEM_Connector, ACE_INET_Addr
#define ACE_MEM_STREAM   ACE_MEM_Stream, ACE_INET_Addr
#define ACE_LSOCK_ACCEPTOR   ACE_LSOCK_Acceptor, ACE_UNIX_Addr
#define ACE_LSOCK_CONNECTOR   ACE_LSOCK_Connector, ACE_UNIX_Addr
#define ACE_LSOCK_STREAM   ACE_LSOCK_Stream, ACE_UNIX_Addr
#define ACE_TLI_ACCEPTOR   ACE_TLI_Acceptor, ACE_INET_Addr
#define ACE_TLI_CONNECTOR   ACE_TLI_Connector, ACE_INET_Addr
#define ACE_TLI_STREAM   ACE_TLI_Stream, ACE_INET_Addr
#define ACE_SPIPE_ACCEPTOR   ACE_SPIPE_Acceptor, ACE_SPIPE_Addr
#define ACE_SPIPE_CONNECTOR   ACE_SPIPE_Connector, ACE_SPIPE_Addr
#define ACE_SPIPE_STREAM   ACE_SPIPE_Stream, ACE_SPIPE_Addr
#define ACE_UPIPE_ACCEPTOR   ACE_UPIPE_Acceptor, ACE_SPIPE_Addr
#define ACE_UPIPE_CONNECTOR   ACE_UPIPE_Connector, ACE_SPIPE_Addr
#define ACE_UPIPE_STREAM   ACE_UPIPE_Stream, ACE_SPIPE_Addr
#define ACE_FILE_CONNECTOR   ACE_FILE_Connector, ACE_FILE_Addr
#define ACE_FILE_STREAM   ACE_FILE_IO, ACE_FILE_Addr
#define ACE_MMAP_MEMORY_POOL   ACE_MMAP_Memory_Pool, ACE_MMAP_Memory_Pool_Options
#define ACE_LITE_MMAP_MEMORY_POOL   ACE_Lite_MMAP_Memory_Pool, ACE_MMAP_Memory_Pool_Options
#define ACE_SBRK_MEMORY_POOL   ACE_Sbrk_Memory_Pool, ACE_Sbrk_Memory_Pool_Options
#define ACE_SHARED_MEMORY_POOL   ACE_Shared_Memory_Pool, ACE_Shared_Memory_Pool_Options
#define ACE_LOCAL_MEMORY_POOL   ACE_Local_Memory_Pool, ACE_Local_Memory_Pool_Options
#define ACE_PAGEFILE_MEMORY_POOL   ACE_Pagefile_Memory_Pool, ACE_Pagefile_Memory_Pool_Options
#define ACE_SYNCH_1   ACE_SYNCH_DECL
#define ACE_SYNCH_2   ACE_SYNCH_USE
#define ACE_WSOCK_VERSION   0, 0
#define ACE_TSS_TYPE(T)   T
#define ACE_TSS_GET(I, T)   (I)
#define ACE_MT(X)
#define ACE_DEFAULT_THREAD_PRIORITY   (-0x7fffffffL - 1L)
#define ACE_GUARD_ACTION(MUTEX, OBJ, LOCK, ACTION, REACTION)
#define ACE_GUARD_REACTION(MUTEX, OBJ, LOCK, REACTION)   ACE_GUARD_ACTION(MUTEX, OBJ, LOCK, ;, REACTION)
#define ACE_GUARD(MUTEX, OBJ, LOCK)   ACE_GUARD_REACTION(MUTEX, OBJ, LOCK, return)
#define ACE_GUARD_RETURN(MUTEX, OBJ, LOCK, RETURN)   ACE_GUARD_REACTION(MUTEX, OBJ, LOCK, return RETURN)
#define ACE_WRITE_GUARD(MUTEX, OBJ, LOCK)
#define ACE_WRITE_GUARD_RETURN(MUTEX, OBJ, LOCK, RETURN)
#define ACE_READ_GUARD(MUTEX, OBJ, LOCK)
#define ACE_READ_GUARD_RETURN(MUTEX, OBJ, LOCK, RETURN)
#define ACE_THROW_SPEC(X)   throw X
#define ACE_SCOPE_PROCESS   0
#define ACE_SCOPE_LWP   1
#define ACE_SCOPE_THREAD   2
#define ACE_SCHED_OTHER   0
#define ACE_SCHED_FIFO   1
#define ACE_SCHED_RR   2
#define ACE_THR_PRI_FIFO_DEF   0
#define ACE_THR_PRI_OTHER_DEF   0
#define ACE_DONT_INCLUDE_ACE_SIGNAL_H
#define IOV_MAX   16
#define ACE_IOV_MAX   IOV_MAX
#define ACE_OSTREAM_TYPE   ostream
#define ACE_DEFAULT_LOG_STREAM   (&cerr)
#define ACE_ONE_SECOND_IN_MSECS   1000L
#define ACE_ONE_SECOND_IN_USECS   1000000L
#define ACE_ONE_SECOND_IN_NSECS   1000000000L
#define ACE_STREAMBUF_SIZE   1024
#define ACE_MAX_DEFAULT_PORT   65535
#define ACE_PLATFORM_A   "Win32"
#define ACE_PLATFORM_EXE_SUFFIX_A   ".exe"
#define ACE_DEFAULT_SVC_CONF   ACE_LIB_TEXT (".\\svc.conf")
#define ACE_STDIN   GetStdHandle (STD_INPUT_HANDLE)
#define ACE_STDOUT   GetStdHandle (STD_OUTPUT_HANDLE)
#define ACE_STDERR   GetStdHandle (STD_ERROR_HANDLE)
#define ACE_DEFAULT_SEM_KEY   "ACE_SEM_KEY"
#define ACE_INVALID_SEM_KEY   0
#define ACE_SEH_TRY   if (1)
#define ACE_SEH_EXCEPT(X)   while (0)
#define ACE_SEH_FINALLY   if (1)
#define ACE_DEV_NULL   "nul"
#define ACE_DIRECTORY_SEPARATOR_STR_A   "\\"
#define ACE_DIRECTORY_SEPARATOR_CHAR_A   '\\'
#define ACE_LD_SEARCH_PATH   ACE_LIB_TEXT ("PATH")
#define ACE_LD_SEARCH_PATH_SEPARATOR_STR   ACE_LIB_TEXT (";")
#define ACE_DLL_SUFFIX   ACE_LIB_TEXT (".dll")
#define ACE_DLL_PREFIX   ACE_LIB_TEXT ("")
#define NFDBITS   32
#define MAP_PRIVATE   1
#define MAP_SHARED   2
#define MAP_FIXED   4
#define RUSAGE_SELF   1
#define PROT_READ   PAGE_READONLY
#define PROT_WRITE   PAGE_READWRITE
#define PROT_RDWR   PAGE_READWRITE
#define ETIME   ERROR_SEM_TIMEOUT
#define EWOULDBLOCK   WSAEWOULDBLOCK
#define EINPROGRESS   WSAEINPROGRESS
#define EALREADY   WSAEALREADY
#define ENOTSOCK   WSAENOTSOCK
#define EDESTADDRREQ   WSAEDESTADDRREQ
#define EMSGSIZE   WSAEMSGSIZE
#define EPROTOTYPE   WSAEPROTOTYPE
#define ENOPROTOOPT   WSAENOPROTOOPT
#define EPROTONOSUPPORT   WSAEPROTONOSUPPORT
#define ESOCKTNOSUPPORT   WSAESOCKTNOSUPPORT
#define EOPNOTSUPP   WSAEOPNOTSUPP
#define EPFNOSUPPORT   WSAEPFNOSUPPORT
#define EAFNOSUPPORT   WSAEAFNOSUPPORT
#define EADDRINUSE   WSAEADDRINUSE
#define EADDRNOTAVAIL   WSAEADDRNOTAVAIL
#define ENETDOWN   WSAENETDOWN
#define ENETUNREACH   WSAENETUNREACH
#define ENETRESET   WSAENETRESET
#define ECONNABORTED   WSAECONNABORTED
#define ECONNRESET   WSAECONNRESET
#define ENOBUFS   WSAENOBUFS
#define EISCONN   WSAEISCONN
#define ENOTCONN   WSAENOTCONN
#define ESHUTDOWN   WSAESHUTDOWN
#define ETOOMANYREFS   WSAETOOMANYREFS
#define ETIMEDOUT   WSAETIMEDOUT
#define ECONNREFUSED   WSAECONNREFUSED
#define ELOOP   WSAELOOP
#define EHOSTDOWN   WSAEHOSTDOWN
#define EHOSTUNREACH   WSAEHOSTUNREACH
#define EPROCLIM   WSAEPROCLIM
#define EUSERS   WSAEUSERS
#define EDQUOT   WSAEDQUOT
#define ESTALE   WSAESTALE
#define EREMOTE   WSAEREMOTE
#define ACE_INVALID_PID   ((pid_t) -1)
#define ACE_SYSCALL_FAILED   0xFFFFFFFF
#define MS_ASYNC   0
#define MS_INVALIDATE   0
#define O_NDELAY   1
#define MAXPATHLEN   _MAX_PATH
#define MAXNAMLEN   _MAX_FNAME
#define EADDRINUSE   WSAEADDRINUSE
#define ACE_SELF   (0)
#define ACE_SHLIB_INVALID_HANDLE   0
#define ACE_DEFAULT_SHLIB_MODE   0
#define ACE_DIRECTORY_SEPARATOR_STR_W   ACE_TEXT_WIDE(ACE_DIRECTORY_SEPARATOR_STR_A)
#define ACE_DIRECTORY_SEPARATOR_CHAR_W   ACE_TEXT_WIDE(ACE_DIRECTORY_SEPARATOR_CHAR_A)
#define ACE_PLATFORM_W   ACE_TEXT_WIDE(ACE_PLATFORM_A)
#define ACE_PLATFORM_EXE_SUFFIX_W   ACE_TEXT_WIDE(ACE_PLATFORM_EXE_SUFFIX_A)
#define ACE_DIRECTORY_SEPARATOR_STR   ACE_LIB_TEXT (ACE_DIRECTORY_SEPARATOR_STR_A)
#define ACE_DIRECTORY_SEPARATOR_CHAR   ACE_LIB_TEXT (ACE_DIRECTORY_SEPARATOR_CHAR_A)
#define ACE_PLATFORM   ACE_LIB_TEXT (ACE_PLATFORM_A)
#define ACE_PLATFORM_EXE_SUFFIX   ACE_LIB_TEXT (ACE_PLATFORM_EXE_SUFFIX_A)
#define ACE_DEFAULT_LOCALNAME_A   "localnames"
#define ACE_DEFAULT_GLOBALNAME_A   "globalnames"
#define ACE_DEFAULT_LOCALNAME_W   ACE_TEXT_WIDE(ACE_DEFAULT_LOCALNAME_A)
#define ACE_DEFAULT_GLOBALNAME_W   ACE_TEXT_WIDE(ACE_DEFAULT_GLOBALNAME_A)
#define ACE_DEFAULT_LOCALNAME   ACE_LIB_TEXT (ACE_DEFAULT_LOCALNAME_A)
#define ACE_DEFAULT_GLOBALNAME   ACE_LIB_TEXT (ACE_DEFAULT_GLOBALNAME_A)
#define O_BINARY   0
#define _O_BINARY   O_BINARY
#define O_TEXT   0
#define _O_TEXT   O_TEXT
#define O_RAW   0
#define _O_RAW   O_RAW
#define ACE_DEFAULT_SYNCH_TYPE   USYNC_THREAD
#define ACE_MAP_PRIVATE   MAP_PRIVATE
#define ACE_MAP_SHARED   MAP_SHARED
#define ACE_MAP_FIXED   MAP_FIXED
#define AF_ANY   (-1)
#define AF_SPIPE   (AF_MAX + 1)
#define AF_FILE   (AF_MAX + 2)
#define AF_DEV   (AF_MAX + 3)
#define AF_UPIPE   (AF_SPIPE)
#define MAXNAMELEN   256
#define MAXHOSTNAMELEN   256
#define INADDR_LOOPBACK   ((ACE_UINT32) 0x7f000001)
#define INADDR_NONE   ((ACE_UINT32) 0xffffffff)
#define INET_ADDRSTRLEN   16
#define INET6_ADDRSTRLEN   46
#define ACE_ADDRESS_FAMILY_INET   AF_INET
#define ACE_PROTOCOL_FAMILY_INET   PF_INET
#define SIGHUP   0
#define SIGINT   0
#define SIGSEGV   0
#define SIGIO   0
#define SIGUSR1   0
#define SIGUSR2   0
#define SIGCHLD   0
#define SIGCLD   SIGCHLD
#define SIGQUIT   0
#define SIGPIPE   0
#define SIGALRM   0
#define SIG_DFL   ((__sighandler_t) 0)
#define SIG_IGN   ((__sighandler_t) 1)
#define SIG_ERR   ((__sighandler_t) -1)
#define O_NONBLOCK   1
#define SIG_BLOCK   1
#define SIG_UNBLOCK   2
#define SIG_SETMASK   3
#define IPC_CREAT   0
#define IPC_NOWAIT   0
#define IPC_RMID   0
#define IPC_EXCL   0
#define IP_DROP_MEMBERSHIP   0
#define IP_ADD_MEMBERSHIP   0
#define ACE_LACKS_IP_ADD_MEMBERSHIP
#define IP_DEFAULT_MULTICAST_TTL   0
#define IP_DEFAULT_MULTICAST_LOOP   0
#define IP_MULTICAST_IF   0
#define IP_MULTICAST_TTL   1
#define IP_MAX_MEMBERSHIPS   0
#define SIOCGIFBRDADDR   0
#define SIOCGIFADDR   0
#define IPC_PRIVATE   ACE_INVALID_SEM_KEY
#define IPC_STAT   0
#define GETVAL   0
#define F_GETFL   0
#define SETVAL   0
#define GETALL   0
#define SETALL   0
#define SEM_UNDO   0
#define ACE_NSIG   NSIG
#define R_OK   04
#define W_OK   02
#define X_OK   01
#define F_OK   0
#define ESUCCESS   0
#define EIDRM   0
#define ENFILE   EMFILE
#define ECOMM   ECONNABORTED
#define WNOHANG   0100
#define EDEADLK   1000
#define MS_SYNC   0x0
#define PIPE_BUF   5120
#define ACE_NONBLOCK   O_NDELAY
#define ACE_SIGIO   -1
#define ACE_SIGURG   -2
#define ACE_CLOEXEC   -3
#define LOCALNAME   0
#define REMOTENAME   1
#define EBUSY   ETIME
#define _SC_TIMER_MAX   44
#define ACE_DEFAULT_TIMERS   _SC_TIMER_MAX
#define ACE_HOSTENT_DATA_SIZE   (4*1024)
#define ACE_SERVENT_DATA_SIZE   (4*1024)
#define ACE_PROTOENT_DATA_SIZE   (2*1024)
#define ACE_MAXLOGMSGLEN   4 * 1024
#define ACE_MAXTOKENNAMELEN   40
#define ACE_MAXCLIENTIDLEN   MAXHOSTNAMELEN + 20
#define MAP_FAILED   ((void *) -1)
#define SA_SIGINFO   0
#define SA_RESTART   0
#define ACE_MSB_MASK   (~(1 << (NFDBITS - 1)))
#define ACE_IPPROTO_TCP   IPPROTO_TCP
#define ACE_SHUTDOWN_READ   0
 Helper for the ACE_OS::cuserid() function. More...

#define ACE_SHUTDOWN_WRITE   1
#define ACE_SHUTDOWN_BOTH   2
#define ACE_KEY_INDEX(OBJ, KEY)   u_int OBJ = KEY
#define ACE_ALLOCATOR_RETURN(POINTER, ALLOCATOR, RET_VAL)
#define ACE_ALLOCATOR(POINTER, ALLOCATOR)
#define ACE_NEW_MALLOC_RETURN(POINTER, ALLOCATOR, CONSTRUCTOR, RET_VAL)
#define ACE_NEW_MALLOC(POINTER, ALLOCATOR, CONSTRUCTOR)
#define ACE_NOOP(x)
#define ACE_DES_NOFREE(POINTER, CLASS)
#define ACE_DES_ARRAY_NOFREE(POINTER, SIZE, CLASS)
#define ACE_DES_FREE(POINTER, DEALLOCATOR, CLASS)
#define ACE_DES_ARRAY_FREE(POINTER, SIZE, DEALLOCATOR, CLASS)
#define ACE_DES_NOFREE_TEMPLATE(POINTER, T_CLASS, T_PARAMETER)
#define ACE_DES_ARRAY_NOFREE_TEMPLATE(POINTER, SIZE, T_CLASS, T_PARAMETER)
#define ACE_DES_FREE_TEMPLATE(POINTER, DEALLOCATOR, T_CLASS, T_PARAMETER)
#define ACE_DES_ARRAY_FREE_TEMPLATE(POINTER, SIZE, DEALLOCATOR, T_CLASS, T_PARAMETER)
#define ACE_DES_FREE_TEMPLATE2(POINTER, DEALLOCATOR, T_CLASS, T_PARAM1, T_PARAM2)
#define ACE_DES_FREE_TEMPLATE3(POINTER, DEALLOCATOR, T_CLASS, T_PARAM1, T_PARAM2, T_PARAM3)
#define ACE_DES_FREE_TEMPLATE4(POINTER, DEALLOCATOR, T_CLASS, T_PARAM1, T_PARAM2, T_PARAM3, T_PARAM4)
#define ACE_DES_ARRAY_FREE_TEMPLATE2(POINTER, SIZE, DEALLOCATOR, T_CLASS, T_PARAM1, T_PARAM2)
#define ACE_PTHREAD_CLEANUP_PUSH(A)
#define ACE_PTHREAD_CLEANUP_POP(A)
#define ACE_DEFAULT_MUTEX_A   "ACE_MUTEX"
#define ACE_DEFAULT_MUTEX_W   ACE_TEXT_WIDE(ACE_DEFAULT_MUTEX_A)
#define ACE_DEFAULT_MUTEX   ACE_LIB_TEXT (ACE_DEFAULT_MUTEX_A)
#define ACE_MAIN   main
#define ACE_INFINITE   INFINITE
#define ACE_STATUS_TIMEOUT   STATUS_TIMEOUT
#define ACE_WAIT_FAILED   WAIT_FAILED
#define ACE_WAIT_TIMEOUT   WAIT_TIMEOUT
#define ACE_SWAP_LONG(L)
#define ACE_SWAP_WORD(L)   ((((L) & 0x00FF) << 8) | (((L) & 0xFF00) >> 8))
#define ACE_HTONL(X)   X
#define ACE_NTOHL(X)   X
#define ACE_IDL_NCTOHL(X)   (X << 24)
#define ACE_IDL_NSTOHL(X)   ((X) << 16)
#define ACE_HTONS(x)   x
#define ACE_NTOHS(x)   x
#define ACE_RTSIG_MAX   8
#define WIFEXITED(stat)   1
#define WEXITSTATUS(stat)   stat
#define WIFSIGNALED(stat)   0
#define WTERMSIG(stat)   0
#define WIFSTOPPED(stat)   0
#define WSTOPSIG(stat)   0
#define WIFCONTINUED(stat)   0
#define WCOREDUMP(stat)   0
#define ACE_CDR_BYTE_ORDER   0
#define ACE_DEFAULT_CDR_MEMCPY_TRADEOFF   256
 Control the zero-copy optimizations for octet sequences. More...

#define ACE_SIGRTMIN   SIGRTMIN
#define ACE_SIGRTMAX   SIGRTMAX

Typedefs

typedef timespec timespec_t
typedef int clockid_t
typedef void(* ACE_Service_Object_Exterminator )(void *)
 Service Objects, i.e., objects dynamically loaded via the service configurator, must provide a destructor function with the following prototype to perform object cleanup. More...

typedef const struct iovec ACE_WRITEV_TYPE
typedef iovec ACE_READV_TYPE
typedef const struct rlimit ACE_SETRLIMIT_TYPE
typedef const struct msghdr ACE_SENDMSG_TYPE
typedef u_int ACE_RANDR_TYPE
typedef int sig_atomic_t
typedef int ssize_t
typedef void(__cdecl * ACE_SignalHandler )(int)
typedef void(__cdecl * ACE_SignalHandlerV )(int)
typedef OVERLAPPED ACE_OVERLAPPED
typedef DWORD ACE_thread_t
typedef long pid_t
typedef HANDLE ACE_hthread_t
typedef DWORD ACE_thread_key_t
typedef unsigned __int64 ACE_QWORD
typedef unsigned __int64 ACE_hrtime_t
typedef DWORD nlink_t
typedef u_short mode_t
typedef long uid_t
typedef long gid_t
typedef char * caddr_t
typedef DWORD ACE_exitcode
typedef int ACE_idtype_t
typedef DWORD ACE_id_t
typedef int ACE_pri_t
typedef HINSTANCE ACE_SHLIB_HANDLE
typedef utsname ACE_utsname
typedef fd_set ACE_FD_SET_TYPE
typedef char ACE_HOSTENT_DATA [ACE_HOSTENT_DATA_SIZE]
typedef char ACE_SERVENT_DATA [ACE_SERVENT_DATA_SIZE]
typedef char ACE_PROTOENT_DATA [ACE_PROTOENT_DATA_SIZE]
typedef const char ** SYS_SIGLIST
typedef ACE_THR_FUNC ACE_THR_FUNC_INTERNAL
typedef void(* ACE_THR_C_DEST )(void *)
typedef void(* ACE_THR_DEST )(void *)
typedef const ACE_TCHARACE_DL_TYPE
typedef void(* ACE_SIGNAL_C_FUNC )(int, siginfo_t *, void *)
typedef int ucontext_t
typedef void(* ACE_Sig_Handler_Ex )(int, siginfo_t *siginfo, ucontext_t *ucontext)
typedef int ACE_Sched_Priority
typedef void(* ACE_CLEANUP_FUNC )(void *object, void *param)
typedef double ACE_timer_t
typedef int ACE_Rusage
typedef _stat ACE_stat
typedef int(* ACE_COMPARE_FUNC )(const void *, const void *)
typedef void(* ACE_OVERLAPPED_COMPLETION_FUNC )(u_long error, u_long bytes_transferred, ACE_OVERLAPPED *overlapped, u_long flags)
typedef u_long ACE_SOCK_GROUP
typedef TRANSMIT_FILE_BUFFERS ACE_TRANSMIT_FILE_BUFFERS
typedef LPTRANSMIT_FILE_BUFFERS ACE_LPTRANSMIT_FILE_BUFFERS
typedef PTRANSMIT_FILE_BUFFERS ACE_PTRANSMIT_FILE_BUFFERS

Functions

ACE_OS_Export ACE_Time_Value operator+ (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2)
ACE_OS_Export ACE_Time_Value operator- (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2)
ACE_QWORD ACE_MAKE_QWORD (DWORD lo, DWORD hi)
DWORD ACE_LOW_DWORD (ACE_QWORD q)
DWORD ACE_HIGH_DWORD (ACE_QWORD q)
int ACE_SEH_Default_Exception_Selector (void *)
int ACE_SEH_Default_Exception_Handler (void *)
ACE_OS_Export void ace_cleanup_destroyer (ACE_Cleanup *, void *param=0)
long ace_timezone ()
 Helper for the ACE_OS::timezone() function. More...

double ace_difftime (time_t t1, time_t t0)
 Helper for the ACE_OS::difftime() function. More...

void ACE_OS_Object_Manager_Internal_Exit_Hook (void)

Variables

const ACE_UINT32 ACE_U_ONE_SECOND_IN_MSECS = 1000U
const ACE_UINT32 ACE_U_ONE_SECOND_IN_USECS = 1000000U
const ACE_UINT32 ACE_U_ONE_SECOND_IN_NSECS = 1000000000U

Detailed Description

OS.h,v 4.1128 2002/02/04 21:31:56 crodrigu Exp

Author:
Douglas C. Schmidt <schmidt@cs.wustl.edu> , Jesper S. M|ller<stophph@diku.dk> , and a cast of thousands...

Define Documentation

#define _O_BINARY   O_BINARY
 

#define _O_RAW   O_RAW
 

#define _O_TEXT   O_TEXT
 

#define _SC_AIO_MAX   1
 

#define _SC_TIMER_MAX   44
 

#define ACE_ADDRESS_FAMILY_INET   AF_INET
 

#define ACE_align_binary ptr,
alignment       ((ptr + ((ptr_arith_t)((alignment)-1))) & (~((ptr_arith_t)((alignment)-1))))
 

Return the next integer aligned to a required boundary.

Parameters:
ptr  the base pointer
alignment  the required alignment

#define ACE_ALLOCATOR POINTER,
ALLOCATOR   
 

Value:

do { POINTER = ALLOCATOR; \
     if (POINTER == 0) { errno = ENOMEM; return; } \
   } while (0)

#define ACE_ALLOCATOR_RETURN POINTER,
ALLOCATOR,
RET_VAL   
 

Value:

do { POINTER = ALLOCATOR; \
     if (POINTER == 0) { errno = ENOMEM; return RET_VAL; } \
   } while (0)

#define ACE_ASCII_SIZE   128
 

#define ACE_CDR_BYTE_ORDER   0
 

#define ACE_CLOEXEC   -3
 

#define ACE_CORBA_1 NAME       CORBA::NAME
 

#define ACE_CORBA_2 TYPE,
NAME       CORBA::TYPE::NAME
 

#define ACE_CORBA_3 TYPE,
NAME       CORBA::TYPE::NAME
 

#define ACE_DEFAULT_BASE_ADDR   ((char *) (64 * 1024 * 1024))
 

#define ACE_DEFAULT_CDR_BUFSIZE   512
 

Control the initial size of all CDR buffers, application developers may want to optimize this value to fit their request size.

#define ACE_DEFAULT_CDR_EXP_GROWTH_MAX   65536
 

Stop exponential growth of CDR buffers to avoid overallocation.

#define ACE_DEFAULT_CDR_LINEAR_GROWTH_CHUNK   65536
 

Control CDR buffer growth after maximum exponential growth is reached.

#define ACE_DEFAULT_CDR_MEMCPY_TRADEOFF   256
 

Control the zero-copy optimizations for octet sequences.

Large octet sequences can be sent without any copies by chaining them in the list of message blocks that represent a single CDR stream. However, if the octet sequence is too small the zero copy optimizations actually hurt performance. Octet sequences smaller than this value will be copied.

#define ACE_DEFAULT_GLOBALNAME   ACE_LIB_TEXT (ACE_DEFAULT_GLOBALNAME_A)
 

#define ACE_DEFAULT_GLOBALNAME_A   "globalnames"
 

#define ACE_DEFAULT_GLOBALNAME_W   ACE_TEXT_WIDE(ACE_DEFAULT_GLOBALNAME_A)
 

#define ACE_DEFAULT_LOCALNAME   ACE_LIB_TEXT (ACE_DEFAULT_LOCALNAME_A)
 

#define ACE_DEFAULT_LOCALNAME_A   "localnames"
 

#define ACE_DEFAULT_LOCALNAME_W   ACE_TEXT_WIDE(ACE_DEFAULT_LOCALNAME_A)
 

#define ACE_DEFAULT_LOG_STREAM   (&cerr)
 

#define ACE_DEFAULT_MUTEX   ACE_LIB_TEXT (ACE_DEFAULT_MUTEX_A)
 

#define ACE_DEFAULT_MUTEX_A   "ACE_MUTEX"
 

#define ACE_DEFAULT_MUTEX_W   ACE_TEXT_WIDE(ACE_DEFAULT_MUTEX_A)
 

#define ACE_DEFAULT_OPEN_PERMS   (FILE_SHARE_READ | FILE_SHARE_WRITE)
 

#define ACE_DEFAULT_SELECT_REACTOR_SIZE   ACE_FD_SETSIZE
 

#define ACE_DEFAULT_SEM_KEY   "ACE_SEM_KEY"
 

#define ACE_DEFAULT_SHLIB_MODE   0
 

#define ACE_DEFAULT_SVC_CONF   ACE_LIB_TEXT (".\\svc.conf")
 

#define ACE_DEFAULT_SYNCH_TYPE   USYNC_THREAD
 

#define ACE_DEFAULT_THREAD_PRIORITY   (-0x7fffffffL - 1L)
 

#define ACE_DEFAULT_TIMERS   _SC_TIMER_MAX
 

#define ACE_DES_ARRAY_FREE POINTER,
SIZE,
DEALLOCATOR,
CLASS   
 

Value:

do { \
        if (POINTER) \
          { \
            for (size_t i = 0; \
                 i < SIZE; \
                 ++i) \
            { \
              (&(POINTER)[i])->~CLASS (); \
            } \
            DEALLOCATOR (POINTER); \
          } \
      } \
   while (0)

#define ACE_DES_ARRAY_FREE_TEMPLATE POINTER,
SIZE,
DEALLOCATOR,
T_CLASS,
T_PARAMETER   
 

Value:

do { \
            if (POINTER) \
              { \
                for (size_t i = 0; \
                     i < SIZE; \
                     ++i) \
                { \
                  POINTER[i].T_CLASS T_PARAMETER::~T_CLASS (); \
                } \
                DEALLOCATOR (POINTER); \
              } \
          } \
       while (0)

#define ACE_DES_ARRAY_FREE_TEMPLATE2 POINTER,
SIZE,
DEALLOCATOR,
T_CLASS,
T_PARAM1,
T_PARAM2   
 

Value:

do { \
            if (POINTER) \
              { \
                for (size_t i = 0; \
                     i < SIZE; \
                     ++i) \
                { \
                  POINTER[i].T_CLASS <T_PARAM1, T_PARAM2>::~T_CLASS (); \
                } \
                DEALLOCATOR (POINTER); \
              } \
          } \
       while (0)

#define ACE_DES_ARRAY_NOFREE POINTER,
SIZE,
CLASS   
 

Value:

do { \
        if (POINTER) \
          { \
            for (size_t i = 0; \
                 i < SIZE; \
                 ++i) \
            { \
              (&(POINTER)[i])->~CLASS (); \
            } \
          } \
      } \
   while (0)

#define ACE_DES_ARRAY_NOFREE_TEMPLATE POINTER,
SIZE,
T_CLASS,
T_PARAMETER   
 

Value:

do { \
          if (POINTER) \
            { \
              for (size_t i = 0; \
                   i < SIZE; \
                   ++i) \
              { \
                (POINTER)[i].T_CLASS T_PARAMETER::~T_CLASS (); \
              } \
            } \
        } \
     while (0)

#define ACE_DES_FREE POINTER,
DEALLOCATOR,
CLASS   
 

Value:

do { \
        if (POINTER) \
          { \
            (POINTER)->~CLASS (); \
            DEALLOCATOR (POINTER); \
          } \
      } \
   while (0)

#define ACE_DES_FREE_TEMPLATE POINTER,
DEALLOCATOR,
T_CLASS,
T_PARAMETER   
 

Value:

do { \
            if (POINTER) \
              { \
                POINTER->T_CLASS T_PARAMETER::~T_CLASS (); \
                DEALLOCATOR (POINTER); \
              } \
          } \
       while (0)

#define ACE_DES_FREE_TEMPLATE2 POINTER,
DEALLOCATOR,
T_CLASS,
T_PARAM1,
T_PARAM2   
 

Value:

do { \
            if (POINTER) \
              { \
                POINTER->T_CLASS <T_PARAM1, T_PARAM2>::~T_CLASS (); \
                DEALLOCATOR (POINTER); \
              } \
          } \
       while (0)

#define ACE_DES_FREE_TEMPLATE3 POINTER,
DEALLOCATOR,
T_CLASS,
T_PARAM1,
T_PARAM2,
T_PARAM3   
 

Value:

do { \
            if (POINTER) \
              { \
                POINTER->T_CLASS <T_PARAM1, T_PARAM2, T_PARAM3>::~T_CLASS (); \
                DEALLOCATOR (POINTER); \
              } \
          } \
       while (0)

#define ACE_DES_FREE_TEMPLATE4 POINTER,
DEALLOCATOR,
T_CLASS,
T_PARAM1,
T_PARAM2,
T_PARAM3,
T_PARAM4   
 

Value:

do { \
            if (POINTER) \
              { \
                POINTER->T_CLASS <T_PARAM1, T_PARAM2, T_PARAM3, T_PARAM4>::~T_CLASS (); \
                DEALLOCATOR (POINTER); \
              } \
          } \
       while (0)

#define ACE_DES_NOFREE POINTER,
CLASS   
 

Value:

do { \
        if (POINTER) \
          { \
            (POINTER)->~CLASS (); \
          } \
      } \
   while (0)

#define ACE_DES_NOFREE_TEMPLATE POINTER,
T_CLASS,
T_PARAMETER   
 

Value:

do { \
          if (POINTER) \
            { \
              (POINTER)->T_CLASS T_PARAMETER::~T_CLASS (); \
            } \
        } \
     while (0)

#define ACE_DEV_NULL   "nul"
 

#define ACE_DIRECTORY_SEPARATOR_CHAR   ACE_LIB_TEXT (ACE_DIRECTORY_SEPARATOR_CHAR_A)
 

#define ACE_DIRECTORY_SEPARATOR_CHAR_A   '\\'
 

#define ACE_DIRECTORY_SEPARATOR_CHAR_W   ACE_TEXT_WIDE(ACE_DIRECTORY_SEPARATOR_CHAR_A)
 

#define ACE_DIRECTORY_SEPARATOR_STR   ACE_LIB_TEXT (ACE_DIRECTORY_SEPARATOR_STR_A)
 

#define ACE_DIRECTORY_SEPARATOR_STR_A   "\\"
 

#define ACE_DIRECTORY_SEPARATOR_STR_W   ACE_TEXT_WIDE(ACE_DIRECTORY_SEPARATOR_STR_A)
 

#define ACE_DLL_PREFIX   ACE_LIB_TEXT ("")
 

#define ACE_DLL_SUFFIX   ACE_LIB_TEXT (".dll")
 

#define ACE_DONT_INCLUDE_ACE_SIGNAL_H
 

#define ACE_EBCDIC_SIZE   256
 

#define ACE_FACTORY_DECLARE CLS,
SERVICE_CLASS   
 

Value:

extern "C" CLS##_Export ACE_Service_Object *\
_make_##SERVICE_CLASS (ACE_Service_Object_Exterminator *);
Declare the factory method used to create dynamically loadable services.

Once the service implementation is dynamically loaded the Service Configurator uses a factory method to create the object. This macro declares such a factory function with the proper interface and export macros. Normally used in the header file that declares the service implementation.

Parameters:
CLS  must match the prefix of the export macro used for this service.
SERVICE_CLASS  must match the name of the class that implements the service.

#define ACE_FACTORY_DEFINE CLS,
SERVICE_CLASS   
 

Value:

extern "C" void _gobble_##SERVICE_CLASS (void *p) { \
  ACE_Service_Object *_p = ACE_reinterpret_cast (ACE_Service_Object *, p); \
  ACE_ASSERT (_p != 0); \
  delete _p; } \
extern "C" ACE_Service_Object *\
_make_##SERVICE_CLASS (ACE_Service_Object_Exterminator *gobbler) \
{ \
  ACE_TRACE (#SERVICE_CLASS); \
  if (gobbler != 0) \
    *gobbler = (ACE_Service_Object_Exterminator) _gobble_##SERVICE_CLASS; \
  return new SERVICE_CLASS; \
}
Define the factory method (and destructor) for a dynamically loadable service.

Use with arguments matching ACE_FACTORY_DECLARE. Normally used in the .cpp file that defines the service implementation.

This macro defines both the factory method and the function used to cleanup the service object.

#define ACE_FD_SETSIZE   FD_SETSIZE
 

#define ACE_FILE_CONNECTOR   ACE_FILE_Connector, ACE_FILE_Addr
 

#define ACE_FILE_STREAM   ACE_FILE_IO, ACE_FILE_Addr
 

#define ACE_GUARD MUTEX,
OBJ,
LOCK       ACE_GUARD_REACTION(MUTEX, OBJ, LOCK, return)
 

#define ACE_GUARD_ACTION MUTEX,
OBJ,
LOCK,
ACTION,
REACTION   
 

Value:

ACE_Guard< MUTEX > OBJ (LOCK); \
   if (OBJ.locked () != 0) { ACTION; } \
   else { REACTION; }

#define ACE_GUARD_REACTION MUTEX,
OBJ,
LOCK,
REACTION       ACE_GUARD_ACTION(MUTEX, OBJ, LOCK, ;, REACTION)
 

#define ACE_GUARD_RETURN MUTEX,
OBJ,
LOCK,
RETURN       ACE_GUARD_REACTION(MUTEX, OBJ, LOCK, return RETURN)
 

#define ACE_HAS_ASCII
 

#define ACE_HOSTENT_DATA_SIZE   (4*1024)
 

#define ACE_HTONL      X
 

#define ACE_HTONS      x
 

#define ACE_IDL_NCTOHL      (X << 24)
 

#define ACE_IDL_NSTOHL      ((X) << 16)
 

#define ACE_INFINITE   INFINITE
 

#define ACE_INVALID_PID   ((pid_t) -1)
 

#define ACE_INVALID_SEM_KEY   0
 

#define ACE_IOV_MAX   IOV_MAX
 

#define ACE_IPPROTO_TCP   IPPROTO_TCP
 

#define ACE_KEY_INDEX OBJ,
KEY       u_int OBJ = KEY
 

#define ACE_LACKS_IP_ADD_MEMBERSHIP
 

#define ACE_LD_SEARCH_PATH   ACE_LIB_TEXT ("PATH")
 

#define ACE_LD_SEARCH_PATH_SEPARATOR_STR   ACE_LIB_TEXT (";")
 

#define ACE_LITE_MMAP_MEMORY_POOL   ACE_Lite_MMAP_Memory_Pool, ACE_MMAP_Memory_Pool_Options
 

#define ACE_LOCAL_MEMORY_POOL   ACE_Local_Memory_Pool, ACE_Local_Memory_Pool_Options
 

#define ACE_LSOCK_ACCEPTOR   ACE_LSOCK_Acceptor, ACE_UNIX_Addr
 

#define ACE_LSOCK_CONNECTOR   ACE_LSOCK_Connector, ACE_UNIX_Addr
 

#define ACE_LSOCK_STREAM   ACE_LSOCK_Stream, ACE_UNIX_Addr
 

#define ACE_MAIN   main
 

#define ACE_MAP_FIXED   MAP_FIXED
 

#define ACE_MAP_PRIVATE   MAP_PRIVATE
 

#define ACE_MAP_SHARED   MAP_SHARED
 

#define ACE_MAX_DEFAULT_PORT   65535
 

#define ACE_MAXCLIENTIDLEN   MAXHOSTNAMELEN + 20
 

#define ACE_MAXLOGMSGLEN   4 * 1024
 

#define ACE_MAXTOKENNAMELEN   40
 

#define ACE_MEM_ACCEPTOR   ACE_MEM_Acceptor, ACE_MEM_Addr
 

#define ACE_MEM_CONNECTOR   ACE_MEM_Connector, ACE_INET_Addr
 

#define ACE_MEM_POOL   _ACE_MEM_POOL
 

#define ACE_MEM_POOL_1   class _ACE_MEM_POOL, class _ACE_MEM_POOL_OPTIONS
 

#define ACE_MEM_POOL_2   _ACE_MEM_POOL, _ACE_MEM_POOL_OPTIONS
 

#define ACE_MEM_POOL_OPTIONS   _ACE_MEM_POOL_OPTIONS
 

#define ACE_MEM_STREAM   ACE_MEM_Stream, ACE_INET_Addr
 

#define ACE_MMAP_MEMORY_POOL   ACE_MMAP_Memory_Pool, ACE_MMAP_Memory_Pool_Options
 

#define ACE_MSB_MASK   (~(1 << (NFDBITS - 1)))
 

#define ACE_MT  
 

#define ACE_NESTED_CLASS TYPE,
NAME       TYPE::NAME
 

#define ACE_NEW_MALLOC POINTER,
ALLOCATOR,
CONSTRUCTOR   
 

Value:

do { POINTER = ALLOCATOR; \
     if (POINTER == 0) { errno = ENOMEM; return;} \
     else { new (POINTER) CONSTRUCTOR; } \
   } while (0)

#define ACE_NEW_MALLOC_RETURN POINTER,
ALLOCATOR,
CONSTRUCTOR,
RET_VAL   
 

Value:

do { POINTER = ALLOCATOR; \
     if (POINTER == 0) { errno = ENOMEM; return RET_VAL;} \
     else { new (POINTER) CONSTRUCTOR; } \
   } while (0)

#define ACE_NONBLOCK   O_NDELAY
 

#define ACE_NOOP  
 

#define ACE_NSIG   NSIG
 

#define ACE_NTOHL      X
 

#define ACE_NTOHS      x
 

#define ACE_ONE_SECOND_IN_MSECS   1000L
 

#define ACE_ONE_SECOND_IN_NSECS   1000000000L
 

#define ACE_ONE_SECOND_IN_USECS   1000000L
 

#define ACE_OS_TRACE  
 

#define ACE_OSTREAM_TYPE   ostream
 

#define ACE_PAGEFILE_MEMORY_POOL   ACE_Pagefile_Memory_Pool, ACE_Pagefile_Memory_Pool_Options
 

#define ACE_PEER_ACCEPTOR   _ACE_PEER_ACCEPTOR
 

#define ACE_PEER_ACCEPTOR_1   class _ACE_PEER_ACCEPTOR, class _ACE_PEER_ADDR
 

#define ACE_PEER_ACCEPTOR_2   _ACE_PEER_ACCEPTOR, _ACE_PEER_ADDR
 

#define ACE_PEER_ACCEPTOR_ADDR   _ACE_PEER_ADDR
 

#define ACE_PEER_CONNECTOR   _ACE_PEER_CONNECTOR
 

#define ACE_PEER_CONNECTOR_1   class _ACE_PEER_CONNECTOR, class _ACE_PEER_ADDR
 

#define ACE_PEER_CONNECTOR_2   _ACE_PEER_CONNECTOR, _ACE_PEER_ADDR
 

#define ACE_PEER_CONNECTOR_ADDR   _ACE_PEER_ADDR
 

#define ACE_PEER_CONNECTOR_ADDR_ANY   ACE_PEER_CONNECTOR_ADDR::sap_any
 

#define ACE_PEER_STREAM   _ACE_PEER_STREAM
 

#define ACE_PEER_STREAM_1   class _ACE_PEER_STREAM, class _ACE_PEER_ADDR
 

#define ACE_PEER_STREAM_2   _ACE_PEER_STREAM, _ACE_PEER_ADDR
 

#define ACE_PEER_STREAM_ADDR   _ACE_PEER_ADDR
 

#define ACE_PLATFORM   ACE_LIB_TEXT (ACE_PLATFORM_A)
 

#define ACE_PLATFORM_A   "Win32"
 

#define ACE_PLATFORM_EXE_SUFFIX   ACE_LIB_TEXT (ACE_PLATFORM_EXE_SUFFIX_A)
 

#define ACE_PLATFORM_EXE_SUFFIX_A   ".exe"
 

#define ACE_PLATFORM_EXE_SUFFIX_W   ACE_TEXT_WIDE(ACE_PLATFORM_EXE_SUFFIX_A)
 

#define ACE_PLATFORM_W   ACE_TEXT_WIDE(ACE_PLATFORM_A)
 

#define ACE_PROTOCOL_FAMILY_INET   PF_INET
 

#define ACE_PROTOENT_DATA_SIZE   (2*1024)
 

#define ACE_PTHREAD_CLEANUP_POP  
 

#define ACE_PTHREAD_CLEANUP_PUSH  
 

#define ACE_ptr_align_binary ptr,
alignment       ((char *) ACE_align_binary (((ptr_arith_t) (ptr)), (alignment)))
 

Return the next address aligned to a required boundary.

#define ACE_READ_GUARD MUTEX,
OBJ,
LOCK   
 

Value:

ACE_Read_Guard< MUTEX > OBJ (LOCK); \
    if (OBJ.locked () == 0) return;

#define ACE_READ_GUARD_RETURN MUTEX,
OBJ,
LOCK,
RETURN   
 

Value:

ACE_Read_Guard< MUTEX > OBJ (LOCK); \
    if (OBJ.locked () == 0) return RETURN;

#define ACE_RTSIG_MAX   8
 

#define ACE_SBRK_MEMORY_POOL   ACE_Sbrk_Memory_Pool, ACE_Sbrk_Memory_Pool_Options
 

#define ACE_SCHED_FIFO   1
 

#define ACE_SCHED_OTHER   0
 

#define ACE_SCHED_RR   2
 

#define ACE_SCOPE_LWP   1
 

#define ACE_SCOPE_PROCESS   0
 

#define ACE_SCOPE_THREAD   2
 

#define ACE_SEH_EXCEPT      while (0)
 

#define ACE_SEH_FINALLY   if (1)
 

#define ACE_SEH_TRY   if (1)
 

#define ACE_SELF   (0)
 

#define ACE_SERVENT_DATA_SIZE   (4*1024)
 

#define ACE_SHARED_MEMORY_POOL   ACE_Shared_Memory_Pool, ACE_Shared_Memory_Pool_Options
 

#define ACE_SHLIB_INVALID_HANDLE   0
 

#define ACE_SHUTDOWN_BOTH   2
 

#define ACE_SHUTDOWN_READ   0
 

Helper for the ACE_OS::cuserid() function.

On some platforms cuserid is a macro. Defining ACE_OS::cuserid() becomes really hard, as there is no way to save the macro definition using the pre-processor. This inline function achieves the same effect, without namespace pollution or performance penalties.

Todo:
We maybe should move a lot of the code in ACE_OS::cuserid here so it is treated the same as the above ace_difftime and ace_timezone. But since there is a good deal more code in ACE_OS::cuserid, we probably need to move some of it off into some sort of emulation function.

#define ACE_SHUTDOWN_WRITE   1
 

#define ACE_SIGIO   -1
 

#define ACE_SIGRTMAX   SIGRTMAX
 

#define ACE_SIGRTMIN   SIGRTMIN
 

#define ACE_SIGURG   -2
 

#define ACE_SOCK_ACCEPTOR   ACE_SOCK_Acceptor, ACE_INET_Addr
 

#define ACE_SOCK_CONNECTOR   ACE_SOCK_Connector, ACE_INET_Addr
 

#define ACE_SOCK_STREAM   ACE_SOCK_Stream, ACE_INET_Addr
 

#define ACE_SPIPE_ACCEPTOR   ACE_SPIPE_Acceptor, ACE_SPIPE_Addr
 

#define ACE_SPIPE_CONNECTOR   ACE_SPIPE_Connector, ACE_SPIPE_Addr
 

#define ACE_SPIPE_STREAM   ACE_SPIPE_Stream, ACE_SPIPE_Addr
 

#define ACE_SPRINTF_ADAPTER      X
 

ACE_WIN32

#define ACE_STANDARD_CHARACTER_SET_SIZE   128
 

#define ACE_STATIC_SVC_DECLARE SERVICE_CLASS       extern ACE_Static_Svc_Descriptor ace_svc_desc_##SERVICE_CLASS ;
 

Declare a the data structure required to register a statically linked service into the service configurator.

The macro should be used in the header file where the service is declared, its only argument is usually the name of the class that implements the service.

Parameters:
SERVICE_CLASS  The name of the class implementing the service.

#define ACE_STATIC_SVC_DECLARE_EXPORT EXPORT_NAME,
SERVICE_CLASS       extern EXPORT_NAME##_Export ACE_Static_Svc_Descriptor ace_svc_desc_##SERVICE_CLASS;
 

As ACE_STATIC_SVC_DECLARE, but using an export macro for NT compilers.

NT compilers require the use of explicit directives to export and import symbols from a DLL. If you need to define a service in a dynamic library you should use this version instead. Normally ACE uses a macro to inject the correct export/import directives on NT. Naturally it also the macro expands to a blank on platforms that do not require such directives. The first argument (EXPORT_NAME) is the prefix for this export macro, the full name is formed by appending _Export. ACE provides tools to generate header files that define the macro correctly on all platforms, please see $ACE_ROOT/bin/generate_export_file.pl

Parameters:
EXPORT_NAME  The export macro name prefix.
SERVICE_CLASS  The name of the class implementing the service.

#define ACE_STATIC_SVC_DEFINE SERVICE_CLASS,
NAME,
TYPE,
FN,
FLAGS,
ACTIVE       ACE_Static_Svc_Descriptor ace_svc_desc_##SERVICE_CLASS = { NAME, TYPE, FN, FLAGS, ACTIVE };
 

Define the data structure used to register a statically linked service into the Service Configurator.

The service configurator requires several arguments to build and control an statically linked service, including its name, the factory function used to construct the service, and some flags. All those parameters are configured in a single structure, an instance of this structure is statically initialized using the following macro.

Parameters:
SERVICE_CLASS  The name of the class that implements the service, must be derived (directly or indirectly) from ACE_Service_Object.
NAME  The name for this service, this name is used by the service configurator to match configuration options provided in the svc.conf file.
TYPE  The type of object. Objects can be streams or service objects. Please read the ACE_Service_Configurator and ASX documentation for more details.
FN  The name of the factory function, usually the ACE_SVC_NAME macro can be used to generate the name. The factory function is often defined using ACE_FACTORY_DECLARE and ACE_FACTORY_DEFINE.
FLAGS  Flags to control the ownership and lifecycle of the object. Please read the ACE_Service_Configurator documentation for more details.
ACTIVE  If not zero then a thread will be dedicate to the service. Please read the ACE_Service_Configurator documentation for more details.

#define ACE_STATIC_SVC_REGISTER SERVICE_CLASS       do {} while (0)
 

#define ACE_STATIC_SVC_REQUIRE SERVICE_CLASS   
 

Value:

class ACE_Static_Svc_##SERVICE_CLASS {\
public:\
  ACE_Static_Svc_##SERVICE_CLASS() { \
    ACE_Service_Config::static_svcs ()->insert (\
         &ace_svc_desc_##SERVICE_CLASS); \
    } \
};\
static ACE_Static_Svc_##SERVICE_CLASS ace_static_svc_##SERVICE_CLASS;
Automatically register a service with the service configurator.

In some applications the services must be automatically registered with the service configurator, before main() starts. The ACE_STATIC_SVC_REQUIRE macro defines a class whose constructor register the service, it also defines a static instance of that class to ensure that the service is registered before main.

On platforms that lack adequate support for static C++ objects the macro ACE_STATIC_SVC_REGISTER can be used to explicitly register the service.

Todo:
One class per-Service_Object seems wasteful. It should be possible to define a single class and re-use it for all the service objects, just by passing the Service_Descriptor as an argument to the constructor.

#define ACE_STATUS_TIMEOUT   STATUS_TIMEOUT
 

#define ACE_STDERR   GetStdHandle (STD_ERROR_HANDLE)
 

#define ACE_STDIN   GetStdHandle (STD_INPUT_HANDLE)
 

#define ACE_STDOUT   GetStdHandle (STD_OUTPUT_HANDLE)
 

#define ACE_STREAMBUF_SIZE   1024
 

#define ACE_SVC_FACTORY_DECLARE      ACE_FACTORY_DECLARE (ACE_Svc, X)
 

#define ACE_SVC_FACTORY_DEFINE      ACE_FACTORY_DEFINE (ACE_Svc, X)
 

#define ACE_SVC_INVOKE SERVICE_CLASS       _make_##SERVICE_CLASS (0)
 

The canonical way to invoke (i.e. construct) a service factory method.

#define ACE_SVC_NAME SERVICE_CLASS       _make_##SERVICE_CLASS
 

The canonical name for a service factory method.

#define ACE_SWAP_LONG  
 

Value:

((ACE_SWAP_WORD ((L) & 0xFFFF) << 16) \
            | ACE_SWAP_WORD(((L) >> 16) & 0xFFFF))

#define ACE_SWAP_WORD      ((((L) & 0x00FF) << 8) | (((L) & 0xFF00) >> 8))
 

#define ACE_SYNCH_1   ACE_SYNCH_DECL
 

#define ACE_SYNCH_2   ACE_SYNCH_USE
 

#define ACE_SYNCH_CONDITION_T   _ACE_SYNCH_CONDITION_T
 

#define ACE_SYNCH_DECL   class _ACE_SYNCH_MUTEX_T, class _ACE_SYNCH_CONDITION_T
 

#define ACE_SYNCH_MUTEX_T   _ACE_SYNCH_MUTEX_T
 

#define ACE_SYNCH_SEMAPHORE_T   _ACE_SYNCH_SEMAPHORE_T
 

#define ACE_SYNCH_USE   _ACE_SYNCH_MUTEX_T, _ACE_SYNCH_CONDITION_T
 

#define ACE_SYSCALL_FAILED   0xFFFFFFFF
 

#define ACE_TEMPLATE_METHOD_SPECIALIZATION
 

#define ACE_TEMPLATE_SPECIALIZATION
 

#define ACE_THR_PRI_FIFO_DEF   0
 

#define ACE_THR_PRI_OTHER_DEF   0
 

#define ACE_THROW_SPEC      throw X
 

#define ACE_TIMER_SKEW   0
 

#define ACE_TLI_ACCEPTOR   ACE_TLI_Acceptor, ACE_INET_Addr
 

#define ACE_TLI_CONNECTOR   ACE_TLI_Connector, ACE_INET_Addr
 

#define ACE_TLI_STREAM   ACE_TLI_Stream, ACE_INET_Addr
 

#define ACE_TSS_GET I,
     (I)
 

#define ACE_TSS_TYPE      T
 

#define ACE_TYPENAME
 

#define ACE_UPIPE_ACCEPTOR   ACE_UPIPE_Acceptor, ACE_SPIPE_Addr
 

#define ACE_UPIPE_CONNECTOR   ACE_UPIPE_Connector, ACE_SPIPE_Addr
 

#define ACE_UPIPE_STREAM   ACE_UPIPE_Stream, ACE_SPIPE_Addr
 

#define ACE_USING
 

#define ACE_WAIT_FAILED   WAIT_FAILED
 

#define ACE_WAIT_TIMEOUT   WAIT_TIMEOUT
 

#define ACE_WRITE_GUARD MUTEX,
OBJ,
LOCK   
 

Value:

ACE_Write_Guard< MUTEX > OBJ (LOCK); \
    if (OBJ.locked () == 0) return;

#define ACE_WRITE_GUARD_RETURN MUTEX,
OBJ,
LOCK,
RETURN   
 

Value:

ACE_Write_Guard< MUTEX > OBJ (LOCK); \
    if (OBJ.locked () == 0) return RETURN;

#define ACE_WSOCK_VERSION   0, 0
 

#define AF_ANY   (-1)
 

#define AF_DEV   (AF_MAX + 3)
 

#define AF_FILE   (AF_MAX + 2)
 

#define AF_SPIPE   (AF_MAX + 1)
 

#define AF_UPIPE   (AF_SPIPE)
 

#define CLOCK_REALTIME   0
 

#define EADDRINUSE   WSAEADDRINUSE
 

#define EADDRINUSE   WSAEADDRINUSE
 

#define EADDRNOTAVAIL   WSAEADDRNOTAVAIL
 

#define EAFNOSUPPORT   WSAEAFNOSUPPORT
 

#define EALREADY   WSAEALREADY
 

#define EBUSY   ETIME
 

#define ECOMM   ECONNABORTED
 

#define ECONNABORTED   WSAECONNABORTED
 

#define ECONNREFUSED   WSAECONNREFUSED
 

#define ECONNRESET   WSAECONNRESET
 

#define EDEADLK   1000
 

#define EDESTADDRREQ   WSAEDESTADDRREQ
 

#define EDQUOT   WSAEDQUOT
 

#define EHOSTDOWN   WSAEHOSTDOWN
 

#define EHOSTUNREACH   WSAEHOSTUNREACH
 

#define EIDRM   0
 

#define EINPROGRESS   WSAEINPROGRESS
 

#define EISCONN   WSAEISCONN
 

#define ELOOP   WSAELOOP
 

#define EMSGSIZE   WSAEMSGSIZE
 

#define ENETDOWN   WSAENETDOWN
 

#define ENETRESET   WSAENETRESET
 

#define ENETUNREACH   WSAENETUNREACH
 

#define ENFILE   EMFILE
 

#define ENOBUFS   WSAENOBUFS
 

#define ENOPROTOOPT   WSAENOPROTOOPT
 

#define ENOTCONN   WSAENOTCONN
 

#define ENOTSOCK   WSAENOTSOCK
 

#define EOPNOTSUPP   WSAEOPNOTSUPP
 

#define EPFNOSUPPORT   WSAEPFNOSUPPORT
 

#define EPROCLIM   WSAEPROCLIM
 

#define EPROTONOSUPPORT   WSAEPROTONOSUPPORT
 

#define EPROTOTYPE   WSAEPROTOTYPE
 

#define EREMOTE   WSAEREMOTE
 

#define ESHUTDOWN   WSAESHUTDOWN
 

#define ESOCKTNOSUPPORT   WSAESOCKTNOSUPPORT
 

#define ESTALE   WSAESTALE
 

#define ESUCCESS   0
 

#define ETIME   ERROR_SEM_TIMEOUT
 

#define ETIMEDOUT   WSAETIMEDOUT
 

#define ETOOMANYREFS   WSAETOOMANYREFS
 

#define EUSERS   WSAEUSERS
 

#define EWOULDBLOCK   WSAEWOULDBLOCK
 

#define F_GETFL   0
 

#define F_OK   0
 

#define GETALL   0
 

#define GETVAL   0
 

#define INADDR_LOOPBACK   ((ACE_UINT32) 0x7f000001)
 

#define INADDR_NONE   ((ACE_UINT32) 0xffffffff)
 

#define INET6_ADDRSTRLEN   46
 

#define INET_ADDRSTRLEN   16
 

#define IOV_MAX   16
 

#define IP_ADD_MEMBERSHIP   0
 

#define IP_DEFAULT_MULTICAST_LOOP   0
 

#define IP_DEFAULT_MULTICAST_TTL   0
 

#define IP_DROP_MEMBERSHIP   0
 

#define IP_MAX_MEMBERSHIPS   0
 

#define IP_MULTICAST_IF   0
 

#define IP_MULTICAST_TTL   1
 

#define IPC_CREAT   0
 

#define IPC_EXCL   0
 

#define IPC_NOWAIT   0
 

#define IPC_PRIVATE   ACE_INVALID_SEM_KEY
 

#define IPC_RMID   0
 

#define IPC_STAT   0
 

#define LOCALNAME   0
 

#define MAP_FAILED   ((void *) -1)
 

#define MAP_FIXED   4
 

#define MAP_PRIVATE   1
 

#define MAP_SHARED   2
 

#define MAXHOSTNAMELEN   256
 

#define MAXNAMELEN   256
 

#define MAXNAMLEN   _MAX_FNAME
 

#define MAXPATHLEN   _MAX_PATH
 

#define MS_ASYNC   0
 

#define MS_INVALIDATE   0
 

#define MS_SYNC   0x0
 

#define NFDBITS   32
 

#define O_BINARY   0
 

#define O_NDELAY   1
 

#define O_NONBLOCK   1
 

#define O_RAW   0
 

#define O_TEXT   0
 

#define PIPE_BUF   5120
 

#define PROT_RDWR   PAGE_READWRITE
 

#define PROT_READ   PAGE_READONLY
 

#define PROT_WRITE   PAGE_READWRITE
 

#define R_OK   04
 

#define REMOTENAME   1
 

#define RUSAGE_SELF   1
 

#define SA_RESTART   0
 

#define SA_SIGINFO   0
 

#define SEM_UNDO   0
 

#define SETALL   0
 

#define SETVAL   0
 

#define SIG_BLOCK   1
 

#define SIG_DFL   ((__sighandler_t) 0)
 

#define SIG_ERR   ((__sighandler_t) -1)
 

#define SIG_IGN   ((__sighandler_t) 1)
 

#define SIG_SETMASK   3
 

#define SIG_UNBLOCK   2
 

#define SIGALRM   0
 

#define SIGCHLD   0
 

#define SIGCLD   SIGCHLD
 

#define SIGHUP   0
 

#define SIGINT   0
 

#define SIGIO   0
 

#define SIGPIPE   0
 

#define SIGQUIT   0
 

#define SIGSEGV   0
 

#define SIGUSR1   0
 

#define SIGUSR2   0
 

#define SIOCGIFADDR   0
 

#define SIOCGIFBRDADDR   0
 

#define W_OK   02
 

#define WCOREDUMP stat       0
 

#define WEXITSTATUS stat       stat
 

#define WIFCONTINUED stat       0
 

#define WIFEXITED stat       1
 

#define WIFSIGNALED stat       0
 

#define WIFSTOPPED stat       0
 

#define WNOHANG   0100
 

#define WSTOPSIG stat       0
 

#define WTERMSIG stat       0
 

#define X_OK   01
 


Typedef Documentation

typedef void(* ACE_CLEANUP_FUNC)(void *object, void *param)
 

typedef int(* ACE_COMPARE_FUNC)(const void *, const void *)
 

typedef const ACE_TCHAR* ACE_DL_TYPE
 

typedef DWORD ACE_exitcode
 

typedef fd_set ACE_FD_SET_TYPE
 

typedef char ACE_HOSTENT_DATA[ACE_HOSTENT_DATA_SIZE]
 

typedef unsigned __int64 ACE_hrtime_t
 

typedef HANDLE ACE_hthread_t
 

typedef DWORD ACE_id_t
 

typedef int ACE_idtype_t
 

typedef LPTRANSMIT_FILE_BUFFERS ACE_LPTRANSMIT_FILE_BUFFERS
 

typedef OVERLAPPED ACE_OVERLAPPED
 

typedef void(* ACE_OVERLAPPED_COMPLETION_FUNC)(u_long error, u_long bytes_transferred, ACE_OVERLAPPED *overlapped, u_long flags)
 

typedef int ACE_pri_t
 

typedef char ACE_PROTOENT_DATA[ACE_PROTOENT_DATA_SIZE]
 

typedef PTRANSMIT_FILE_BUFFERS ACE_PTRANSMIT_FILE_BUFFERS
 

typedef unsigned __int64 ACE_QWORD
 

typedef u_int ACE_RANDR_TYPE
 

typedef struct iovec ACE_READV_TYPE
 

typedef int ACE_Rusage
 

typedef int ACE_Sched_Priority
 

typedef const struct msghdr ACE_SENDMSG_TYPE
 

typedef char ACE_SERVENT_DATA[ACE_SERVENT_DATA_SIZE]
 

typedef void(* ACE_Service_Object_Exterminator)(void *)
 

Service Objects, i.e., objects dynamically loaded via the service configurator, must provide a destructor function with the following prototype to perform object cleanup.

typedef const struct rlimit ACE_SETRLIMIT_TYPE
 

typedef HINSTANCE ACE_SHLIB_HANDLE
 

typedef void(* ACE_Sig_Handler_Ex)(int, siginfo_t *siginfo, ucontext_t *ucontext)
 

typedef void(* ACE_SIGNAL_C_FUNC)(int,siginfo_t*,void*)
 

typedef void(__cdecl * ACE_SignalHandler)(int)
 

typedef void(__cdecl * ACE_SignalHandlerV)(int)
 

typedef u_long ACE_SOCK_GROUP
 

typedef struct _stat ACE_stat
 

typedef void(* ACE_THR_C_DEST)(void *)
 

typedef void(* ACE_THR_DEST)(void *)
 

typedef ACE_THR_FUNC ACE_THR_FUNC_INTERNAL
 

typedef DWORD ACE_thread_key_t
 

typedef DWORD ACE_thread_t
 

typedef double ACE_timer_t
 

typedef TRANSMIT_FILE_BUFFERS ACE_TRANSMIT_FILE_BUFFERS
 

typedef struct utsname ACE_utsname
 

typedef const struct iovec ACE_WRITEV_TYPE
 

typedef char* caddr_t
 

typedef int clockid_t
 

typedef long gid_t
 

typedef u_short mode_t
 

typedef DWORD nlink_t
 

typedef long pid_t
 

typedef int sig_atomic_t
 

typedef int ssize_t
 

typedef const char** SYS_SIGLIST
 

typedef struct timespec timespec_t
 

typedef int ucontext_t
 

typedef long uid_t
 


Function Documentation

ACE_OS_Export void ace_cleanup_destroyer ACE_Cleanup   object,
void *    param = 0
 

double ace_difftime time_t    t1,
time_t    t0
[inline]
 

Helper for the ACE_OS::difftime() function.

We moved the difftime code that used to be in ACE_OS::difftime() here because on some platforms "difftime" is a macro. Because of this, the name ACE_OS::difftime will cause errors. So in order to use the macro as it is defined but also keep the name ACE_OS::difftime, we use difftime first here in this inline function, and then undefine it.

DWORD ACE_HIGH_DWORD ACE_QWORD    q [inline]
 

DWORD ACE_LOW_DWORD ACE_QWORD    q [inline]
 

ACE_QWORD ACE_MAKE_QWORD DWORD    lo,
DWORD    hi
[inline]
 

void ACE_OS_Object_Manager_Internal_Exit_Hook void   
 

int ACE_SEH_Default_Exception_Handler void *   
 

int ACE_SEH_Default_Exception_Selector void *   
 

long ace_timezone   [inline]
 

Helper for the ACE_OS::timezone() function.

We put all the timezone stuff that used to be in ACE_OS::timezone() here because on some platforms "timezone" is a macro. Because of this, the name ACE_OS::timezone will cause errors. So in order to use the macro as it is defined but also keep the name ACE_OS::timezone, we use timezone first here in this inline function, and then undefine timezone.

ACE_OS_Export ACE_Time_Value operator+ const ACE_Time_Value   tv1,
const ACE_Time_Value   tv2
 

ACE_OS_Export ACE_Time_Value operator- const ACE_Time_Value   tv1,
const ACE_Time_Value   tv2
 


Variable Documentation

const ACE_UINT32 ACE_U_ONE_SECOND_IN_MSECS = 1000U [static]
 

const ACE_UINT32 ACE_U_ONE_SECOND_IN_NSECS = 1000000000U [static]
 

const ACE_UINT32 ACE_U_ONE_SECOND_IN_USECS = 1000000U [static]
 


Generated on Sun Feb 17 17:03:33 2002 for ACE by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001