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:

Include dependency graph

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

Included by dependency graph

Go to the source code of this file.

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)

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_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_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_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

Id:
OS.h,v 1.1.1.4.2.2 2003/05/19 16:25:44 chad Exp

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

Definition in file OS.h.


Define Documentation

#define _O_BINARY   O_BINARY
 

Definition at line 3636 of file OS.h.

#define _O_RAW   O_RAW
 

Definition at line 3648 of file OS.h.

#define _O_TEXT   O_TEXT
 

Definition at line 3642 of file OS.h.

Referenced by ACE_OS::fopen.

#define _SC_AIO_MAX   1
 

Definition at line 42 of file OS.h.

Referenced by ACE_POSIX_AIOCB_Proactor::check_max_aio_num.

#define _SC_TIMER_MAX   44
 

Definition at line 4040 of file OS.h.

#define ACE_ADDRESS_FAMILY_INET   AF_INET
 

Definition at line 3753 of file OS.h.

#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

Definition at line 7133 of file OS.h.

Referenced by ACE_OutputCDR::adjust.

#define ACE_ALLOCATOR POINTER,
ALLOCATOR   
 

Value:

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

Definition at line 6664 of file OS.h.

Referenced by ACE_Array_Base::ACE_Array_Base, ACE_Data_Block::ACE_Data_Block, ACE_NS_WString::ACE_NS_WString, ACE_Obstack_T::ACE_Obstack_T, ACE_Strategy_Acceptor::ACE_Strategy_Acceptor, ACE_Log_Msg::local_host, ACE_Array_Base::operator=, and ACE_String_Base::set.

#define ACE_ALLOCATOR_NORETURN POINTER,
ALLOCATOR   
 

Value:

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

Definition at line 6668 of file OS.h.

#define ACE_ALLOCATOR_RETURN POINTER,
ALLOCATOR,
RET_VAL   
 

Value:

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

Definition at line 6660 of file OS.h.

Referenced by ACE_Hash_Map_Manager_Ex::bind_i, ACE_Hash_Map_Manager_Ex::create_buckets, ACE_OS::flock_init, ACE_MT_MEM_IO::init, ACE_Message_Block::init_i, ACE_Local_Name_Space::list_types_i, ACE_DLL_Strategy::make_svc_handler, ACE_Array_Base::max_size, ACE_TLI_Acceptor::open, ACE_Log_Msg::open, ACE_Strategy_Acceptor::open, ACE_String_Base::operator+=, ACE_Map_Manager::resize_i, ACE_Timer_Heap_T::schedule, ACE_OS::sema_init, ACE_SPIPE_Addr::set, ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::shared_bind, ACE_Data_Block::size, ACE_INET_Addr::string_to_addr, ACE::strndup, and ACE_Hash_Map_Manager_Ex::trybind_i.

#define ACE_ASCII_SIZE   128
 

Definition at line 46 of file OS.h.

#define ACE_CLOEXEC   -3
 

Definition at line 4022 of file OS.h.

Referenced by ACE_IPC_SAP::disable, and ACE_IPC_SAP::enable.

#define ACE_CORBA_1 NAME       CORBA::NAME
 

Definition at line 69 of file OS.h.

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

Definition at line 70 of file OS.h.

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

Definition at line 71 of file OS.h.

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

Definition at line 587 of file OS.h.

Referenced by ACE_MEM_Acceptor::ACE_MEM_Acceptor, ACE_MEM_Connector::ACE_MEM_Connector, and ACE_Name_Options::ACE_Name_Options.

#define ACE_DEFAULT_GLOBALNAME   ACE_LIB_TEXT (ACE_DEFAULT_GLOBALNAME_A)
 

Definition at line 3629 of file OS.h.

#define ACE_DEFAULT_GLOBALNAME_A   "globalnames"
 

Definition at line 3605 of file OS.h.

#define ACE_DEFAULT_GLOBALNAME_W   ACE_TEXT_WIDE(ACE_DEFAULT_GLOBALNAME_A)
 

Definition at line 3625 of file OS.h.

#define ACE_DEFAULT_LOCALNAME   ACE_LIB_TEXT (ACE_DEFAULT_LOCALNAME_A)
 

Definition at line 3628 of file OS.h.

Referenced by ACE_Name_Options::ACE_Name_Options.

#define ACE_DEFAULT_LOCALNAME_A   "localnames"
 

Definition at line 3602 of file OS.h.

#define ACE_DEFAULT_LOCALNAME_W   ACE_TEXT_WIDE(ACE_DEFAULT_LOCALNAME_A)
 

Definition at line 3624 of file OS.h.

#define ACE_DEFAULT_LOG_STREAM   (&cerr)
 

Definition at line 2441 of file OS.h.

Referenced by ACE_Log_Msg::open.

#define ACE_DEFAULT_MUTEX   ACE_LIB_TEXT (ACE_DEFAULT_MUTEX_A)
 

Definition at line 6717 of file OS.h.

#define ACE_DEFAULT_MUTEX_A   "ACE_MUTEX"
 

Definition at line 6710 of file OS.h.

#define ACE_DEFAULT_MUTEX_W   ACE_TEXT_WIDE(ACE_DEFAULT_MUTEX_A)
 

Definition at line 6714 of file OS.h.

#define ACE_DEFAULT_OPEN_PERMS   (FILE_SHARE_READ | FILE_SHARE_WRITE)
 

Definition at line 5290 of file OS.h.

Referenced by ACE_RW_Process_Mutex::ACE_RW_Process_Mutex.

#define ACE_DEFAULT_SELECT_REACTOR_SIZE   ACE_FD_SETSIZE
 

Definition at line 101 of file OS.h.

#define ACE_DEFAULT_SEM_KEY   "ACE_SEM_KEY"
 

Definition at line 2727 of file OS.h.

Referenced by ACE_SV_Semaphore_Complex::ACE_SV_Semaphore_Complex, and ACE_SV_Semaphore_Simple::open.

#define ACE_DEFAULT_SHLIB_MODE   0
 

Definition at line 3005 of file OS.h.

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

Definition at line 2707 of file OS.h.

Referenced by ACE_Service_Config::open_i.

#define ACE_DEFAULT_SYNCH_TYPE   USYNC_THREAD
 

Definition at line 3652 of file OS.h.

#define ACE_DEFAULT_THREAD_PRIORITY   (-0x7fffffffL - 1L)
 

Definition at line 1236 of file OS.h.

Referenced by ACE_ATM_QoS::ACE_ATM_QoS, and ACE_OS::thr_create.

#define ACE_DEFAULT_TIMERS   _SC_TIMER_MAX
 

Definition at line 4046 of file OS.h.

Referenced by ACE_Timer_Heap_T::ACE_Timer_Heap_T.

#define ACE_DEV_NULL   "nul"
 

Definition at line 2757 of file OS.h.

Referenced by ACE_Handle_Gobbler::consume_handles.

#define ACE_DIRECTORY_SEPARATOR_CHAR   ACE_LIB_TEXT (ACE_DIRECTORY_SEPARATOR_CHAR_A)
 

Definition at line 3596 of file OS.h.

Referenced by ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::ACE_Malloc_T, ACE_Lib_Find::ldfind, and ACE_Name_Options::process_name.

#define ACE_DIRECTORY_SEPARATOR_CHAR_A   '\\'
 

Definition at line 2761 of file OS.h.

#define ACE_DIRECTORY_SEPARATOR_CHAR_W   ACE_TEXT_WIDE(ACE_DIRECTORY_SEPARATOR_CHAR_A)
 

Definition at line 3590 of file OS.h.

#define ACE_DIRECTORY_SEPARATOR_STR   ACE_LIB_TEXT (ACE_DIRECTORY_SEPARATOR_STR_A)
 

Definition at line 3595 of file OS.h.

Referenced by ACE_Name_Options::ACE_Name_Options, and ACE_Local_Name_Space::create_manager_i.

#define ACE_DIRECTORY_SEPARATOR_STR_A   "\\"
 

Definition at line 2760 of file OS.h.

#define ACE_DIRECTORY_SEPARATOR_STR_W   ACE_TEXT_WIDE(ACE_DIRECTORY_SEPARATOR_STR_A)
 

Definition at line 3589 of file OS.h.

#define ACE_DLL_PREFIX   ACE_LIB_TEXT ("")
 

Definition at line 2768 of file OS.h.

Referenced by ACE_Lib_Find::ldfind.

#define ACE_DLL_SUFFIX   ACE_LIB_TEXT (".dll")
 

Definition at line 2764 of file OS.h.

Referenced by ACE_Lib_Find::ldfind.

#define ACE_DONT_INCLUDE_ACE_SIGNAL_H
 

Definition at line 2369 of file OS.h.

#define ACE_EBCDIC_SIZE   256
 

Definition at line 47 of file OS.h.

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

Definition at line 1079 of file OS.h.

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

Definition at line 1099 of file OS.h.

#define ACE_FD_SETSIZE   FD_SETSIZE
 

Definition at line 97 of file OS.h.

#define ACE_FILE_CONNECTOR   ACE_FILE_Connector
 

Definition at line 819 of file OS.h.

#define ACE_FILE_STREAM   ACE_FILE_IO
 

Definition at line 820 of file OS.h.

#define ACE_HAS_ASCII
 

Definition at line 53 of file OS.h.

#define ACE_HOSTENT_DATA_SIZE   (4*1024)
 

Definition at line 4055 of file OS.h.

#define ACE_HTONL      X
 

Definition at line 6991 of file OS.h.

Referenced by ACE_INET_Addr::get_host_addr, ACE_SOCK_Dgram_Mcast::make_multicast_ifaddr, and ACE_INET_Addr::set_address.

#define ACE_HTONS      x
 

Definition at line 7001 of file OS.h.

#define ACE_IDL_NCTOHL      (X << 24)
 

Definition at line 6993 of file OS.h.

#define ACE_IDL_NSTOHL      ((X) << 16)
 

Definition at line 6994 of file OS.h.

#define ACE_INFINITE   INFINITE
 

Definition at line 6943 of file OS.h.

Referenced by ACE_WIN32_Proactor::handle_events, ACE_POSIX_AIOCB_Proactor::handle_events, ACE_POSIX_CB_Proactor::handle_events, and ACE_POSIX_AIOCB_Proactor::handle_events_i.

#define ACE_INVALID_PID   ((pid_t) -1)
 

Definition at line 2901 of file OS.h.

Referenced by ACE_Process::ACE_Process, ACE_Process_Options::ACE_Process_Options, ACE_Process_Manager::handle_signal, ACE_Process_Manager::register_handler, ACE_Process_Manager::spawn, ACE_Process::spawn, ACE_Process_Manager::spawn_n, ACE_Process_Manager::wait, and ACE_Process::wait.

#define ACE_INVALID_SEM_KEY   0
 

Definition at line 2730 of file OS.h.

Referenced by ACE_SV_Semaphore_Simple::name_2_key, and ACE_SV_Semaphore_Simple::open.

#define ACE_IOV_MAX   IOV_MAX
 

Definition at line 2395 of file OS.h.

Referenced by ACE_WIN32_Asynch_Read_File::readv, ACE_WIN32_Asynch_Read_Stream::readv, ACE_WIN32_Asynch_Read_Dgram::recv, ACE::recv_n, ACE_WIN32_Asynch_Write_Dgram::send, ACE::send_n, ACE::write_n, ACE_WIN32_Asynch_Write_File::writev, and ACE_WIN32_Asynch_Write_Stream::writev.

#define ACE_IPPROTO_TCP   IPPROTO_TCP
 

Definition at line 4369 of file OS.h.

Referenced by ACE_Pipe::open.

#define ACE_KEY_INDEX OBJ,
KEY       u_int OBJ = KEY
 

Definition at line 6653 of file OS.h.

Referenced by ACE_TSS_Cleanup::insert, ACE_TSS_Keys::is_set, ACE_TSS_Cleanup::key_used, ACE_TSS_Cleanup::remove, ACE_TSS_Keys::test_and_clear, ACE_TSS_Keys::test_and_set, ACE_OS::thr_getspecific, and ACE_OS::thr_setspecific.

#define ACE_LACKS_IP_ADD_MEMBERSHIP
 

Definition at line 3878 of file OS.h.

#define ACE_LD_SEARCH_PATH   ACE_LIB_TEXT ("PATH")
 

Definition at line 2762 of file OS.h.

Referenced by ACE_Lib_Find::ldfind.

#define ACE_LD_SEARCH_PATH_SEPARATOR_STR   ACE_LIB_TEXT (";")
 

Definition at line 2763 of file OS.h.

Referenced by ACE_Lib_Find::ldfind.

#define ACE_LITE_MMAP_MEMORY_POOL   ACE_Lite_MMAP_Memory_Pool
 

Definition at line 824 of file OS.h.

#define ACE_LOCAL_MEMORY_POOL   ACE_Local_Memory_Pool
 

Definition at line 827 of file OS.h.

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

Definition at line 1097 of file OS.h.

#define ACE_LSOCK_ACCEPTOR   ACE_LSOCK_Acceptor
 

Definition at line 799 of file OS.h.

#define ACE_LSOCK_CONNECTOR   ACE_LSOCK_Connector
 

Definition at line 800 of file OS.h.

#define ACE_LSOCK_STREAM   ACE_LSOCK_Stream
 

Definition at line 801 of file OS.h.

#define ACE_MAIN   main
 

Definition at line 6720 of file OS.h.

#define ACE_MAP_FIXED   MAP_FIXED
 

Definition at line 3664 of file OS.h.

#define ACE_MAP_PRIVATE   MAP_PRIVATE
 

Definition at line 3656 of file OS.h.

Referenced by ACE_Filecache_Object::ACE_Filecache_Object, and ACE_Filecache_Object::release.

