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/Time_Value.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:

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

## 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
struct | ACE_recursive_mutex_state
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_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
| The ordering of the fields in this struct is important. It has to match those in WSABUF. More...
struct | ip_mreq
struct | msghdr
struct | msghdr
struct | msqid_ds
struct | rusage
| Fake the UNIX rusage structure. Perhaps we can add more to this later on? More...
union | semun
struct | shmaddr
struct | siginfo_t
struct | strbuf
## 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)
| Declare a the data structure required to register a statically linked service into the service configurator. More...
#define | ACE_FACTORY_DECLARE(CLS, SERVICE_CLASS)
| Declare the factory method used to create dynamically loadable services. More...
#define | ACE_Local_Service_Export
| Define the factory method (and destructor) for a dynamically loadable service. More...
#define | ACE_FACTORY_DEFINE(CLS, SERVICE_CLASS)
| Declare a the data structure required to register a statically linked service into the service configurator. 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))) & (~((ptrdiff_t)((alignment)-1))))
| Return the next integer aligned to a required boundary. More...
#define | ACE_ptr_align_binary(ptr, alignment) ((char *) ACE_align_binary (((ptrdiff_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 | E2BIG 7
#define | ACE_USING
#define | ACE_TYPENAME
#define | ACE_TEMPLATE_SPECIALIZATION
#define | ACE_TEMPLATE_METHOD_SPECIALIZATION
#define | ACE_SYNCH_DECL class _ACE_SYNCH
#define | ACE_SYNCH_USE _ACE_SYNCH
#define | ACE_SYNCH_MUTEX_T ACE_TYPENAME _ACE_SYNCH::MUTEX
#define | ACE_SYNCH_CONDITION_T ACE_TYPENAME _ACE_SYNCH::CONDITION
#define | ACE_SYNCH_SEMAPHORE_T ACE_TYPENAME _ACE_SYNCH::SEMAPHORE
#define | ACE_MEM_POOL_1 class _ACE_MEM_POOL
#define | ACE_MEM_POOL_2 _ACE_MEM_POOL
#define | ACE_MEM_POOL _ACE_MEM_POOL
#define | ACE_MEM_POOL_OPTIONS ACE_TYPENAME _ACE_MEM_POOL::OPTIONS
#define | ACE_PEER_STREAM_1 class _ACE_PEER_STREAM
#define | ACE_PEER_STREAM_2 _ACE_PEER_STREAM
#define | ACE_PEER_STREAM _ACE_PEER_STREAM
#define | ACE_PEER_STREAM_ADDR ACE_TYPENAME _ACE_PEER_STREAM::PEER_ADDR
#define | ACE_PEER_ACCEPTOR_1 class _ACE_PEER_ACCEPTOR
#define | ACE_PEER_ACCEPTOR_2 _ACE_PEER_ACCEPTOR
#define | ACE_PEER_ACCEPTOR _ACE_PEER_ACCEPTOR
#define | ACE_PEER_ACCEPTOR_ADDR ACE_TYPENAME _ACE_PEER_ACCEPTOR::PEER_ADDR
#define | ACE_PEER_CONNECTOR_1 class _ACE_PEER_CONNECTOR
#define | ACE_PEER_CONNECTOR_2 _ACE_PEER_CONNECTOR
#define | ACE_PEER_CONNECTOR _ACE_PEER_CONNECTOR
#define | ACE_PEER_CONNECTOR_ADDR ACE_TYPENAME _ACE_PEER_CONNECTOR::PEER_ADDR
#define | ACE_PEER_CONNECTOR_ADDR_ANY ACE_PEER_CONNECTOR_ADDR::sap_any
#define | ACE_SOCK_ACCEPTOR ACE_SOCK_Acceptor
#define | ACE_SOCK_CONNECTOR ACE_SOCK_Connector
#define | ACE_SOCK_STREAM ACE_SOCK_Stream
#define | ACE_MEM_ACCEPTOR ACE_MEM_Acceptor
#define | ACE_MEM_CONNECTOR ACE_MEM_Connector
#define | ACE_MEM_STREAM ACE_MEM_Stream
#define | ACE_LSOCK_ACCEPTOR ACE_LSOCK_Acceptor
#define | ACE_LSOCK_CONNECTOR ACE_LSOCK_Connector
#define | ACE_LSOCK_STREAM ACE_LSOCK_Stream
#define | ACE_TLI_ACCEPTOR ACE_TLI_Acceptor
#define | ACE_TLI_CONNECTOR ACE_TLI_Connector
#define | ACE_TLI_STREAM ACE_TLI_Stream
#define | ACE_SPIPE_ACCEPTOR ACE_SPIPE_Acceptor
#define | ACE_SPIPE_CONNECTOR ACE_SPIPE_Connector
#define | ACE_SPIPE_STREAM ACE_SPIPE_Stream
#define | ACE_UPIPE_ACCEPTOR ACE_UPIPE_Acceptor
#define | ACE_UPIPE_CONNECTOR ACE_UPIPE_Connector
#define | ACE_UPIPE_STREAM ACE_UPIPE_Stream
#define | ACE_FILE_CONNECTOR ACE_FILE_Connector
#define | ACE_FILE_STREAM ACE_FILE_IO
#define | ACE_MMAP_MEMORY_POOL ACE_MMAP_Memory_Pool
#define | ACE_LITE_MMAP_MEMORY_POOL ACE_Lite_MMAP_Memory_Pool
#define | ACE_SBRK_MEMORY_POOL ACE_Sbrk_Memory_Pool
#define | ACE_SHARED_MEMORY_POOL ACE_Shared_Memory_Pool
#define | ACE_LOCAL_MEMORY_POOL ACE_Local_Memory_Pool
#define | ACE_PAGEFILE_MEMORY_POOL ACE_Pagefile_Memory_Pool
#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_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_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 | 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 | ENXIO 6
#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 | 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_ALLOCATOR_NORETURN(POINTER, ALLOCATOR)
#define | ACE_NEW_MALLOC_RETURN(POINTER, ALLOCATOR, CONSTRUCTOR, RET_VAL)
#define | ACE_NEW_MALLOC(POINTER, ALLOCATOR, CONSTRUCTOR)
#define | ACE_NEW_MALLOC_NORETURN(POINTER, ALLOCATOR, CONSTRUCTOR)
#define | ACE_NOOP(x)
#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_WMAIN wmain
#define | ACE_TMAIN 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 | 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 0
#define | ACE_SIGRTMAX 0
## Typedefs
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 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 const ACE_TCHAR * | ACE_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_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.1190 2002/12/23 22:27:31 shuston 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))) & (~((ptrdiff_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_NORETURN | ( | POINTER,
|  | ALLOCATOR |  | ) |

| Value:
    do { POINTER = ALLOCATOR; \
         if (POINTER == 0) { errno = ENOMEM; } \
       } 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_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:
    void _gobble_##SERVICE_CLASS (void *p) { \
      ACE_Service_Object *_p = ACE_static_cast (ACE_Service_Object *, p); \
      ACE_ASSERT (_p != 0); \
      delete _p; } \
    extern "C" CLS##_Export 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; \
    }
  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_FD_SETSIZE FD_SETSIZE

#define ACE_FILE_CONNECTOR ACE_FILE_Connector

#define ACE_FILE_STREAM ACE_FILE_IO

#define ACE_HAS_ASCII

#define ACE_HOSTENT_DATA_SIZE (4*1024)

#define ACE_HTONL | ( | X |  | ) | X

#define ACE_HTONS | ( | x |  | ) | x

#define ACE_IDL_NCTOHL | ( | X |  | ) | (X << 24)

#define ACE_IDL_NSTOHL | ( | X |  | ) | ((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

#define ACE_LOCAL_MEMORY_POOL ACE_Local_Memory_Pool

#define ACE_Local_Service_Export

| 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. If this macro is used to define a factory function that need not be exported (for example, in a static service situation), CLS can be specified as ACE_Local_Service.

#define ACE_LSOCK_ACCEPTOR ACE_LSOCK_Acceptor

#define ACE_LSOCK_CONNECTOR ACE_LSOCK_Connector

#define ACE_LSOCK_STREAM ACE_LSOCK_Stream

#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_MEM_ACCEPTOR ACE_MEM_Acceptor

#define ACE_MEM_CONNECTOR ACE_MEM_Connector

#define ACE_MEM_POOL _ACE_MEM_POOL

#define ACE_MEM_POOL_1 class _ACE_MEM_POOL

#define ACE_MEM_POOL_2 _ACE_MEM_POOL

#define ACE_MEM_POOL_OPTIONS ACE_TYPENAME _ACE_MEM_POOL::OPTIONS

#define ACE_MEM_STREAM ACE_MEM_Stream

#define ACE_MMAP_MEMORY_POOL ACE_MMAP_Memory_Pool

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

#define ACE_MT | ( | X |  | ) |

#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_NORETURN | ( | POINTER,
|  | ALLOCATOR,
|  | CONSTRUCTOR |  | ) |