#define ACE_MAP_SHARED   MAP_SHARED
 

Definition at line 3660 of file OS.h.

#define ACE_MAX_DEFAULT_PORT   65535
 

Definition at line 2697 of file OS.h.

Referenced by ACE_Sock_Connect::bind_port.

#define ACE_MEM_ACCEPTOR   ACE_MEM_Acceptor
 

Definition at line 794 of file OS.h.

#define ACE_MEM_CONNECTOR   ACE_MEM_Connector
 

Definition at line 795 of file OS.h.

#define ACE_MEM_POOL   _ACE_MEM_POOL
 

Definition at line 744 of file OS.h.

#define ACE_MEM_POOL_1   class _ACE_MEM_POOL
 

Definition at line 742 of file OS.h.

#define ACE_MEM_POOL_2   _ACE_MEM_POOL
 

Definition at line 743 of file OS.h.

Referenced by ACE_Malloc::ACE_Malloc, ACE_Malloc_FIFO_Iterator::ACE_Malloc_FIFO_Iterator, and ACE_Malloc_LIFO_Iterator::ACE_Malloc_LIFO_Iterator.

#define ACE_MEM_POOL_OPTIONS   ACE_TYPENAME _ACE_MEM_POOL::OPTIONS
 

Definition at line 745 of file OS.h.

Referenced by ACE_Malloc::ACE_Malloc, ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::ACE_Malloc_T, and ACE_Local_Name_Space::create_manager_i.

#define ACE_MEM_STREAM   ACE_MEM_Stream
 

Definition at line 796 of file OS.h.

#define ACE_MMAP_MEMORY_POOL   ACE_MMAP_Memory_Pool
 

Definition at line 823 of file OS.h.

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

Definition at line 4254 of file OS.h.

Referenced by ACE_Handle_Set_Iterator::ACE_Handle_Set_Iterator, ACE_Handle_Set_Iterator::operator(), ACE_Handle_Set_Iterator::reset_state, and ACE_Handle_Set::set_max.

#define ACE_MT  
 

Definition at line 1232 of file OS.h.

Referenced by ACE_UPIPE_Acceptor::accept, ACE_POSIX_Asynch_Accept::accept, ACE_Log_Msg::ACE_Log_Msg, ACE_TP_Token_Guard::acquire_token, ACE_Locked_Free_List::add, ACE_Thread_Manager::apply_all, ACE_Thread_Manager::apply_grp, ACE_Thread_Manager::apply_task, ACE_Future_Rep::assign, ACE_Object_Manager::at_exit_i, ACE_Future_Rep::attach, ACE_Timer_Queue_T::calculate_timeout, ACE_WIN32_Asynch_Connect::cancel, ACE_Timer_Wheel_T::cancel, ACE_Timer_List_T::cancel, ACE_Timer_Heap_T::cancel, ACE_Timer_Hash_T::cancel, ACE_POSIX_Asynch_Connect::cancel, ACE_POSIX_Asynch_Accept::cancel, ACE_POSIX_AIOCB_Proactor::cancel_aio, ACE_Select_Reactor_T::cancel_timer, ACE_Dev_Poll_Reactor::cancel_timer, ACE_Thread_Manager::check_state, ACE_SOCK_Dgram_Mcast::clear_subs_list, ACE_WIN32_Asynch_Connect::close, ACE_UPIPE_Stream::close, ACE_Thread_Manager::close, ACE_Service_Repository::close, ACE_Select_Reactor_T::close, ACE_Process_Manager::close, ACE_POSIX_Asynch_Connect::close, ACE_POSIX_Asynch_Accept::close, ACE_Log_Msg::close, ACE_Framework_Repository::close, ACE_DLL_Handle::close, ACE_Dev_Poll_Reactor::close, ACE_DLL_Manager::close_dll, ACE_Thread_Manager::close_singleton, ACE_Service_Repository::close_singleton, ACE_Reactor::close_singleton, ACE_Process_Manager::close_singleton, ACE_Proactor::close_singleton, ACE_Allocator::close_singleton, ACE_Framework_Repository::close_singleton, ACE_DLL_Manager::close_singleton, ACE_Log_Msg::clr_flags, ACE_WIN32_Asynch_Connect::connect, ACE_UPIPE_Connector::connect, ACE_POSIX_Asynch_Connect::connect, ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::create_AST, ACE_Service_Repository::current_size, ACE_Framework_Repository::current_size, ACE_Future_Rep::detach, ACE_Sig_Handlers::dispatch, ACE_Timer_Queue_T::dispatch_info, ACE_Thread_Manager::dump, ACE_SOCK_Dgram_Mcast::dump, ACE_Log_Msg::dump, ACE_Thread_Manager::exit, ACE_Timer_Wheel_T::expire, ACE_Timer_Queue_T::expire, ACE_Timer_Hash_T::expire, ACE_Service_Repository::find, ACE_POSIX_AIOCB_Proactor::find_completed_aio, ACE_Service_Repository::fini, ACE_Log_Msg::flags, ACE_Future_Rep::get, ACE_Thread_Manager::get_grp, ACE_DLL_Handle::get_handle, ACE_POSIX_AIOCB_Proactor::getq_result, ACE_High_Res_Timer::global_scale_factor, ACE_TP_Token_Guard::grab_token, ACE_Task_Base::grp_id, ACE_WIN32_Asynch_Connect::handle_close, ACE_POSIX_Asynch_Connect::handle_close, ACE_POSIX_Asynch_Accept::handle_close, ACE_Dev_Poll_Reactor::handle_events, ACE_POSIX_Asynch_Accept::handle_input, ACE_WIN32_Asynch_Connect::handle_output, ACE_POSIX_Asynch_Connect::handle_output, ACE_Process_Manager::handle_signal, ACE_Sig_Handler::handler, ACE_Select_Reactor_T::handler, ACE_Dev_Poll_Reactor::handler, ACE_Thread_Manager::hthread_descriptor, ACE_Thread_Manager::hthread_grp_list, ACE_Thread_Manager::hthread_list, ACE_Thread_Manager::hthread_within, ACE_Select_Reactor_T::initialized, ACE_Dev_Poll_Reactor::initialized, ACE_Service_Repository::insert, ACE_Thread_Manager::insert_thr, ACE_Token_Invariant_Manager::instance, ACE_Thread_Manager::instance, ACE_Thread_Exit::instance, ACE_Service_Repository::instance, ACE_Reactor::instance, ACE_Process_Manager::instance, ACE_Proactor::instance, ACE_Allocator::instance, ACE_Framework_Repository::instance, ACE_ODB::instance, ACE_DLL_Manager::instance, ACE_Sock_Connect::ipv6_enabled, ACE_Asynch_Pseudo_Task::is_active, ACE_Thread_Manager::join, ACE_SOCK_Dgram_Mcast::join, ACE_SOCK_Dgram_Mcast::leave, ACE_Asynch_Pseudo_Task::lock_finish, ACE_Log_Msg::log, ACE_TP_Reactor::mask_ops, ACE_Select_Reactor_T::mask_ops, ACE_Dev_Poll_Reactor::mask_ops, ACE_Select_Reactor_T::max_notify_iterations, ACE_Dev_Poll_Reactor::max_notify_iterations, ACE_Log_Msg::msg_backend, ACE_Thread_Manager::num_tasks_in_group, ACE_Thread_Manager::num_threads_in_task, ACE_WIN32_Asynch_Connect::open, ACE_Select_Reactor_T::open, ACE_Process_Manager::open, ACE_POSIX_Asynch_Connect::open, ACE_POSIX_Asynch_Accept::open, ACE_OS::open, ACE_Log_Msg::open, ACE_DLL_Handle::open, ACE_Dev_Poll_Reactor::open, ACE_DLL_Manager::open_dll, ACE_Future_Rep::operator T, ACE_Select_Reactor_T::owner, ACE_POSIX_AIOCB_Proactor::post_completion, ACE_Proactor::proactor_end_event_loop, ACE_Proactor::proactor_event_loop_done, ACE_Proactor::proactor_reset_event_loop, ACE_Proactor::proactor_run_event_loop, ACE_Select_Reactor_T::ready_ops, ACE_Framework_Repository::register_component, ACE_Sig_Handlers::register_handler, ACE_Sig_Handler::register_handler, ACE_Select_Reactor_T::register_handler, ACE_Process_Manager::register_handler, ACE_Dev_Poll_Reactor::register_handler, ACE_Asynch_Pseudo_Task::register_io_handler, ACE_TP_Token_Guard::release_token, ACE_Service_Repository::remove, ACE_Process_Manager::remove, ACE_Locked_Free_List::remove, ACE_Framework_Repository::remove_component, ACE_Framework_Repository::remove_dll_components, ACE_Sig_Handlers::remove_handler, ACE_Sig_Handler::remove_handler, ACE_Select_Reactor_T::remove_handler, ACE_Dev_Poll_Reactor::remove_handler, ACE_Asynch_Pseudo_Task::remove_io_handler, ACE_Select_Reactor_T::requeue_position, ACE_Timer_Wheel_T::reset_interval, ACE_Timer_List_T::reset_interval, ACE_Timer_Heap_T::reset_interval, ACE_Timer_Hash_T::reset_interval, ACE_XtReactor::reset_timer_interval, ACE_TkReactor::reset_timer_interval, ACE_Select_Reactor_T::reset_timer_interval, ACE_FlReactor::reset_timer_interval, ACE_Dev_Poll_Reactor::reset_timer_interval, ACE_Locked_Free_List::resize, ACE_Select_Reactor_T::restart, ACE_Dev_Poll_Reactor::restart, ACE_Task_Base::resume, ACE_Service_Repository::resume, ACE_Select_Reactor_T::resume_handler, ACE_Dev_Poll_Reactor::resume_handler, ACE_Select_Reactor_T::resume_handlers, ACE_Dev_Poll_Reactor::resume_handlers, ACE_Asynch_Pseudo_Task::resume_io_handler, ACE_Timer_Queue_T::return_node, ACE_Timer_Wheel_T::schedule, ACE_Timer_List_T::schedule, ACE_Timer_Heap_T::schedule, ACE_Timer_Hash_T::schedule, ACE_XtReactor::schedule_timer, ACE_TkReactor::schedule_timer, ACE_Select_Reactor_T::schedule_timer, ACE_QtReactor::schedule_timer, ACE_Proactor::schedule_timer, ACE_FlReactor::schedule_timer, ACE_Dev_Poll_Reactor::schedule_timer, ACE_Future_Rep::set, ACE_Log_Msg::set_flags, ACE_Thread_Manager::set_grp, ACE_Sig_Handler::sig_pending, ACE_Thread_Manager::spawn, ACE_Process_Manager::spawn, ACE_Thread_Manager::spawn_n, ACE_Asynch_Pseudo_Task::start, ACE_POSIX_AIOCB_Proactor::start_aio, ACE_Asynch_Pseudo_Task::stop, ACE_Task_Base::suspend, ACE_Service_Repository::suspend, ACE_Select_Reactor_T::suspend_handler, ACE_Dev_Poll_Reactor::suspend_handler, ACE_Select_Reactor_T::suspend_handlers, ACE_Dev_Poll_Reactor::suspend_handlers, ACE_Asynch_Pseudo_Task::suspend_io_handler, ACE_DLL_Handle::symbol, ACE_Thread_Manager::task_all_list, ACE_Thread_Manager::task_list, ACE_Process_Manager::terminate, ACE_Task_Base::thr_count, ACE_Task_Base::thr_count_dec, ACE_Thread_Manager::thread_all_list, ACE_Thread_Manager::thread_descriptor, ACE_Thread_Manager::thread_grp_list, ACE_Thread_Manager::thread_list, ACE_Thread_Manager::thread_within, ACE_Service_Repository::total_size, ACE_Framework_Repository::total_size, ACE_DLL_Manager::unload_policy, ACE_Asynch_Pseudo_Task::unlock_finish, ACE_Thread_Manager::wait, ACE_Process_Manager::wait, ACE_Thread_Manager::wait_grp, ACE_Thread_Manager::wait_task, ACE_Select_Reactor_T::work_pending, ACE_Dev_Poll_Reactor::work_pending, ACE_Log_Msg::~ACE_Log_Msg, ACE_Timer_Hash_T::~ACE_Timer_Hash_T, ACE_Timer_List_T::~ACE_Timer_List_T, and ACE_TP_Token_Guard::~ACE_TP_Token_Guard.

#define ACE_NESTED_CLASS TYPE,
NAME       TYPE::NAME
 

Definition at line 72 of file OS.h.

#define ACE_NEW_MALLOC POINTER,
ALLOCATOR,
CONSTRUCTOR   
 

Value:

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

Definition at line 6678 of file OS.h.

Referenced by ACE_Double_Linked_List::ACE_Double_Linked_List, ACE_Unbounded_Queue::ACE_Unbounded_Queue, ACE_Unbounded_Set::ACE_Unbounded_Set, ACE_Unbounded_Stack::ACE_Unbounded_Stack, ACE_Unbounded_Stack::copy_all_nodes, and ACE_Double_Linked_List::copy_nodes.

#define ACE_NEW_MALLOC_NORETURN POINTER,
ALLOCATOR,
CONSTRUCTOR   
 

Value:

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

Definition at line 6683 of file OS.h.

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

Definition at line 6673 of file OS.h.

Referenced by ACE_MEM_SAP::acquire_buffer, ACE_Locked_Data_Block::clone_nocopy, ACE_Data_Block::clone_nocopy, ACE_Message_Block::duplicate, ACE_Activation_Queue::enqueue, ACE_Unbounded_Queue::enqueue_head, ACE_Unbounded_Queue::enqueue_tail, ACE_Message_Block::init_i, ACE_Ordered_MultiSet::insert_from, ACE_DLList::insert_head, ACE_Unbounded_Set::insert_tail, ACE_DLList::insert_tail, ACE_Obstack_T::new_chunk, and ACE_Unbounded_Stack::push.