| Value:
    do { POINTER = ALLOCATOR; \
         if (POINTER == 0) { errno = ENOMEM;} \
         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 | ( | x |  | ) |

#define ACE_NSIG NSIG

#define ACE_NTOHL | ( | X |  | ) | X

#define ACE_NTOHS | ( | x |  | ) | x

#define ACE_OS_TRACE | ( | X |  | ) |

#define ACE_OSTREAM_TYPE ostream

#define ACE_PAGEFILE_MEMORY_POOL ACE_Pagefile_Memory_Pool

#define ACE_PEER_ACCEPTOR _ACE_PEER_ACCEPTOR

#define ACE_PEER_ACCEPTOR_1 class _ACE_PEER_ACCEPTOR

#define ACE_PEER_ACCEPTOR_2 _ACE_PEER_ACCEPTOR

#define ACE_PEER_ACCEPTOR_ADDR ACE_TYPENAME _ACE_PEER_ACCEPTOR::PEER_ADDR

#define ACE_PEER_CONNECTOR _ACE_PEER_CONNECTOR

#define ACE_PEER_CONNECTOR_1 class _ACE_PEER_CONNECTOR

#define ACE_PEER_CONNECTOR_2 _ACE_PEER_CONNECTOR

#define ACE_PEER_CONNECTOR_ADDR ACE_TYPENAME _ACE_PEER_CONNECTOR::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

#define ACE_PEER_STREAM_2 _ACE_PEER_STREAM

#define ACE_PEER_STREAM_ADDR ACE_TYPENAME _ACE_PEER_STREAM::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 | ( | A |  | ) |

#define ACE_PTHREAD_CLEANUP_PUSH | ( | A |  | ) |

#define ACE_ptr_align_binary | ( | ptr,
|  | alignment |  | ) | ((char *) ACE_align_binary (((ptrdiff_t) (ptr)), (alignment)))