#define ACE_NONBLOCK   O_NDELAY
 

Definition at line 4012 of file OS.h.

Referenced by ACE_MEM_Acceptor::accept, ACE_AIOCB_Notify_Pipe_Manager::ACE_AIOCB_Notify_Pipe_Manager, ACE_Concurrency_Strategy::activate_svc_handler, ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::activate_svc_handler, ACE_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::activate_svc_handler, ACE_Flag_Manip::clr_flags, ACE_TLI_Connector::complete, ACE_SOCK_Connector::complete, ACE_TLI_Connector::connect, ACE_MEM_Connector::connect, ACE_WIN32_Asynch_Connect::connect_i, ACE_POSIX_Asynch_Connect::connect_i, ACE_IPC_SAP::disable, ACE_IO_SAP::disable, ACE_IPC_SAP::enable, ACE_IO_SAP::enable, ACE_Asynch_Connector::handle_connect, ACE_Handle_Ops::handle_timed_open, ACE_Accept_Strategy< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::open, ACE_Select_Reactor_Notify::open, ACE_FIFO_Recv::open, ACE_Dev_Poll_Reactor_Notify::open, ACE_Strategy_Acceptor::open, ACE_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::open, ACE::record_and_set_non_blocking_mode, ACE::restore_non_blocking_mode, ACE_Flag_Manip::set_flags, ACE_SOCK_Acceptor::shared_accept_finish, ACE_MEM_Acceptor::shared_accept_finish, ACE_SOCK_Acceptor::shared_accept_start, ACE_SOCK_Connector::shared_connect_finish, and ACE_SOCK_Connector::shared_connect_start.

#define ACE_NOOP  
 

Definition at line 6689 of file OS.h.

Referenced by ACE_Hash_Map_Manager_Ex::close_i, and ACE_Map_Manager::free_search_structure.

#define ACE_NSIG   NSIG
 

Definition at line 3949 of file OS.h.

Referenced by ACE_Sig_Action::ACE_Sig_Action, ACE_Sig_Handler::in_range, ACE_Sig_Handlers_Set::instance, ACE_Log_Msg::log, ACE_WFMO_Reactor::register_handler, ACE_Select_Reactor_T::register_handler, ACE_Dev_Poll_Reactor::register_handler, ACE_WFMO_Reactor::remove_handler, ACE_Select_Reactor_T::remove_handler, ACE_Dev_Poll_Reactor::remove_handler, ACE_OS::sigaddset, ACE_OS::sigdelset, and ACE_OS::sigismember.

#define ACE_NTOHL      X
 

Definition at line 6992 of file OS.h.

Referenced by ACE_SOCK_Dgram_Mcast::dump, and ACE_INET_Addr::get_ip_address.

#define ACE_NTOHS      x
 

Definition at line 7002 of file OS.h.

#define ACE_OS_TRACE  
 

Definition at line 633 of file OS.h.

Referenced by ACE_OS::_exit, ACE_OS::accept, ACE_OS::access, ACE_Base_Thread_Adapter::ACE_Base_Thread_Adapter, ACE_Thread_Adapter::ACE_Thread_Adapter, ace_thread_adapter, ACE_Thread_Control::ACE_Thread_Control, ACE_Thread_Exit::ACE_Thread_Exit, ACE_TSS_Cleanup::ACE_TSS_Cleanup, ACE_TSS_Info::ACE_TSS_Info, ACE_TSS_Ref::ACE_TSS_Ref, ACE_OS::alarm, ACE_OS::asctime, ACE_OS::asctime_r, ACE_OS::bind, ACE_OS::chdir, ACE_Thread_Exit::cleanup, ACE_OS::clock_gettime, ACE_OS::close, ACE_OS::closesocket, ACE_OS::compile, ACE_OS::cond_broadcast, ACE_OS::cond_destroy, ACE_OS::cond_signal, ACE_OS::cond_timedwait, ACE_OS::cond_wait, ACE_OS::connect, ACE_OS::creat, ACE_OS::ctime, ACE_OS::ctime_r, ACE_OS::cuserid, ACE_OS::dlclose, ACE_OS::dlerror, ACE_OS::dlopen, ACE_OS::dlsym, ACE_Thread_Control::dump, ACE_OS::ace_flock_t::dump, ACE_OS::dup, ACE_OS::dup2, ACE_OS::execl, ACE_OS::execle, ACE_OS::execlp, ACE_OS::execv, ACE_OS::execve, ACE_OS::execvp, ACE_Thread_Control::exit, ACE_OS::exit, ACE_TSS_Cleanup::exit, ACE_OS::fattach, ACE_OS::fclose, ACE_OS::fcntl, ACE_OS::fdetach, ACE_OS::fdopen, ACE_OS::fflush, ACE_OS::fgets, ACE_OS::filesize, ACE_OS::flock_destroy, ACE_OS::flock_init, ACE_OS::flock_rdlock, ACE_OS::flock_tryrdlock, ACE_OS::flock_trywrlock, ACE_OS::flock_unlock, ACE_OS::flock_wrlock, ACE_OS::fopen, ACE_OS::fork, ACE_OS::fprintf, ACE_OS::fputs, ACE_OS::fread, ACE_OS::freopen, ACE_OS::fstat, ACE_OS::fsync, ACE_OS::ftruncate, ACE_OS::fwrite, ACE_OS::getcwd, ACE_OS::getenv, ACE_OS::getgid, ACE_OS::gethostbyaddr, ACE_OS::gethostbyaddr_r, ACE_OS::gethostbyname, ACE_OS::gethostbyname_r, ACE_OS::gethrtime, ACE_OS::getipnodebyname, ACE_OS::getmsg, ACE_OS::getopt, ACE_OS::getpagesize, ACE_OS::getpeername, ACE_OS::getpgid, ACE_OS::getpmsg, ACE_OS::getppid, ACE_OS::getrlimit, ACE_OS::getrusage, ACE_OS::gets, ACE_OS::getservbyname, ACE_OS::getservbyname_r, ACE_OS::getsockname, ACE_OS::getsockopt, ACE_OS::getuid, ACE_OS::gmtime, ACE_OS::gmtime_r, ACE_OS::inet_addr, ACE_OS::inet_ntoa, ACE_OS::inet_ntop, ACE_OS::inet_pton, ACE_Thread_Control::insert, ACE_TSS_Cleanup::insert, ACE_Thread_Exit::instance, ACE_TSS_Cleanup::instance, ACE_OS::ioctl, ACE_OS::isastream, ACE_OS::isatty, ACE_OS::kill, ACE_OS::last_error, ACE_OS::listen, ACE_OS::localtime, ACE_OS::localtime_r, ACE_OS::lseek, ACE_OS::lstat, ACE_OS::madvise, ACE_OS::mkfifo, ACE_OS::mktime, ACE_OS::mmap, ACE_OS::mprotect, ACE_OS::msgctl, ACE_OS::msgget, ACE_OS::msgrcv, ACE_OS::msgsnd, ACE_OS::msync, ACE_OS::munmap, ACE_OS::mutex_destroy, ACE_OS::mutex_lock, ACE_OS::mutex_lock_cleanup, ACE_OS::mutex_trylock, ACE_OS::mutex_unlock, ACE_OS::nanosleep, ACE_OS::num_processors, ACE_OS::num_processors_online, ACE_OS::open, ACE_TSS_Info::operator!=, ACE_TSS_Ref::operator!=, ACE_TSS_Info::operator==, ACE_TSS_Ref::operator==, ACE_OS::perror, ACE_OS::pipe, ACE_OS::poll, ACE_OS::printf, ACE_OS::priority_control, ACE_OS::putenv, ACE_OS::putmsg, ACE_OS::putpmsg, ACE_OS::puts, ACE_OS::rand, ACE_OS::rand_r, ACE_OS::read, ACE_OS::readlink, ACE_OS::readv, ACE_OS::recursive_mutex_cond_relock, ACE_OS::recursive_mutex_cond_unlock, ACE_OS::recursive_mutex_unlock, ACE_OS::recv, ACE_OS::recvfrom, ACE_OS::recvmsg, ACE_TSS_Cleanup::remove, ACE_OS::rewind, ACE_OS::rw_rdlock, ACE_OS::rw_tryrdlock, ACE_OS::rw_trywrlock, ACE_OS::rw_trywrlock_upgrade, ACE_OS::rw_unlock, ACE_OS::rw_wrlock, ACE_OS::rwlock_destroy, ACE_OS::sched_params, ACE_OS::select, ACE_OS::sema_destroy, ACE_OS::sema_init, ACE_OS::sema_post, ACE_OS::sema_trywait, ACE_OS::sema_wait, ACE_OS::semctl, ACE_OS::semget, ACE_OS::semop, ACE_OS::send, ACE_OS::sendmsg, ACE_OS::sendto, ACE_OS::setgid, ACE_OS::setpgid, ACE_OS::setregid, ACE_OS::setreuid, ACE_OS::setrlimit, ACE_OS::setsid, ACE_OS::setsockopt, ACE_OS::setuid, ACE_OS::shm_open, ACE_OS::shm_unlink, ACE_OS::shmat, ACE_OS::shmctl, ACE_OS::shmdt, ACE_OS::shmget, ACE_OS::shutdown, ACE_OS::sigaction, ACE_OS::sigaddset, ACE_OS::sigtimedwait, ACE_OS::sigwait, ACE_OS::sigwaitinfo, ACE_OS::sleep, ACE_OS::socket, ACE_OS::socketpair, ACE_OS::sprintf, ACE_OS::srand, ACE_OS::stat, ACE_Thread_Control::status, ACE_OS::step, ACE_OS::sysconf, ACE_OS::sysinfo, ACE_OS::tempnam, ACE_OS::thr_cancel, ACE_OS::thr_continue, ACE_OS::thr_create, ACE_OS::thr_exit, ACE_OS::thr_getconcurrency, ACE_OS::thr_getprio, ACE_OS::thr_join, ACE_OS::thr_keyfree, ACE_OS::thr_kill, ACE_Thread_Exit::thr_mgr, ACE_Thread_Control::thr_mgr, ACE_OS::thr_min_stack, ACE_OS::thr_self, ACE_OS::thr_setcancelstate, ACE_OS::thr_setcanceltype, ACE_OS::thr_setconcurrency, ACE_OS::thr_setprio, ACE_OS::thr_sigsetmask, ACE_OS::thr_suspend, ACE_OS::thr_testcancel, ACE_OS::thr_yield, ACE_OS::thread_mutex_destroy, ACE_OS::thread_mutex_trylock, ACE_OS::thread_mutex_unlock, ACE_OS::time, ACE_OS::truncate, ACE_OS::ualarm, ACE_OS::umask, ACE_OS::uname, ACE_OS::unlink, ACE_OS::wait, ACE_OS::waitpid, ACE_OS::write, ACE_OS::writev, ACE_Thread_Control::~ACE_Thread_Control, and ACE_Thread_Exit::~ACE_Thread_Exit.

#define ACE_OSTREAM_TYPE   ostream
 

Definition at line 2433 of file OS.h.

#define ACE_PAGEFILE_MEMORY_POOL   ACE_Pagefile_Memory_Pool
 

Definition at line 828 of file OS.h.

#define ACE_PEER_ACCEPTOR   _ACE_PEER_ACCEPTOR
 

Definition at line 756 of file OS.h.

Referenced by ACE_Accept_Strategy< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::acceptor, ACE_Oneshot_Acceptor::acceptor, ACE_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::acceptor, ACE_Oneshot_Acceptor::operator ACE_PEER_ACCEPTOR &, and ACE_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::operator ACE_PEER_ACCEPTOR &.

#define ACE_PEER_ACCEPTOR_1   class _ACE_PEER_ACCEPTOR
 

Definition at line 754 of file OS.h.

#define ACE_PEER_ACCEPTOR_2   _ACE_PEER_ACCEPTOR
 

Definition at line 755 of file OS.h.

#define ACE_PEER_ACCEPTOR_ADDR   ACE_TYPENAME _ACE_PEER_ACCEPTOR::PEER_ADDR
 

Definition at line 757 of file OS.h.

Referenced by ACE_Oneshot_Acceptor::accept, ACE_Accept_Strategy< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::ACE_Accept_Strategy, ACE_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::ACE_Acceptor, ACE_Oneshot_Acceptor::ACE_Oneshot_Acceptor, ACE_Strategy_Acceptor::ACE_Strategy_Acceptor, ACE_Oneshot_Acceptor::info, ACE_Strategy_Acceptor::info, ACE_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::info, ACE_Accept_Strategy< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::open, ACE_Oneshot_Acceptor::open, ACE_Strategy_Acceptor::open, ACE_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::open, and ACE_Oneshot_Acceptor::shared_accept.

#define ACE_PEER_CONNECTOR   _ACE_PEER_CONNECTOR
 

Definition at line 762 of file OS.h.

Referenced by ACE_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::connector, and ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::connector.

#define ACE_PEER_CONNECTOR_1   class _ACE_PEER_CONNECTOR
 

Definition at line 760 of file OS.h.

#define ACE_PEER_CONNECTOR_2   _ACE_PEER_CONNECTOR
 

Definition at line 761 of file OS.h.

#define ACE_PEER_CONNECTOR_ADDR   ACE_TYPENAME _ACE_PEER_CONNECTOR::PEER_ADDR
 

Definition at line 763 of file OS.h.

Referenced by ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::check_hint_i, ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::connect, ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::connect_i, ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::connect_n, ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::connect_svc_handler, ACE_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::connect_svc_handler, ACE_Strategy_Connector::connect_svc_handler, ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::connect_svc_handler, ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::connect_svc_handler_i, ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::find_or_create_svc_handler_i, ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::handle_output, and ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::new_connection.

#define ACE_PEER_CONNECTOR_ADDR_ANY   ACE_PEER_CONNECTOR_ADDR::sap_any
 

Definition at line 765 of file OS.h.

#define ACE_PEER_STREAM   _ACE_PEER_STREAM
 

Definition at line 750 of file OS.h.

Referenced by ACE_Svc_Handler::peer.

#define ACE_PEER_STREAM_1   class _ACE_PEER_STREAM
 

Definition at line 748 of file OS.h.

#define ACE_PEER_STREAM_2   _ACE_PEER_STREAM
 

Definition at line 749 of file OS.h.

#define ACE_PEER_STREAM_ADDR   ACE_TYPENAME _ACE_PEER_STREAM::PEER_ADDR
 

Definition at line 751 of file OS.h.

Referenced by ACE_Svc_Handler::open.

#define ACE_PLATFORM   ACE_LIB_TEXT (ACE_PLATFORM_A)
 

Definition at line 3597 of file OS.h.

#define ACE_PLATFORM_A   "Win32"
 

Definition at line 2701 of file OS.h.

#define ACE_PLATFORM_EXE_SUFFIX   ACE_LIB_TEXT (ACE_PLATFORM_EXE_SUFFIX_A)
 

Definition at line 3598 of file OS.h.

#define ACE_PLATFORM_EXE_SUFFIX_A   ".exe"
 

Definition at line 2702 of file OS.h.

#define ACE_PLATFORM_EXE_SUFFIX_W   ACE_TEXT_WIDE(ACE_PLATFORM_EXE_SUFFIX_A)
 

Definition at line 3592 of file OS.h.

#define ACE_PLATFORM_W   ACE_TEXT_WIDE(ACE_PLATFORM_A)
 

Definition at line 3591 of file OS.h.

#define ACE_PROTOCOL_FAMILY_INET   PF_INET
 

Definition at line 3754 of file OS.h.

#define ACE_PROTOENT_DATA_SIZE   (2*1024)
 

Definition at line 4061 of file OS.h.

#define ACE_PTHREAD_CLEANUP_POP  
 

Definition at line 6706 of file OS.h.

Referenced by ACE_OS::rw_rdlock, ACE_OS::rw_trywrlock_upgrade, ACE_OS::rw_wrlock, ACE_OS::sema_wait, and ACE_Thread_Timer_Queue_Adapter::svc.

#define ACE_PTHREAD_CLEANUP_PUSH  
 

Definition at line 6705 of file OS.h.

Referenced by ACE_OS::rw_rdlock, ACE_OS::rw_trywrlock_upgrade, ACE_OS::rw_wrlock, ACE_OS::sema_wait, and ACE_Thread_Timer_Queue_Adapter::svc.

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

Return the next address aligned to a required boundary.

Definition at line 7137 of file OS.h.

Referenced by ACE_InputCDR::ACE_InputCDR, ACE_Message_Block::ACE_Message_Block, ACE_InputCDR::adjust, ACE_InputCDR::align_read_ptr, ACE_CDR::mb_align, ACE_CDR::swap_2_array, and ACE_CDR::swap_4_array.

#define ACE_SBRK_MEMORY_POOL   ACE_Sbrk_Memory_Pool
 

Definition at line 825 of file OS.h.

#define ACE_SCHED_FIFO   1
 

Definition at line 1402 of file OS.h.

Referenced by ACE_OS::lwp_getparams, ACE_Sched_Params::priority_max, ACE_Sched_Params::priority_min, ACE_OS::sched_params, ACE_OS::set_scheduling_params, ACE_OS::thr_create, and ACE_OS::thr_setprio.

#define ACE_SCHED_OTHER   0
 

Definition at line 1401 of file OS.h.

Referenced by ACE_OS::lwp_getparams, ACE_Sched_Params::priority_max, ACE_Sched_Params::priority_min, ACE_OS::set_scheduling_params, ACE_OS::thr_create, and ACE_OS::thr_setprio.

#define ACE_SCHED_RR   2
 

Definition at line 1403 of file OS.h.

Referenced by ACE_Sched_Params::priority_max, ACE_Sched_Params::priority_min, ACE_OS::set_scheduling_params, and ACE_OS::thr_setprio.

#define ACE_SCOPE_LWP   1
 

Definition at line 1396 of file OS.h.

Referenced by ACE_OS::lwp_setparams, ACE_Sched_Params::priority_max, ACE_Sched_Params::priority_min, and ACE_OS::sched_params.

#define ACE_SCOPE_PROCESS   0
 

Definition at line 1395 of file OS.h.

Referenced by ACE_Sched_Params::priority_max, ACE_Sched_Params::priority_min, ACE_OS::sched_params, and ACE_OS::set_scheduling_params.

#define ACE_SCOPE_THREAD   2
 

Definition at line 1397 of file OS.h.

Referenced by ACE_OS::lwp_getparams, ACE_Sched_Params::priority_max, ACE_Sched_Params::priority_min, ACE_OS::sched_params, and ACE_OS::set_scheduling_params.

#define ACE_SEH_EXCEPT      while (0)
 

Definition at line 2734 of file OS.h.

Referenced by ACE_Local_Name_Space::create_manager, ACE_Local_Name_Space::dump, ACE_Reactive_MEM_IO::get_buf_len, ACE_Select_Reactor_T::handle_events_i, ACE_OS_Thread_Adapter::invoke, ACE_Thread_Adapter::invoke_i, ACE_Local_Name_Space::list_name_entries, ACE_Local_Name_Space::list_names, ACE_Local_Name_Space::list_type_entries, ACE_Local_Name_Space::list_types, ACE_Local_Name_Space::list_value_entries, ACE_Local_Name_Space::list_values, ACE_MT_MEM_IO::Simple_Queue::read, ACE_Local_Name_Space::resolve, ACE_Local_Name_Space::shared_bind, ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::shared_find, ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::shared_free, ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::shared_malloc, and ACE_Local_Name_Space::unbind.

#define ACE_SEH_FINALLY   if (1)
 

Definition at line 2735 of file OS.h.

Referenced by ACE_WIN32_Proactor::application_specific_code, ACE_POSIX_Proactor::application_specific_code, ACE_POSIX_Asynch_Transmit_Handler::handle_read_file, ACE_POSIX_Asynch_Transmit_Handler::handle_write_stream, ACE_OS_Thread_Adapter::invoke, ACE_Thread_Adapter::invoke_i, and ACE_WFMO_Reactor::safe_dispatch.

#define ACE_SEH_TRY   if (1)
 

Definition at line 2733 of file OS.h.

Referenced by ACE_WIN32_Proactor::application_specific_code, ACE_POSIX_Proactor::application_specific_code, ACE_Local_Name_Space::create_manager, ACE_Local_Name_Space::dump, ACE_Reactive_MEM_IO::get_buf_len, ACE_Select_Reactor_T::handle_events_i, ACE_POSIX_Asynch_Transmit_Handler::handle_read_file, ACE_POSIX_Asynch_Transmit_Handler::handle_write_stream, ACE_OS_Thread_Adapter::invoke, ACE_Thread_Adapter::invoke_i, ACE_Local_Name_Space::list_name_entries, ACE_Local_Name_Space::list_names, ACE_Local_Name_Space::list_type_entries, ACE_Local_Name_Space::list_types, ACE_Local_Name_Space::list_value_entries, ACE_Local_Name_Space::list_values, ACE_MT_MEM_IO::Simple_Queue::read, ACE_Local_Name_Space::resolve, ACE_WFMO_Reactor::safe_dispatch, ACE_Local_Name_Space::shared_bind, ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::shared_find, ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::shared_free, ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::shared_malloc, and ACE_Local_Name_Space::unbind.

#define ACE_SELF   (0)
 

Definition at line 2999 of file OS.h.

Referenced by ACE_OS::sched_params.

#define ACE_SERVENT_DATA_SIZE   (4*1024)
 

Definition at line 4058 of file OS.h.

#define ACE_SHARED_MEMORY_POOL   ACE_Shared_Memory_Pool
 

Definition at line 826 of file OS.h.

#define ACE_SHLIB_INVALID_HANDLE   0
 

Definition at line 3004 of file OS.h.

Referenced by ACE_DLL_Handle::ACE_DLL_Handle, ACE_DLL_Handle::close, ACE_OS::dlsym, ACE_DLL_Handle::get_handle, ACE_DLL::get_handle, and ACE_DLL_Handle::open.

#define ACE_SHUTDOWN_BOTH   2
 

Definition at line 4532 of file OS.h.

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

Definition at line 4516 of file OS.h.

Referenced by ACE_SOCK_Stream::close_reader, and ACE_MEM_Stream::close_reader.

#define ACE_SHUTDOWN_WRITE   1
 

Definition at line 4524 of file OS.h.

Referenced by ACE_SOCK_Stream::close_writer, and ACE_MEM_Stream::close_writer.

#define ACE_SIGIO   -1
 

Definition at line 4020 of file OS.h.

Referenced by ACE_IPC_SAP::disable, ACE_IO_SAP::disable, ACE_IPC_SAP::enable, and ACE_IO_SAP::enable.

#define ACE_SIGRTMAX   0
 

Definition at line 7153 of file OS.h.

Referenced by ACE_Asynch_Pseudo_Task::svc.

#define ACE_SIGRTMIN   0
 

Definition at line 7149 of file OS.h.

Referenced by ACE_Asynch_Pseudo_Task::svc.

#define ACE_SIGURG   -2
 

Definition at line 4021 of file OS.h.

Referenced by ACE_IPC_SAP::disable, ACE_IO_SAP::disable, ACE_IPC_SAP::enable, and ACE_IO_SAP::enable.

#define ACE_SOCK_ACCEPTOR   ACE_SOCK_Acceptor
 

Definition at line 789 of file OS.h.

#define ACE_SOCK_CONNECTOR   ACE_SOCK_Connector
 

Definition at line 790 of file OS.h.

#define ACE_SOCK_STREAM   ACE_SOCK_Stream
 

Definition at line 791 of file OS.h.

#define ACE_SPIPE_ACCEPTOR   ACE_SPIPE_Acceptor
 

Definition at line 809 of file OS.h.

#define ACE_SPIPE_CONNECTOR   ACE_SPIPE_Connector
 

Definition at line 810 of file OS.h.

#define ACE_SPIPE_STREAM   ACE_SPIPE_Stream
 

Definition at line 811 of file OS.h.

#define ACE_SPRINTF_ADAPTER      X
 

ACE_WIN32

Definition at line 581 of file OS.h.

Referenced by ACE_OS::snprintf, ACE_OS::sprintf, and ACE_OS::vsprintf.

#define ACE_STANDARD_CHARACTER_SET_SIZE   128
 

Definition at line 54 of file OS.h.

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

Definition at line 962 of file OS.h.

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

Definition at line 983 of file OS.h.

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

Definition at line 1016 of file OS.h.

Referenced by ACE_Object_Manager_Preallocations::ACE_Object_Manager_Preallocations.

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

Definition at line 1059 of file OS.h.

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

Definition at line 1050 of file OS.h.

#define ACE_STATUS_TIMEOUT   STATUS_TIMEOUT
 

Definition at line 6944 of file OS.h.

#define ACE_STDERR   GetStdHandle (STD_ERROR_HANDLE)
 

Definition at line 2722 of file OS.h.

Referenced by ACE_Process_Options::set_handles, and ACE_Process::spawn.

#define ACE_STDIN   GetStdHandle (STD_INPUT_HANDLE)
 

Definition at line 2720 of file OS.h.

Referenced by ACE_Event_Handler::read_adapter, ACE_Event_Handler::register_stdin_handler, ACE_Event_Handler::remove_stdin_handler, ACE_Process_Options::set_handles, and ACE_Process::spawn.

#define ACE_STDOUT   GetStdHandle (STD_OUTPUT_HANDLE)
 

Definition at line 2721 of file OS.h.

Referenced by ACE_Process_Options::set_handles, and ACE_Process::spawn.

#define ACE_STREAMBUF_SIZE   1024
 

Definition at line 2653 of file OS.h.

#define ACE_SVC_FACTORY_DECLARE      ACE_FACTORY_DECLARE (ACE_Svc, X)
 

Definition at line 1129 of file OS.h.

#define ACE_SVC_FACTORY_DEFINE      ACE_FACTORY_DEFINE (ACE_Svc, X)
 

Definition at line 1130 of file OS.h.

#define ACE_SVC_INVOKE SERVICE_CLASS       _make_##SERVICE_CLASS (0)
 

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

Definition at line 1118 of file OS.h.

#define ACE_SVC_NAME SERVICE_CLASS       _make_##SERVICE_CLASS
 

The canonical name for a service factory method.

Definition at line 1114 of file OS.h.

Referenced by ACE_Object_Manager_Preallocations::ACE_Object_Manager_Preallocations, and ACE_STATIC_SVC_DEFINE.

#define ACE_SWAP_LONG  
 

Value:

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

Definition at line 6981 of file OS.h.

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

Definition at line 6983 of file OS.h.

#define ACE_SYNCH_1   ACE_SYNCH_DECL
 

Definition at line 914 of file OS.h.

#define ACE_SYNCH_2   ACE_SYNCH_USE
 

Definition at line 915 of file OS.h.

#define ACE_SYNCH_CONDITION_T   ACE_TYPENAME _ACE_SYNCH::CONDITION
 

Definition at line 738 of file OS.h.

#define ACE_SYNCH_DECL   class _ACE_SYNCH
 

Definition at line 735 of file OS.h.

#define ACE_SYNCH_MUTEX_T   ACE_TYPENAME _ACE_SYNCH::MUTEX
 

Definition at line 737 of file OS.h.