| Return the next address aligned to a required boundary.

#define ACE_SBRK_MEMORY_POOL ACE_Sbrk_Memory_Pool

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

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

#define ACE_SIGRTMIN 0

#define ACE_SIGURG -2

#define ACE_SOCK_ACCEPTOR ACE_SOCK_Acceptor

#define ACE_SOCK_CONNECTOR ACE_SOCK_Connector

#define ACE_SOCK_STREAM ACE_SOCK_Stream

#define ACE_SPIPE_ACCEPTOR ACE_SPIPE_Acceptor

#define ACE_SPIPE_CONNECTOR ACE_SPIPE_Connector

#define ACE_SPIPE_STREAM ACE_SPIPE_Stream

#define ACE_SPRINTF_ADAPTER | ( | X |  | ) | 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)

  | 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_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 | ( | X |  | ) | ACE_FACTORY_DECLARE (ACE_Svc, X)

#define ACE_SVC_FACTORY_DEFINE | ( | X |  | ) | 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 | ( | L |  | ) |

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

#define ACE_SWAP_WORD | ( | L |  | ) | ((((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_TYPENAME _ACE_SYNCH::CONDITION

#define ACE_SYNCH_DECL class _ACE_SYNCH

#define ACE_SYNCH_MUTEX_T ACE_TYPENAME _ACE_SYNCH::MUTEX

#define ACE_SYNCH_SEMAPHORE_T ACE_TYPENAME _ACE_SYNCH::SEMAPHORE

#define ACE_SYNCH_USE _ACE_SYNCH

#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 | ( | X |  | ) | throw X

#define ACE_TIMER_SKEW 0

#define ACE_TLI_ACCEPTOR ACE_TLI_Acceptor

#define ACE_TLI_CONNECTOR ACE_TLI_Connector

#define ACE_TLI_STREAM ACE_TLI_Stream

#define ACE_TMAIN main

#define ACE_TSS_GET | ( | I,
|  | T |  | ) | (I)

#define ACE_TSS_TYPE | ( | T |  | ) | T

#define ACE_TYPENAME

#define ACE_UPIPE_ACCEPTOR ACE_UPIPE_Acceptor

#define ACE_UPIPE_CONNECTOR ACE_UPIPE_Connector

#define ACE_UPIPE_STREAM ACE_UPIPE_Stream

#define ACE_USING

#define ACE_WAIT_FAILED WAIT_FAILED

#define ACE_WAIT_TIMEOUT WAIT_TIMEOUT

#define ACE_WMAIN wmain

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

#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 ENXIO 6

#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 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 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 const char** SYS_SIGLIST

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.

## 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]`