Referenced by ACE_Message_Queue< ACE_SYNCH_USE >::activate, ACE_Message_Queue_Reverse_Iterator::advance, ACE_Message_Queue_Iterator::advance, ACE_Stream::close, ACE_Message_Queue< ACE_SYNCH_USE >::close, ACE_Message_Queue< ACE_SYNCH_USE >::deactivate, ACE_Message_Queue< ACE_SYNCH_USE >::dequeue_deadline, ACE_Dynamic_Message_Queue::dequeue_head, ACE_Message_Queue< ACE_SYNCH_USE >::dequeue_head, ACE_Message_Queue< ACE_SYNCH_USE >::dequeue_prio, ACE_Message_Queue< ACE_SYNCH_USE >::dequeue_tail, ACE_Message_Queue_Reverse_Iterator::done, ACE_Message_Queue_Iterator::done, ACE_Message_Queue< ACE_SYNCH_USE >::enqueue_deadline, ACE_Message_Queue< ACE_SYNCH_USE >::enqueue_head, ACE_Message_Queue< ACE_SYNCH_USE >::enqueue_prio, ACE_Message_Queue< ACE_SYNCH_USE >::enqueue_tail, ACE_Buffered_Svc_Handler::flush, ACE_Message_Queue< ACE_SYNCH_USE >::flush, ACE_Message_Queue< ACE_SYNCH_USE >::high_water_mark, ACE_Message_Queue< ACE_SYNCH_USE >::is_empty, ACE_Message_Queue< ACE_SYNCH_USE >::is_full, ACE_Stream::link, ACE_Message_Queue_Ex::lock, ACE_Message_Queue< ACE_MT_SYNCH >::lock, ACE_Message_Queue< ACE_SYNCH_USE >::low_water_mark, ACE_Message_Queue< ACE_SYNCH_USE >::message_bytes, ACE_Message_Queue< ACE_SYNCH_USE >::message_count, ACE_Message_Queue< ACE_SYNCH_USE >::message_length, ACE_Message_Queue_Reverse_Iterator::next, ACE_Message_Queue_Iterator::next, ACE_Stream::open, ACE_Message_Queue< ACE_SYNCH_USE >::peek_dequeue_head, ACE_Message_Queue< ACE_SYNCH_USE >::pulse, ACE_Buffered_Svc_Handler::put, and ACE_Stream::unlink.

#define ACE_SYNCH_SEMAPHORE_T   ACE_TYPENAME _ACE_SYNCH::SEMAPHORE
 

Definition at line 739 of file OS.h.

#define ACE_SYNCH_USE   _ACE_SYNCH
 

Definition at line 736 of file OS.h.

Referenced by ACE_Buffered_Svc_Handler::ACE_Buffered_Svc_Handler, ACE_Dynamic_Message_Queue::ACE_Dynamic_Message_Queue, and ACE_Svc_Handler::ACE_Svc_Handler.

#define ACE_SYSCALL_FAILED   0xFFFFFFFF
 

Definition at line 2947 of file OS.h.

Referenced by ACE_OS::lseek, ACE_OS::thr_continue, ACE_OS::thr_keycreate, and ACE_OS::thr_suspend.

#define ACE_TEMPLATE_METHOD_SPECIALIZATION
 

Definition at line 724 of file OS.h.

#define ACE_TEMPLATE_SPECIALIZATION
 

Definition at line 718 of file OS.h.

#define ACE_THR_PRI_FIFO_DEF   0
 

Definition at line 2129 of file OS.h.

Referenced by ACE_OS::thr_create.

#define ACE_THR_PRI_OTHER_DEF   0
 

Definition at line 2141 of file OS.h.

Referenced by ACE_OS::thr_create.

#define ACE_THROW_SPEC      throw X
 

Definition at line 1359 of file OS.h.

#define ACE_TIMER_SKEW   0
 

Definition at line 594 of file OS.h.

Referenced by ACE_Timer_Queue_T::ACE_Timer_Queue_T.

#define ACE_TLI_ACCEPTOR   ACE_TLI_Acceptor
 

Definition at line 804 of file OS.h.

#define ACE_TLI_CONNECTOR   ACE_TLI_Connector
 

Definition at line 805 of file OS.h.

#define ACE_TLI_STREAM   ACE_TLI_Stream
 

Definition at line 806 of file OS.h.

#define ACE_TMAIN   main
 

Definition at line 6730 of file OS.h.

#define ACE_TSS_GET I,
     (I)
 

Definition at line 1142 of file OS.h.

Referenced by ACE_Thread_Exit::instance, ACE_Unmanaged_TSS_Singleton::instance, and ACE_TSS_Singleton::instance.

#define ACE_TSS_TYPE      T
 

Definition at line 1141 of file OS.h.

Referenced by ACE_Thread_Exit::cleanup, and ACE_Thread_Exit::instance.

#define ACE_TYPENAME
 

Definition at line 712 of file OS.h.

Referenced by ACE_Bounded_Set::ACE_Bounded_Set, ACE_Cached_Connect_Strategy_Ex::cleanup, ACE_Bounded_Set::operator=, ACE_Future_Rep::set, and ACE_Future_Set::~ACE_Future_Set.

#define ACE_UPIPE_ACCEPTOR   ACE_UPIPE_Acceptor
 

Definition at line 814 of file OS.h.

#define ACE_UPIPE_CONNECTOR   ACE_UPIPE_Connector
 

Definition at line 815 of file OS.h.

#define ACE_UPIPE_STREAM   ACE_UPIPE_Stream
 

Definition at line 816 of file OS.h.

#define ACE_USING
 

Definition at line 706 of file OS.h.

#define ACE_WAIT_FAILED   WAIT_FAILED
 

Definition at line 6945 of file OS.h.

#define ACE_WAIT_TIMEOUT   WAIT_TIMEOUT
 

Definition at line 6946 of file OS.h.

#define ACE_WMAIN   wmain
 

Definition at line 6724 of file OS.h.

#define ACE_WSOCK_VERSION   0, 0
 

Definition at line 919 of file OS.h.

Referenced by ACE_OS_Object_Manager::init.

#define AF_ANY   (-1)
 

Definition at line 3691 of file OS.h.

Referenced by ACE_UNIX_Addr::set, ACE_SPIPE_Addr::set, ACE_INET_Addr::set, ACE_FILE_Addr::set, and ACE_DEV_Addr::set.

#define AF_DEV   (AF_MAX + 3)
 

Definition at line 3698 of file OS.h.

Referenced by ACE_DEV_Addr::ACE_DEV_Addr, and ACE_DEV_Addr::set.

#define AF_FILE   (AF_MAX + 2)
 

Definition at line 3696 of file OS.h.

Referenced by ACE_FILE_Addr::ACE_FILE_Addr, and ACE_FILE_Addr::set.

#define AF_SPIPE   (AF_MAX + 1)
 

Definition at line 3694 of file OS.h.

Referenced by ACE_SPIPE_Addr::ACE_SPIPE_Addr, ACE_SPIPE_Addr::set, and ACE_SPIPE_Addr::set_addr.

#define AF_UPIPE   (AF_SPIPE)
 

Definition at line 3699 of file OS.h.

#define CLOCK_REALTIME   0
 

Definition at line 651 of file OS.h.

Referenced by ACE_OS::gethrtime, and ACE_OS::gettimeofday.

#define E2BIG   7
 

Definition at line 656 of file OS.h.

#define EADDRINUSE   WSAEADDRINUSE
 

Definition at line 2960 of file OS.h.

#define EADDRINUSE   WSAEADDRINUSE
 

Definition at line 2960 of file OS.h.

#define EADDRNOTAVAIL   WSAEADDRNOTAVAIL
 

Definition at line 2825 of file OS.h.

Referenced by ACE::out_of_handles.

#define EAFNOSUPPORT   WSAEAFNOSUPPORT
 

Definition at line 2823 of file OS.h.

Referenced by ACE_INET_Addr::get_ip_address, ACE_INET_Addr::set, and ACE_INET_Addr::set_address.

#define EALREADY   WSAEALREADY
 

Definition at line 2813 of file OS.h.

#define EBUSY   ETIME
 

Definition at line 4036 of file OS.h.

Referenced by ACE_OS::flock_tryrdlock, ACE_OS::flock_trywrlock, ACE_OS::mutex_lock, ACE_OS::mutex_trylock, ACE_OS::recursive_mutex_trylock, ACE_Condition::remove, ACE_OS::rw_tryrdlock, ACE_OS::rw_trywrlock, ACE_OS::rw_trywrlock_upgrade, ACE_OS::sema_trywait, ACE_OS::sema_wait, and ACE_OS::thread_mutex_trylock.

#define ECOMM   ECONNABORTED
 

Definition at line 3982 of file OS.h.

#define ECONNABORTED   WSAECONNABORTED
 

Definition at line 2829 of file OS.h.

#define ECONNREFUSED   WSAECONNREFUSED
 

Definition at line 2837 of file OS.h.

Referenced by ACE::handle_timed_complete, and ACE_TSS_Connection::make_TSS_TYPE.

#define ECONNRESET   WSAECONNRESET
 

Definition at line 2830 of file OS.h.

#define EDEADLK   1000
 

Definition at line 3990 of file OS.h.

Referenced by ACE_Remote_Token_Proxy::acquire, ACE_Token_Proxy::acquire, ACE_RW_Token::acquire, and ACE_Mutex_Token::acquire.

#define EDESTADDRREQ   WSAEDESTADDRREQ
 

Definition at line 2815 of file OS.h.

#define EDQUOT   WSAEDQUOT
 

Definition at line 2843 of file OS.h.

#define EHOSTDOWN   WSAEHOSTDOWN
 

Definition at line 2839 of file OS.h.

#define EHOSTUNREACH   WSAEHOSTUNREACH
 

Definition at line 2840 of file OS.h.

#define EIDRM   0
 

Definition at line 3973 of file OS.h.

Referenced by ACE_SV_Semaphore_Complex::open.

#define EINPROGRESS   WSAEINPROGRESS
 

Definition at line 2812 of file OS.h.

Referenced by ACE_WIN32_Asynch_Connect::connect_i, ACE_POSIX_Asynch_Connect::connect_i, ACE_POSIX_AIOCB_Proactor::get_result_status, and ACE_SOCK_Connector::shared_connect_finish.

#define EISCONN   WSAEISCONN
 

Definition at line 2832 of file OS.h.

Referenced by ACE_SOCK_Connector::shared_connect_finish.

#define ELOOP   WSAELOOP
 

Definition at line 2838 of file OS.h.

#define EMSGSIZE   WSAEMSGSIZE
 

Definition at line 2816 of file OS.h.

#define ENETDOWN   WSAENETDOWN
 

Definition at line 2826 of file OS.h.

#define ENETRESET   WSAENETRESET
 

Definition at line 2828 of file OS.h.

#define ENETUNREACH   WSAENETUNREACH
 

Definition at line 2827 of file OS.h.

#define ENFILE   EMFILE
 

Definition at line 3977 of file OS.h.

Referenced by ACE::out_of_handles.

#define ENOBUFS   WSAENOBUFS
 

Definition at line 2831 of file OS.h.

Referenced by ACE::out_of_handles, ACE::send_n_i, ACE::sendv_n_i, and ACE::t_snd_n_i.

#define ENOPROTOOPT   WSAENOPROTOOPT
 

Definition at line 2818 of file OS.h.

#define ENOTCONN   WSAENOTCONN
 

Definition at line 2833 of file OS.h.

#define ENOTSOCK   WSAENOTSOCK
 

Definition at line 2814 of file OS.h.

#define ENXIO   6
 

Definition at line 3994 of file OS.h.

Referenced by ACE_SOCK_Dgram_Mcast::join, ACE_SPIPE_Stream::recv_handle, and ACE_SPIPE_Stream::send_handle.

#define EOPNOTSUPP   WSAEOPNOTSUPP
 

Definition at line 2821 of file OS.h.

Referenced by ACE::out_of_handles.

#define EPFNOSUPPORT   WSAEPFNOSUPPORT
 

Definition at line 2822 of file OS.h.

#define EPROCLIM   WSAEPROCLIM
 

Definition at line 2841 of file OS.h.

#define EPROTONOSUPPORT   WSAEPROTONOSUPPORT
 

Definition at line 2819 of file OS.h.

#define EPROTOTYPE   WSAEPROTOTYPE
 

Definition at line 2817 of file OS.h.

#define EREMOTE   WSAEREMOTE
 

Definition at line 2845 of file OS.h.

#define ESHUTDOWN   WSAESHUTDOWN
 

Definition at line 2834 of file OS.h.

Referenced by ACE_Message_Queue< ACE_SYNCH_USE >::dequeue_deadline, ACE_Dynamic_Message_Queue::dequeue_head, ACE_Message_Queue< ACE_SYNCH_USE >::dequeue_head, ACE_Message_Queue< ACE_SYNCH_USE >::dequeue_prio, ACE_Message_Queue< ACE_SYNCH_USE >::dequeue_tail, ACE_Message_Queue< ACE_SYNCH_USE >::enqueue_deadline, ACE_Message_Queue< ACE_SYNCH_USE >::enqueue_head, ACE_Message_Queue< ACE_SYNCH_USE >::enqueue_prio, ACE_Message_Queue< ACE_SYNCH_USE >::enqueue_tail, ACE_Message_Queue< ACE_SYNCH_USE >::peek_dequeue_head, ACE_Message_Queue< ACE_SYNCH_USE >::wait_not_empty_cond, and ACE_Message_Queue< ACE_SYNCH_USE >::wait_not_full_cond.

#define ESOCKTNOSUPPORT   WSAESOCKTNOSUPPORT
 

Definition at line 2820 of file OS.h.

#define ESTALE   WSAESTALE
 

Definition at line 2844 of file OS.h.

#define ESUCCESS   0
 

Definition at line 3969 of file OS.h.

Referenced by ACE_Streambuf_T::recv, and ACE_Streambuf_T::recv_n.

#define ETIME   ERROR_SEM_TIMEOUT
 

Definition at line 2810 of file OS.h.

Referenced by ACE_ATM_Connector::ACE_ATM_Connector, ACE_DEV_Connector::ACE_DEV_Connector, ACE_FILE_Connector::ACE_FILE_Connector, ACE_SOCK_Connector::ACE_SOCK_Connector, ACE_SPIPE_Connector::ACE_SPIPE_Connector, ACE_TLI_Connector::ACE_TLI_Connector, ACE_UPIPE_Connector::ACE_UPIPE_Connector, ACE_XTI_ATM_Mcast::ACE_XTI_ATM_Mcast, ACE_Null_Mutex::acquire, ACE_Null_Semaphore::acquire, ACE_TP_Token_Guard::acquire_token, ACE_OS::cond_timedwait, ACE_TLI_Connector::connect, ACE_WFMO_Reactor::dispatch, ACE_OS::event_timedwait, ACE_Streambuf::fillbuf, ACE_Streambuf::get_one_byte, ACE_TP_Token_Guard::grab_token, ACE_WIN32_Proactor::handle_events, ACE_Dev_Poll_Reactor::handle_events_i, ACE::handle_ready, ACE::handle_timed_complete, ACE_Oneshot_Acceptor::handle_timeout, ACE_OS::mutex_lock, ACE_WFMO_Reactor::ok_to_wait, ACE_SOCK_Dgram::recv, ACE_SOCK_Dgram_SC::recv, ACE_Streambuf_T::recv, ACE_Streambuf_T::recv_n, ACE_SOCK_IO::recvv, ACE_Token::renew, ACE_OS::sema_wait, ACE_SOCK_Dgram::send, ACE_Oneshot_Acceptor::shared_accept, ACE_Token::shared_acquire, ACE_Proactor_Timer_Handler::svc, ACE_Null_Condition::wait, ACE_Process::wait, ACE_NT_Service::wait_for_service_state, ACE_Message_Queue< ACE_SYNCH_USE >::wait_not_empty_cond, ACE_Message_Queue< ACE_SYNCH_USE >::wait_not_full_cond, and ACE_OS::waitpid.

#define ETIMEDOUT   WSAETIMEDOUT
 

Definition at line 2836 of file OS.h.

Referenced by ACE_SOCK_Connector::ACE_SOCK_Connector, ACE_OS::cond_timedwait, ACE_SPIPE_Connector::connect, ACE::handle_timed_accept, ACE_Handle_Ops::handle_timed_open, ACE_OS::mutex_lock, and ACE_SOCK_Connector::shared_connect_finish.

#define ETOOMANYREFS   WSAETOOMANYREFS
 

Definition at line 2835 of file OS.h.

#define EUSERS   WSAEUSERS
 

Definition at line 2842 of file OS.h.

#define EWOULDBLOCK   WSAEWOULDBLOCK
 

Definition at line 2811 of file OS.h.

Referenced by ACE_TLI_Acceptor::accept, ACE_OS::accept, ACE_Oneshot_Acceptor::accept, ACE_ATM_Connector::ACE_ATM_Connector, ACE_DEV_Connector::ACE_DEV_Connector, ACE_FILE_Connector::ACE_FILE_Connector, ACE_Name_Proxy::ACE_Name_Proxy, ACE_SOCK_Connector::ACE_SOCK_Connector, ACE_SPIPE_Connector::ACE_SPIPE_Connector, ACE_TLI_Connector::ACE_TLI_Connector, ACE_UPIPE_Connector::ACE_UPIPE_Connector, ACE_XTI_ATM_Mcast::ACE_XTI_ATM_Mcast, ACE_Remote_Token_Proxy::acquire, ACE_Token_Proxy::acquire, ACE_RW_Token::acquire, ACE_Mutex_Token::acquire, ACE_TLI_Connector::connect, ACE_SPIPE_Connector::connect, ACE_WIN32_Asynch_Connect::connect_i, ACE_POSIX_Asynch_Connect::connect_i, ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::connect_i, ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::connect_n, ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::find_or_create_svc_handler_i, ACE_Service_Manager::handle_input, ACE_Dev_Poll_Reactor_Notify::handle_input, ACE_WFMO_Reactor_Notify::handle_signal, ACE::handle_timed_accept, ACE::handle_timed_complete, ACE_Handle_Ops::handle_timed_open, ACE_AIOCB_Notify_Pipe_Manager::notify, ACE_OS::read, ACE_Select_Reactor_Notify::read_notify_pipe, ACE_Dev_Poll_Reactor_Notify::read_notify_pipe, ACE_UPIPE_Stream::recv, ACE_OS::recv, ACE::recv_n_i, ACE::recvv_n_i, ACE_Remote_Token_Proxy::renew, ACE_Token_Proxy::renew, ACE_RW_Token::renew, ACE_Mutex_Token::renew, ACE_OS::send, ACE::send_n_i, ACE::sendv_n_i, ACE_Oneshot_Acceptor::shared_accept, ACE_SOCK_Connector::shared_connect_finish, ACE::t_rcv_n_i, ACE::t_snd_n_i, ACE_RW_Token::tryacquire, ACE_Mutex_Token::tryacquire, ACE_Message_Queue< ACE_SYNCH_USE >::wait_not_empty_cond, and ACE_Message_Queue< ACE_SYNCH_USE >::wait_not_full_cond.

#define F_GETFL   0
 

Definition at line 3922 of file OS.h.

Referenced by ACE_Flag_Manip::clr_flags, ACE_Flag_Manip::get_flags, and ACE_Flag_Manip::set_flags.

#define F_OK   0
 

Definition at line 3965 of file OS.h.

Referenced by ACE_Filecache_Object::ACE_Filecache_Object, ACE_Local_Name_Space::create_manager_i, ACE_Lib_Find::ldfind, and ACE_Configuration_Heap::open.

#define GETALL   0
 

Definition at line 3930 of file OS.h.

#define GETVAL   0
 

Definition at line 3918 of file OS.h.

Referenced by ACE_SV_Semaphore_Complex::close, and ACE_SV_Semaphore_Complex::open.

#define INADDR_LOOPBACK   ((ACE_UINT32) 0x7f000001)
 

Definition at line 3722 of file OS.h.

Referenced by ACE_INET_Addr::set_address, ACE_SOCK_Dgram_Mcast::subscribe_ifs, and ACE_SOCK_Dgram_Mcast::unsubscribe_ifs.

#define INADDR_NONE   ((ACE_UINT32) 0xffffffff)
 

Definition at line 3727 of file OS.h.

Referenced by ACE_OS::inet_addr, and ACE_OS::inet_aton.

#define INET6_ADDRSTRLEN   46
 

Definition at line 3739 of file OS.h.

Referenced by ACE_INET_Addr::get_host_addr.

#define INET_ADDRSTRLEN   16
 

Definition at line 3734 of file OS.h.

Referenced by ACE_OS::inet_ntop.

#define IOV_MAX   16
 

Definition at line 2391 of file OS.h.

#define IP_ADD_MEMBERSHIP   0
 

Definition at line 3877 of file OS.h.

Referenced by ACE_SOCK_Dgram_Mcast::subscribe_i.

#define IP_DEFAULT_MULTICAST_LOOP   0
 

Definition at line 3886 of file OS.h.

#define IP_DEFAULT_MULTICAST_TTL   0
 

Definition at line 3882 of file OS.h.

#define IP_DROP_MEMBERSHIP   0
 

Definition at line 3873 of file OS.h.

Referenced by ACE_SOCK_Dgram_Mcast::unsubscribe_i.

#define IP_MAX_MEMBERSHIPS   0
 

Definition at line 3898 of file OS.h.

#define IP_MULTICAST_IF   0
 

Definition at line 3890 of file OS.h.

Referenced by ACE_SOCK_Dgram_Mcast::open_i, and ACE_SOCK_Dgram::set_nic.

#define IP_MULTICAST_TTL   1
 

Definition at line 3894 of file OS.h.

#define IPC_CREAT   0
 

Definition at line 3857 of file OS.h.

Referenced by ACE_Shared_Memory_Pool::commit_backing_store_name, ACE_Shared_Memory_Pool::init_acquire, and ACE_SV_Semaphore_Simple::open.

#define IPC_EXCL   0
 

Definition at line 3869 of file OS.h.

Referenced by ACE_Shared_Memory_Pool::commit_backing_store_name, and ACE_Shared_Memory_Pool::init_acquire.

#define IPC_NOWAIT   0
 

Definition at line 3861 of file OS.h.

Referenced by ACE_SV_Semaphore_Simple::tryacquire.

#define IPC_PRIVATE   ACE_INVALID_SEM_KEY
 

Definition at line 3910 of file OS.h.

Referenced by ACE_Shared_Memory_Pool::ACE_Shared_Memory_Pool, ACE_SV_Semaphore_Simple::open, and ACE_SV_Semaphore_Complex::open.

#define IPC_RMID   0
 

Definition at line 3865 of file OS.h.

Referenced by ACE_Shared_Memory_Pool::release, ACE_SV_Shared_Memory::remove, ACE_SV_Semaphore_Simple::remove, and ACE_SV_Message_Queue::remove.

#define IPC_STAT   0
 

Definition at line 3914 of file OS.h.

Referenced by ACE_Shared_Memory_Pool::find_seg, and ACE_Shared_Memory_Pool::in_use.

#define LOCALNAME   0
 

Definition at line 4024 of file OS.h.

Referenced by ACE_ATM_QoS::construct_options.

#define MAP_FAILED   ((void *) -1)
 

Definition at line 4087 of file OS.h.

Referenced by ACE_Condition::ACE_Condition, ACE_Mem_Map::ACE_Mem_Map, ACE_Mutex::ACE_Mutex, ACE_Sbrk_Memory_Pool::acquire, ACE_OS::flock_init, ACE_Mem_Map::map, ACE_Mem_Map::map_it, ACE_OS::mmap, ACE_Dev_Poll_Reactor::open, ACE_Mem_Map::operator(), ACE_OS::sema_init, and ACE_Mem_Map::unmap.

#define MAP_FIXED   4
 

Definition at line 2776 of file OS.h.

Referenced by ACE_MMAP_Memory_Pool::ACE_MMAP_Memory_Pool, ACE_Mem_Map::map, and ACE_OS::mmap.

#define MAP_PRIVATE   1
 

Definition at line 2774 of file OS.h.

Referenced by ACE_OS::mmap, and ACE_Dev_Poll_Reactor::open.

#define MAP_SHARED   2
 

Definition at line 2775 of file OS.h.

Referenced by ACE_Condition::ACE_Condition, ACE_Filecache_Object::ACE_Filecache_Object, ACE_MMAP_Memory_Pool::ACE_MMAP_Memory_Pool, ACE_Mutex::ACE_Mutex, ACE_OS::flock_init, ACE_Mem_Map::map_it, ACE_OS::mmap, and ACE_OS::sema_init.

#define MAXHOSTNAMELEN   256
 

Definition at line 3716 of file OS.h.

Referenced by ACE_TPQ_Entry::ACE_TPQ_Entry, ACE_ATM_Addr::addr_to_string, ACE_INET_Addr::get_host_name, ACE_MEM_Addr::initialize_local, and ACE_Predefined_Naming_Contexts::is_local_host.

#define MAXNAMELEN   256
 

Definition at line 3711 of file OS.h.

Referenced by ACE_ATM_Addr::addr_to_string, ACE_Local_Name_Space::create_manager_i, ACE_SOCK_Dgram_Mcast::dump, ACE_SOCK_Dgram_Mcast::join, and ACE_Configuration_Heap::open.

#define MAXNAMLEN   _MAX_FNAME
 

Definition at line 2959 of file OS.h.

Referenced by ACE_Module< ACE_SYNCH_USE >::name, and ACE_DEV_Addr::set.

#define MS_ASYNC   0
 

Definition at line 2950 of file OS.h.

#define MS_INVALIDATE   0
 

Definition at line 2951 of file OS.h.

#define MS_SYNC   0x0
 

Definition at line 3998 of file OS.h.

#define NFDBITS   32
 

Definition at line 2772 of file OS.h.

#define O_BINARY   0
 

Definition at line 3633 of file OS.h.

#define O_NDELAY   1
 

Definition at line 2955 of file OS.h.

#define O_NONBLOCK   1
 

Definition at line 3841 of file OS.h.

#define O_RAW   0
 

Definition at line 3645 of file OS.h.

#define O_TEXT   0
 

Definition at line 3639 of file OS.h.

#define PIPE_BUF   5120
 

Definition at line 4002 of file OS.h.

#define PROT_RDWR   PAGE_READWRITE
 

Definition at line 2794 of file OS.h.

Referenced by ACE_Condition::ACE_Condition, ACE_Filecache_Object::ACE_Filecache_Object, ACE_Mutex::ACE_Mutex, ACE_OS::flock_init, ACE_MMAP_Memory_Pool::init_acquire, ACE_MMAP_Memory_Pool::map_file, and ACE_OS::sema_init.

#define PROT_READ   PAGE_READONLY
 

Definition at line 2792 of file OS.h.

Referenced by ACE_Filecache_Object::ACE_Filecache_Object, ACE_Dev_Poll_Reactor::open, and ACE_Filecache_Object::release.

#define PROT_WRITE   PAGE_READWRITE
 

Definition at line 2793 of file OS.h.

Referenced by ACE_Mem_Map::map_it, and ACE_Dev_Poll_Reactor::open.

#define R_OK   04
 

Definition at line 3953 of file OS.h.

Referenced by ACE_Filecache_Object::ACE_Filecache_Object.

#define REMOTENAME   1
 

Definition at line 4025 of file OS.h.

Referenced by ACE_ATM_Stream::get_peer_name.

#define RUSAGE_SELF   1
 

Definition at line 2778 of file OS.h.

#define SA_RESTART   0
 

Definition at line 4128 of file OS.h.

Referenced by ACE_Async_Timer_Queue_Adapter::ACE_Async_Timer_Queue_Adapter, and ACE_Sig_Handlers::register_handler.

#define SA_SIGINFO   0
 

Definition at line 4124 of file OS.h.

Referenced by ACE_Sig_Handlers::register_handler, and ACE_Sig_Handler::register_handler_i.

#define SEM_UNDO   0
 

Definition at line 3938 of file OS.h.

#define SETALL   0
 

Definition at line 3934 of file OS.h.

#define SETVAL   0
 

Definition at line 3926 of file OS.h.

Referenced by ACE_SV_Semaphore_Simple::open, and ACE_SV_Semaphore_Complex::open.

#define SIG_BLOCK   1
 

Definition at line 3845 of file OS.h.

Referenced by ACE_Sig_Guard::ACE_Sig_Guard, ACE_Asynch_Pseudo_Task::svc, and ACE_OS::thr_sigsetmask.

#define SIG_DFL   ((__sighandler_t) 0)
 

Definition at line 3820 of file OS.h.

Referenced by ACE_Sig_Handler::dispatch, ACE_Sig_Handlers::register_handler, ACE_Sig_Handlers::remove_handler, and ACE_Sig_Handler::remove_handler.

#define SIG_ERR   ((__sighandler_t) -1)
 

Definition at line 3836 of file OS.h.

Referenced by ACE_OS::sigaction.

#define SIG_IGN   ((__sighandler_t) 1)
 

Definition at line 3828 of file OS.h.

Referenced by ACE::daemonize, ACE_Sig_Handlers::register_handler, and ACE_OS::sigaction.

#define SIG_SETMASK   3
 

Definition at line 3853 of file OS.h.

Referenced by ACE_OS::thr_sigsetmask, and ACE_Sig_Guard::~ACE_Sig_Guard.

#define SIG_UNBLOCK   2
 

Definition at line 3849 of file OS.h.

Referenced by ACE_OS::thr_sigsetmask.

#define SIGALRM   0
 

Definition at line 3813 of file OS.h.

Referenced by ACE_Async_Timer_Queue_Adapter::ACE_Async_Timer_Queue_Adapter, and ACE_Async_Timer_Queue_Adapter::handle_signal.

#define SIGCHLD   0
 

Definition at line 3797 of file OS.h.

Referenced by ACE_Process_Manager::close, ACE_Process_Manager::open, ACE_Process_Manager::wait, and ACE_Process::wait.

#define SIGCLD   SIGCHLD
 

Definition at line 3801 of file OS.h.

#define SIGHUP   0
 

Definition at line 3773 of file OS.h.

Referenced by ACE_Service_Manager::ACE_Service_Manager, and ACE::daemonize.

#define SIGINT   0
 

Definition at line 3777 of file OS.h.

#define SIGIO   0
 

Definition at line 3785 of file OS.h.

Referenced by ACE_IPC_SAP::disable, ACE_IO_SAP::disable, ACE_IPC_SAP::enable, and ACE_IO_SAP::enable.

#define SIGPIPE   0
 

Definition at line 3809 of file OS.h.

Referenced by ACE_Service_Manager::handle_input.

#define SIGQUIT   0
 

Definition at line 3805 of file OS.h.

#define SIGSEGV   0
 

Definition at line 3781 of file OS.h.

Referenced by ACE_MMAP_Memory_Pool::ACE_MMAP_Memory_Pool, ACE_Shared_Memory_Pool::ACE_Shared_Memory_Pool, and ACE_MMAP_Memory_Pool::handle_signal.

#define SIGUSR1   0
 

Definition at line 3789 of file OS.h.

#define SIGUSR2   0
 

Definition at line 3793 of file OS.h.

#define SIOCGIFADDR   0
 

Definition at line 3906 of file OS.h.

Referenced by ACE_SOCK_Dgram_Mcast::make_multicast_ifaddr, and ACE_SOCK_Dgram::set_nic.

#define SIOCGIFBRDADDR   0
 

Definition at line 3902 of file OS.h.

Referenced by ACE_Sock_Connect::get_bcast_addr, and ACE_SOCK_Dgram_Bcast::mk_broadcast.

#define W_OK   02
 

Definition at line 3957 of file OS.h.

Referenced by ACE_Filecache_Object::ACE_Filecache_Object.

#define WCOREDUMP stat       0
 

Definition at line 7068 of file OS.h.

#define WEXITSTATUS stat       stat
 

Definition at line 7038 of file OS.h.

Referenced by ACE::fork, and ACE_Process::return_value.

#define WIFCONTINUED stat       0
 

Definition at line 7064 of file OS.h.

#define WIFEXITED stat       1
 

Definition at line 7030 of file OS.h.

Referenced by ACE::fork.

#define WIFSIGNALED stat       0
 

Definition at line 7045 of file OS.h.

#define WIFSTOPPED stat       0
 

Definition at line 7056 of file OS.h.

#define WNOHANG   0100
 

Definition at line 3986 of file OS.h.

Referenced by ACE_Process_Manager::reap, ACE_Process_Manager::wait, ACE_Process::wait, and ACE_OS::waitpid.

#define WSTOPSIG stat       0
 

Definition at line 7060 of file OS.h.

#define WTERMSIG stat       0
 

Definition at line 7052 of file OS.h.

#define X_OK   01
 

Definition at line 3961 of file OS.h.


Typedef Documentation

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

Definition at line 4265 of file OS.h.

Referenced by ACE_At_Thread_Exit_Func::ACE_At_Thread_Exit_Func, ACE_Thread_Manager::at_exit, ACE_Thread_Descriptor::at_exit, ACE_OS_Object_Manager::at_exit, ACE_Object_Manager::at_exit, ACE_OS_Exit_Info::at_exit_i, ACE_Object_Manager::at_exit_i, and ACE_OS_Exit_Info::call_hooks.

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

Definition at line 4402 of file OS.h.

Referenced by ACE_OS::bsearch, and ACE_OS::qsort.

typedef const ACE_TCHAR* ACE_DL_TYPE
 

Definition at line 4096 of file OS.h.

Referenced by ACE_OS::dlopen.

typedef DWORD ACE_exitcode
 

Definition at line 2946 of file OS.h.

Referenced by ACE_Process::exit_code, ACE::fork, ACE_Process_Manager::handle_signal, ACE_Process_Manager::notify_proc_handler, ACE_Process_Manager::reap, ACE_Process_Manager::wait, ACE_Process::wait, ACE_OS::wait, and ACE_OS::waitpid.

typedef fd_set ACE_FD_SET_TYPE
 

Definition at line 3704 of file OS.h.

Referenced by ACE_Handle_Set::ACE_Handle_Set, and ACE_OS::select.

typedef char ACE_HOSTENT_DATA[ACE_HOSTENT_DATA_SIZE]
 

Definition at line 4063 of file OS.h.

Referenced by ACE_INET_Addr::get_host_name_i, ACE_OS::gethostbyaddr_r, ACE_OS::gethostbyname_r, and ACE_INET_Addr::set.

typedef unsigned __int64 ACE_hrtime_t
 

Definition at line 2912 of file OS.h.

Referenced by ACE_High_Res_Timer::calibrate, ACE_High_Res_Timer::elapsed_microseconds, ACE_Profile_Timer::elapsed_time, ACE_High_Res_Timer::elapsed_time, ACE_High_Res_Timer::elapsed_time_incr, ACE_OS::gethrtime, ACE_High_Res_Timer::hrtime_to_tv, ACE_High_Res_Timer::print_ave, ACE_Timeprobe::print_times, and ACE_High_Res_Timer::print_total.

typedef HANDLE ACE_hthread_t
 

Definition at line 2899 of file OS.h.

Referenced by ACE_Thread_Control::ACE_Thread_Control, ACE_Thread_ID::ACE_Thread_ID, ACE_Thread_Timer_Queue_Adapter::activate, ACE_Task_Base::activate, ACE_Thread_Manager::append_thr, ACE_Thread_Manager::exit, ACE_Thread_Manager::find_hthread, ACE_Thread::getprio, ACE_Thread_ID::handle, ACE_Thread_Manager::hthread_descriptor, ACE_Thread_Manager::hthread_grp_list, ACE_Thread_Manager::hthread_list, ACE_Thread_Manager::hthread_within, ACE_Thread_Control::insert, ACE_Thread_Manager::insert_thr, ACE_OS_Thread_Adapter::invoke, ACE_Thread_Adapter::invoke_i, ACE_Thread::join, ACE_Log_Msg::log, ACE_Thread::resume, ACE_Thread_Descriptor::self, ACE_Thread::self, ACE_Thread::setprio, ACE_Thread_Manager::spawn, ACE_Thread::spawn, ACE_Thread_Manager::spawn_i, ACE_Thread_Manager::spawn_n, ACE_Thread::spawn_n, ACE_Thread::suspend, ACE_OS::thr_cmp, ACE_OS::thr_continue, ACE_OS::thr_create, ACE_OS::thr_exit, ACE_OS::thr_getprio, ACE_OS::thr_getspecific, ACE_OS::thr_join, ACE_OS::thr_kill, ACE_OS::thr_min_stack, ACE_Thread_Manager::thr_self, ACE_OS::thr_self, ACE_OS::thr_setprio, ACE_OS::thr_setspecific, and ACE_OS::thr_suspend.

typedef DWORD ACE_id_t
 

Definition at line 2998 of file OS.h.

Referenced by ACE_OS::lwp_getparams, ACE_OS::priority_control, ACE_OS::sched_params, ACE_OS::scheduling_class, and ACE_OS::set_scheduling_params.

typedef int ACE_idtype_t
 

Definition at line 2997 of file OS.h.

Referenced by ACE_OS::priority_control.

typedef LPTRANSMIT_FILE_BUFFERS ACE_LPTRANSMIT_FILE_BUFFERS
 

Definition at line 6940 of file OS.h.

Referenced by ACE_WIN32_Asynch_Transmit_File::transmit_file.

typedef OVERLAPPED ACE_OVERLAPPED
 

Definition at line 2893 of file OS.h.

Referenced by ACE_WIN32_Proactor::close, ACE_WIN32_Proactor::handle_events, ACE_OS::ioctl, ACE_OS::read, ACE_SPIPE_Stream::recv, ACE_SOCK_IO::recv, ACE_SOCK_Dgram::recv, ACE_DEV_IO::recv, ACE_OS::recvfrom, ACE_SPIPE_Stream::send, ACE_SOCK_IO::send, ACE_SOCK_Dgram::send, ACE_DEV_IO::send, ACE_OS::sendto, and ACE_OS::write.

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

Definition at line 4560 of file OS.h.

Referenced by ACE_OS::ioctl, ACE_SOCK_Dgram::recv, ACE_OS::recvfrom, ACE_SOCK_Dgram::send, and ACE_OS::sendto.

typedef int ACE_pri_t
 

Definition at line 3000 of file OS.h.

typedef char ACE_PROTOENT_DATA[ACE_PROTOENT_DATA_SIZE]
 

Definition at line 4065 of file OS.h.

Referenced by ACE_OS::getprotobyname_r, and ACE_OS::getprotobynumber_r.

typedef PTRANSMIT_FILE_BUFFERS ACE_PTRANSMIT_FILE_BUFFERS
 

Definition at line 6941 of file OS.h.

typedef unsigned __int64 ACE_QWORD
 

Definition at line 2911 of file OS.h.

Referenced by ACE_HIGH_DWORD, ACE_LOW_DWORD, and ACE_MAKE_QWORD.

typedef u_int ACE_RANDR_TYPE
 

Definition at line 2572 of file OS.h.

Referenced by ACE_OS::rand_r.

typedef struct iovec ACE_READV_TYPE
 

Definition at line 1217 of file OS.h.

typedef int ACE_Rusage
 

Definition at line 4383 of file OS.h.

typedef int ACE_Sched_Priority
 

Definition at line 4181 of file OS.h.

Referenced by ACE_Sched_Params::ACE_Sched_Params, ACE_Sched_Params::priority, and ACE_OS::thr_setprio.

typedef const struct msghdr ACE_SENDMSG_TYPE
 

Definition at line 2559 of file OS.h.

Referenced by ACE_OS::sendmsg.

typedef char ACE_SERVENT_DATA[ACE_SERVENT_DATA_SIZE]
 

Definition at line 4064 of file OS.h.

Referenced by ACE_OS::getservbyname_r, and ACE_INET_Addr::set.

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.

Definition at line 929 of file OS.h.

Referenced by ACE_Service_Object_Type::ACE_Service_Object_Type, ACE_Service_Type_Impl::ACE_Service_Type_Impl, ace_yyparse, ACE_Service_Config::create_service_type_impl, ACE_Service_Config::process_directive, ACE_Static_Function_Node::symbol, ACE_Function_Node::symbol, and ACE_Object_Node::symbol.

typedef const struct rlimit ACE_SETRLIMIT_TYPE
 

Definition at line 1223 of file OS.h.

Referenced by ACE_OS::setrlimit.

typedef HINSTANCE ACE_SHLIB_HANDLE
 

Definition at line 3003 of file OS.h.

Referenced by ACE_OS::dlclose, ACE_OS::dlopen, ACE_OS::dlsym, ACE_DLL_Handle::get_handle, ACE_DLL::get_handle, ACE_DLL_Strategy::make_svc_handler, ACE_DLL_Handle::open, ACE_DLL_Manager::open_dll, ACE_DLL::open_i, and ACE_DLL::set_handle.

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

Definition at line 4176 of file OS.h.

Referenced by ACE_Sig_Adapter::ACE_Sig_Adapter, and ACE_Sig_Adapter::handle_signal.

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

Definition at line 4116 of file OS.h.

typedef void(__cdecl * ACE_SignalHandler)(int)
 

Definition at line 2636 of file OS.h.

Referenced by ACE_Async_Timer_Queue_Adapter::ACE_Async_Timer_Queue_Adapter, ACE_Sig_Action::ACE_Sig_Action, ACE_Sig_Handler::dispatch, ACE_Sig_Action::handler, ACE_Sig_Handlers::register_handler, ACE_OS::signal, ACE_Process_Manager::wait, and ACE_Process::wait.

typedef void(__cdecl * ACE_SignalHandlerV)(int)
 

Definition at line 2637 of file OS.h.

Referenced by ACE_Sig_Action::ACE_Sig_Action, and ACE_Sig_Action::handler.

typedef u_long ACE_SOCK_GROUP
 

Definition at line 4564 of file OS.h.

Referenced by ACE_ATM_Params::ACE_ATM_Params, ACE_SOCK::ACE_SOCK, ACE_SOCK_Acceptor::ACE_SOCK_Acceptor, ACE_SOCK_Connector::ACE_SOCK_Connector, ACE_SOCK_Dgram::ACE_SOCK_Dgram, ACE_SOCK_Connector::connect, ACE_SOCK_Dgram::open, ACE_SOCK_Acceptor::open, ACE_SOCK::open, ACE_MEM_Acceptor::open, ACE_ATM_Params::set_sock_group, ACE_SOCK_Connector::shared_open, and ACE_OS::socket.

typedef struct _stat ACE_stat
 

Definition at line 4395 of file OS.h.

Referenced by ACE_OS::fstat, ACE_FILE::get_info, ACE_OS::lstat, ACE_OS::stat, and ACE_Filecache_Object::update.

typedef DWORD ACE_thread_key_t
 

Definition at line 2906 of file OS.h.

Referenced by ACE_TSS_Info::ACE_TSS_Info, ACE_TSS_Cleanup::detach, ACE_TSS_Cleanup::free_all_keys_left, ACE_Thread::getspecific, ACE_TSS_Cleanup::insert, ACE_TSS_Keys::is_set, ACE_TSS_Cleanup::key_used, ACE_Thread::keycreate, ACE_Thread::keyfree, ACE_TSS_Cleanup::remove, ACE_Thread::setspecific, ACE_TSS_Keys::test_and_clear, ACE_TSS_Keys::test_and_set, ACE_OS::thr_getspecific, ACE_OS::thr_key_used, ACE_OS::thr_keycreate, ACE_OS::thr_keyfree, and ACE_OS::thr_setspecific.

typedef DWORD ACE_thread_t
 

Definition at line 2895 of file OS.h.

Referenced by ACE_Thread_ID::ACE_Thread_ID, ACE_Token::ACE_Token_Queue_Entry::ACE_Token_Queue_Entry, ACE_TPQ_Entry::ACE_TPQ_Entry, ACE_TSS_Ref::ACE_TSS_Ref, ACE_Thread_Timer_Queue_Adapter::activate, ACE_Task_Base::activate, ACE_Thread_Manager::append_thr, ACE_Thread_Manager::cancel, ACE_Thread::cancel, ACE_WFMO_Reactor::change_owner, ACE_Thread_Manager::check_state, ACE_Thread_Manager::exit, ACE_Thread_Manager::find_thread, ACE_Thread_Manager::get_grp, ACE_Recursive_Thread_Mutex::get_thread_id, ACE_Thread_ID::id, ACE_Thread_Manager::insert_thr, ACE_Thread_Manager::join, ACE_Thread::join, ACE_Thread_Manager::kill, ACE_Thread::kill, ACE_Thread_Manager::kill_thr, ACE_WFMO_Reactor::new_owner, ACE_WFMO_Reactor::owner, ACE_TP_Reactor::owner, ACE_Select_Reactor_T::owner, ACE_Reactor::owner, ACE_Dev_Poll_Reactor::owner, ACE_OS::recursive_mutex_lock, ACE_OS::recursive_mutex_trylock, ACE_OS::recursive_mutex_unlock, ACE_Thread_Manager::remove_thr, ACE_Thread_Manager::resume, ACE_OS::sched_params, ACE_Thread_Manager::set_grp, ACE_Token::shared_acquire, ACE_Thread_Manager::spawn, ACE_Thread::spawn, ACE_Thread_Manager::spawn_i, ACE_Thread_Manager::spawn_n, ACE_Thread::spawn_n, ACE_Thread_Manager::suspend, ACE_Thread_Manager::testcancel, ACE_Thread_Manager::testresume, ACE_Thread_Manager::testsuspend, ACE_OS::thr_cancel, ACE_OS::thr_create, ACE_OS::thr_equal, ACE_OS::thr_join, ACE_OS::thr_kill, ACE_Thread_Manager::thread_all_list, ACE_Thread_Manager::thread_desc_self, ACE_Thread_Manager::thread_descriptor, ACE_Thread_Manager::thread_grp_list, ACE_Thread_Manager::thread_list, and ACE_Thread_Manager::thread_within.

typedef double ACE_timer_t
 

Definition at line 4375 of file OS.h.

typedef TRANSMIT_FILE_BUFFERS ACE_TRANSMIT_FILE_BUFFERS
 

Definition at line 6939 of file OS.h.

typedef struct utsname ACE_utsname
 

Definition at line 3684 of file OS.h.

Referenced by ACE_OS::uname.

typedef const struct iovec ACE_WRITEV_TYPE
 

Definition at line 1211 of file OS.h.

Referenced by ACE_OS::writev.

typedef char* caddr_t
 

Definition at line 2944 of file OS.h.

Referenced by ACE_Mem_Map::advise, ACE_Sock_Connect::count_interfaces, ACE_Sock_Connect::get_bcast_addr, ACE_Sock_Connect::get_ip_interfaces, ACE_OS::madvise, ACE_SOCK_Dgram_Bcast::mk_broadcast, and ACE_OS::priority_control.

typedef int clockid_t
 

Definition at line 649 of file OS.h.

Referenced by ACE_OS::clock_gettime.

typedef long gid_t
 

Definition at line 2942 of file OS.h.

Referenced by ACE_SPIPE_Addr::ACE_SPIPE_Addr, ACE_OS::getgid, ACE_SPIPE_Addr::group_id, ACE_SPIPE_Addr::set, ACE_OS::setgid, and ACE_OS::setregid.

typedef u_short mode_t
 

Definition at line 2939 of file OS.h.

Referenced by ACE_File_Lock::ACE_File_Lock, ACE_MMAP_Memory_Pool_Options::ACE_MMAP_Memory_Pool_Options, ACE_Mutex::ACE_Mutex, ACE_Process_Mutex::ACE_Process_Mutex, ACE_OS::creat, ACE_OS::flock_init, ACE_OS::mkdir, ACE_OS::mkfifo, ACE_File_Lock::open, and ACE_OS::umask.

typedef DWORD nlink_t
 

Definition at line 2937 of file OS.h.

typedef long pid_t
 

Definition at line 2897 of file OS.h.

Referenced by ACE_Process::child, ACE::daemonize, ACE_Process_Manager::find_proc, ACE_OS::fork, ACE::fork, ACE_OS::fork_exec, ACE_OS::getpgid, ACE_OS::getppid, ACE_Process_Manager::handle_signal, ACE_OS::kill, ACE_Process::parent, ACE::process_active, ACE_Process_Manager::reap, ACE_SPIPE_Stream::recv_handle, ACE_Process_Manager::register_handler, ACE_Process_Manager::remove, ACE_Process_Options::setgroup, ACE_OS::setpgid, ACE_Process_Manager::spawn, ACE_Process_Manager::spawn_n, ACE_Process_Manager::terminate, ACE::terminate_process, ACE_Process_Manager::wait, ACE_Process::wait, ACE_OS::wait, and ACE_OS::waitpid.

typedef int sig_atomic_t
 

Definition at line 2597 of file OS.h.

Referenced by ACE_Service_Manager::reconfigure_services.

typedef const char** SYS_SIGLIST
 

Definition at line 4083 of file OS.h.

typedef int ucontext_t
 

Definition at line 4120 of file OS.h.

Referenced by ACE_Sig_Handlers::dispatch, ACE_Sig_Handler::dispatch, ACE_WIN32_Proactor::handle_signal, ACE_Wakeup_All_Threads_Handler::handle_signal, ACE_WFMO_Reactor_Notify::handle_signal, ACE_Async_Timer_Queue_Adapter::handle_signal, ACE_Test_and_Set::handle_signal, ACE_Sig_Adapter::handle_signal, ACE_Service_Manager::handle_signal, ACE_Service_Config::handle_signal, ACE_Process_Manager::handle_signal, ACE_Shared_Memory_Pool::handle_signal, ACE_MMAP_Memory_Pool::handle_signal, ACE_Event_Handler_T::handle_signal, ACE_Event_Handler::handle_signal, and ACE_Strategy_Acceptor::handle_signal.

typedef long uid_t
 

Definition at line 2941 of file OS.h.

Referenced by ACE_Process_Options::ACE_Process_Options, ACE_SPIPE_Addr::ACE_SPIPE_Addr, ACE_OS::getuid, ACE_SPIPE_Addr::set, ACE_OS::setreuid, ACE_OS::setuid, and ACE_SPIPE_Addr::user_id.


Function Documentation

ACE_OS_Export void ace_cleanup_destroyer ACE_Cleanup  ,
void *    param = 0
 

Definition at line 2556 of file OS.cpp.

Referenced by ACE_OS_Exit_Info::call_hooks.

02557 {
02558   object->cleanup (param);
02559 }

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.

Definition at line 4477 of file OS.h.

Referenced by ACE_OS::difftime.

04478 {
04479 # if defined (ACE_PSOS) && ! defined (ACE_PSOS_HAS_TIME)
04480   // simulate difftime ; just subtracting ; ACE_PSOS case
04481   return ((double)t1) - ((double)t0);
04482 # else
04483   return difftime (t1, t0);
04484 # endif /* ACE_PSOS !ACE_PSOS_HAS_TIME */
04485 }

DWORD ACE_HIGH_DWORD ACE_QWORD    q [inline]
 

Definition at line 2915 of file OS.h.

References ACE_QWORD.

02915 { return (DWORD) (q >> 32); }

DWORD ACE_LOW_DWORD ACE_QWORD    q [inline]
 

Definition at line 2914 of file OS.h.

References ACE_QWORD.

02914 { return (DWORD) q; }

ACE_QWORD ACE_MAKE_QWORD DWORD    lo,
DWORD    hi
[inline]
 

Definition at line 2913 of file OS.h.

References ACE_QWORD.

02913 { return ACE_QWORD (lo) | (ACE_QWORD (hi) << 32); }

void ACE_OS_Object_Manager_Internal_Exit_Hook void   
 

Definition at line 6545 of file OS.cpp.

06546 {
06547   if (ACE_OS_Object_Manager::instance_)
06548     ACE_OS_Object_Manager::instance ()->fini ();
06549 }

int ACE_SEH_Default_Exception_Handler void *   
 

Referenced by ACE_OS_Object_Manager::ACE_OS_Object_Manager.

int ACE_SEH_Default_Exception_Selector void *   
 

Referenced by ACE_OS_Object_Manager::ACE_OS_Object_Manager.

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.

Definition at line 4433 of file OS.h.

Referenced by ACE_OS::timezone.

04434 {
04435 #if !defined (VXWORKS) && !defined (ACE_PSOS) && !defined (CHORUS)
04436 # if defined (ACE_HAS_WINCE)
04437   TIME_ZONE_INFORMATION tz;
04438   GetTimeZoneInformation (&tz);
04439   return tz.Bias * 60;
04440 # elif defined (ACE_WIN32)
04441   return _timezone;  // For Win32.
04442 # elif ( defined (__Lynx__) || defined (__FreeBSD__) || defined (ACE_HAS_SUNOS4_GETTIMEOFDAY) ) && ( !defined (__linux__) )
04443   long result = 0;
04444   struct timeval time;
04445   struct timezone zone;
04446   ACE_UNUSED_ARG (result);
04447   ACE_OSCALL (::gettimeofday (&time, &zone), int, -1, result);
04448   return zone.tz_minuteswest * 60;
04449 # else  /* __Lynx__ || __FreeBSD__ ... */
04450 # if defined (__linux__)
04451   // Under Linux, gettimeofday() does not correctly set the timezone
04452   // struct, so we should use the global variable <timezone>.
04453   // However, it is initialized by tzset().  I assume other systems
04454   // are the same (i.e., tzset() needs to be called to set
04455   // <timezone>), but since no one is complaining, I will only make
04456   // the change for Linux.
04457   ::tzset();
04458 # endif
04459   return timezone;
04460 # endif /* __Lynx__ || __FreeBSD__ ... */
04461 #else
04462   ACE_NOTSUP_RETURN (0);
04463 #endif /* !ACE_HAS_WINCE && !VXWORKS && !ACE_PSOS */
04464 }


Variable Documentation

const ACE_UINT32 ACE_U_ONE_SECOND_IN_MSECS = 1000U [static]
 

Definition at line 2489 of file OS.h.

const ACE_UINT32 ACE_U_ONE_SECOND_IN_NSECS = 1000000000U [static]
 

Definition at line 2491 of file OS.h.

const ACE_UINT32 ACE_U_ONE_SECOND_IN_USECS = 1000000U [static]
 

Definition at line 2490 of file OS.h.


Generated on Mon Jun 16 11:54:59 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002