#include "ace/pre.h"#include "ace/config-all.h"#include "ace/OS_Dirent.h"#include "ace/OS_String.h"#include "ace/OS_Memory.h"#include "ace/OS_TLI.h"#include "ace/OS_Errno.h"#include "ace/Time_Value.h"#include "ace/Default_Constants.h"#include "ace/Global_Macros.h"#include "ace/Min_Max.h"#include "ace/streams.h"#include "ace/Basic_Types.h"#include "ace/Trace.h"#include "ace/post.h"Include dependency graph for OS.h:

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

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_TCHAR * | ACE_DL_TYPE |
| typedef void(* | ACE_SIGNAL_C_FUNC )(int, siginfo_t *, void *) |
| typedef int | ucontext_t |
| typedef void(* | ACE_Sig_Handler_Ex )(int, siginfo_t *siginfo, ucontext_t *ucontext) |
| typedef int | ACE_Sched_Priority |
| typedef void(* | ACE_CLEANUP_FUNC )(void *object, void *param) |
| typedef double | ACE_timer_t |
| typedef int | ACE_Rusage |
| typedef _stat | ACE_stat |
| typedef int(* | ACE_COMPARE_FUNC )(const void *, const void *) |
| typedef void(* | ACE_OVERLAPPED_COMPLETION_FUNC )(u_long error, u_long bytes_transferred, ACE_OVERLAPPED *overlapped, u_long flags) |
| typedef u_long | ACE_SOCK_GROUP |
| typedef TRANSMIT_FILE_BUFFERS | ACE_TRANSMIT_FILE_BUFFERS |
| typedef LPTRANSMIT_FILE_BUFFERS | ACE_LPTRANSMIT_FILE_BUFFERS |
| typedef PTRANSMIT_FILE_BUFFERS | ACE_PTRANSMIT_FILE_BUFFERS |
Functions | |
| ACE_QWORD | ACE_MAKE_QWORD (DWORD lo, DWORD hi) |
| DWORD | ACE_LOW_DWORD (ACE_QWORD q) |
| DWORD | ACE_HIGH_DWORD (ACE_QWORD q) |
| int | ACE_SEH_Default_Exception_Selector (void *) |
| int | ACE_SEH_Default_Exception_Handler (void *) |
| ACE_OS_Export void | ace_cleanup_destroyer (ACE_Cleanup *, void *param=0) |
| long | ace_timezone () |
| Helper for the ACE_OS::timezone() function. More... | |
| double | ace_difftime (time_t t1, time_t t0) |
| Helper for the ACE_OS::difftime() function. More... | |
| void | ACE_OS_Object_Manager_Internal_Exit_Hook (void) |
Variables | |
| const ACE_UINT32 | ACE_U_ONE_SECOND_IN_MSECS = 1000U |
| const ACE_UINT32 | ACE_U_ONE_SECOND_IN_USECS = 1000000U |
| const ACE_UINT32 | ACE_U_ONE_SECOND_IN_NSECS = 1000000000U |
Definition in file OS.h.
|
|
|
|
|
|
|
|
Definition at line 3642 of file OS.h. Referenced by ACE_OS::fopen. |
|
|
Definition at line 42 of file OS.h. Referenced by ACE_POSIX_AIOCB_Proactor::check_max_aio_num. |
|
|
|
|
|
|
|
|
Return the next integer aligned to a required boundary.
Definition at line 7133 of file OS.h. Referenced by ACE_OutputCDR::adjust. |
|
|
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. |
|
|
Value: do { POINTER = ALLOCATOR; \
if (POINTER == 0) { errno = ENOMEM; } \
} while (0) |
|
|
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. |
|
|
|
|
|
Definition at line 4022 of file OS.h. Referenced by ACE_IPC_SAP::disable, and ACE_IPC_SAP::enable. |
|
|
|
|
|
|
|
|
|
|
|
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. |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 3628 of file OS.h. Referenced by ACE_Name_Options::ACE_Name_Options. |
|
|
|
|
|
|
|
|
Definition at line 2441 of file OS.h. Referenced by ACE_Log_Msg::open. |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 5290 of file OS.h. Referenced by ACE_RW_Process_Mutex::ACE_RW_Process_Mutex. |
|
|
|
|
|
Definition at line 2727 of file OS.h. Referenced by ACE_SV_Semaphore_Complex::ACE_SV_Semaphore_Complex, and ACE_SV_Semaphore_Simple::open. |
|
|
|
|
|
Definition at line 2707 of file OS.h. Referenced by ACE_Service_Config::open_i. |
|
|
|
|
|
Definition at line 1236 of file OS.h. Referenced by ACE_ATM_QoS::ACE_ATM_QoS, and ACE_OS::thr_create. |
|
|
Definition at line 4046 of file OS.h. Referenced by ACE_Timer_Heap_T::ACE_Timer_Heap_T. |
|
|
Definition at line 2757 of file OS.h. Referenced by ACE_Handle_Gobbler::consume_handles. |
|
|
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. |
|
|
|
|
|
|
|
|
Definition at line 3595 of file OS.h. Referenced by ACE_Name_Options::ACE_Name_Options, and ACE_Local_Name_Space::create_manager_i. |
|
|
|
|
|
|
|
|
Definition at line 2768 of file OS.h. Referenced by ACE_Lib_Find::ldfind. |
|
|
Definition at line 2764 of file OS.h. Referenced by ACE_Lib_Find::ldfind. |
|
|
|
|
|
|
|
|
Value: extern "C" CLS##_Export ACE_Service_Object *\ _make_##SERVICE_CLASS (ACE_Service_Object_Exterminator *); 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.
|
|
|
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; \
}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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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. |
|
|
|
|
|
|
|
|
|
|
|
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. |
|
|
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. |
|
|
Definition at line 2730 of file OS.h. Referenced by ACE_SV_Semaphore_Simple::name_2_key, and ACE_SV_Semaphore_Simple::open. |
|
|
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. |
|
|
Definition at line 4369 of file OS.h. Referenced by ACE_Pipe::open. |
|
|
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. |
|
|
|
|
|
Definition at line 2762 of file OS.h. Referenced by ACE_Lib_Find::ldfind. |
|
|
Definition at line 2763 of file OS.h. Referenced by ACE_Lib_Find::ldfind. |
|
|
|
|
|
|
|
|
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 3656 of file OS.h. Referenced by ACE_Filecache_Object::ACE_Filecache_Object, and ACE_Filecache_Object::release. |
|
|
|
|
|
Definition at line 2697 of file OS.h. Referenced by ACE_Sock_Connect::bind_port. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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. |
|
|
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. |
|
|
|
|
|
|
|
|
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. |
|
|
|
|
|
|
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. |
|
|
Value: do { POINTER = ALLOCATOR; \
if (POINTER == 0) { errno = ENOMEM;} \
else { new (POINTER) CONSTRUCTOR; } \
} while (0) |
|
|
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. |
|
|
|
Definition at line 6689 of file OS.h. Referenced by ACE_Hash_Map_Manager_Ex::close_i, and ACE_Map_Manager::free_search_structure. |
|
|
|
Definition at line 6992 of file OS.h. Referenced by ACE_SOCK_Dgram_Mcast::dump, and ACE_INET_Addr::get_ip_address. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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. |
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 750 of file OS.h. Referenced by ACE_Svc_Handler::peer. |
|
|
|
|
|
|
|
|
Definition at line 751 of file OS.h. Referenced by ACE_Svc_Handler::open. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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. |
|
|
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. |
|
|
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. |
|
|
|
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
|
|
|
Definition at line 2999 of file OS.h. Referenced by ACE_OS::sched_params. |
|
|
|
|
|
|
|
|
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. |
|
|
|
|
|
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.
Definition at line 4516 of file OS.h. Referenced by ACE_SOCK_Stream::close_reader, and ACE_MEM_Stream::close_reader. |
|
|
Definition at line 4524 of file OS.h. Referenced by ACE_SOCK_Stream::close_writer, and ACE_MEM_Stream::close_writer. |
|
|
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. |
|
|
Definition at line 7153 of file OS.h. Referenced by ACE_Asynch_Pseudo_Task::svc. |
|
|
Definition at line 7149 of file OS.h. Referenced by ACE_Asynch_Pseudo_Task::svc. |
|
|
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. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ACE_WIN32 Definition at line 581 of file OS.h. Referenced by ACE_OS::snprintf, ACE_OS::sprintf, and ACE_OS::vsprintf. |
|
|
|
|
|
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.
|
|
|
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
|
|
|
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.
Definition at line 1016 of file OS.h. Referenced by ACE_Object_Manager_Preallocations::ACE_Object_Manager_Preallocations. |
|
|
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.
|
|
|
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;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.
|
|
|
|
|
|
Definition at line 2722 of file OS.h. Referenced by ACE_Process_Options::set_handles, and ACE_Process::spawn. |
|
|
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. |
|
|
Definition at line 2721 of file OS.h. Referenced by ACE_Process_Options::set_handles, and ACE_Process::spawn. |
|
|
|
|
|
|
|
|
|
|
|
The canonical way to invoke (i.e. construct) a service factory method.
|
|
|
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. |
|
|
Value: ((ACE_SWAP_WORD ((L) & 0xFFFF) << 16) \ | ACE_SWAP_WORD(((L) >> 16) & 0xFFFF)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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. |
|
|
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. |
|
|
|
|
|
|
|
|
Definition at line 2129 of file OS.h. Referenced by ACE_OS::thr_create. |
|
|
Definition at line 2141 of file OS.h. Referenced by ACE_OS::thr_create. |
|
|
|
|
|
Definition at line 594 of file OS.h. Referenced by ACE_Timer_Queue_T::ACE_Timer_Queue_T. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 1142 of file OS.h. Referenced by ACE_Thread_Exit::instance, ACE_Unmanaged_TSS_Singleton::instance, and ACE_TSS_Singleton::instance. |
|
|
Definition at line 1141 of file OS.h. Referenced by ACE_Thread_Exit::cleanup, and ACE_Thread_Exit::instance. |
|
|
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. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 919 of file OS.h. Referenced by ACE_OS_Object_Manager::init. |
|
|
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. |
|
|
Definition at line 3698 of file OS.h. Referenced by ACE_DEV_Addr::ACE_DEV_Addr, and ACE_DEV_Addr::set. |
|
|
Definition at line 3696 of file OS.h. Referenced by ACE_FILE_Addr::ACE_FILE_Addr, and ACE_FILE_Addr::set. |
|
|
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. |
|
|
|
|
|
Definition at line 651 of file OS.h. Referenced by ACE_OS::gethrtime, and ACE_OS::gettimeofday. |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 2825 of file OS.h. Referenced by ACE::out_of_handles. |
|
|
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. |
|
|
|
|
|
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. |
|
|
|
|
|
|
|
|
Definition at line 2837 of file OS.h. Referenced by ACE::handle_timed_complete, and ACE_TSS_Connection::make_TSS_TYPE. |
|
|
|
|
|
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. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 3973 of file OS.h. Referenced by ACE_SV_Semaphore_Complex::open. |
|
|
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. |
|
|
Definition at line 2832 of file OS.h. Referenced by ACE_SOCK_Connector::shared_connect_finish. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 3977 of file OS.h. Referenced by ACE::out_of_handles. |
|
|
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. |
|
|
|
|
|
|
|
|
|
|
|
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. |
|
|
Definition at line 2821 of file OS.h. Referenced by ACE::out_of_handles. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 3969 of file OS.h. Referenced by ACE_Streambuf_T::recv, and ACE_Streambuf_T::recv_n. |
|
|
|
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. |
|
|
|
|
|
|
|
|
|
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. |
|
|
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. |
|
|
|
|
|
Definition at line 3918 of file OS.h. Referenced by ACE_SV_Semaphore_Complex::close, and ACE_SV_Semaphore_Complex::open. |
|
|
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. |
|
|
Definition at line 3727 of file OS.h. Referenced by ACE_OS::inet_addr, and ACE_OS::inet_aton. |
|
|
Definition at line 3739 of file OS.h. Referenced by ACE_INET_Addr::get_host_addr. |
|
|
Definition at line 3734 of file OS.h. Referenced by ACE_OS::inet_ntop. |
|
|
|
|
|
Definition at line 3877 of file OS.h. Referenced by ACE_SOCK_Dgram_Mcast::subscribe_i. |
|
|
|
|
|
|
|
|
Definition at line 3873 of file OS.h. Referenced by ACE_SOCK_Dgram_Mcast::unsubscribe_i. |
|
|
|
|
|
Definition at line 3890 of file OS.h. Referenced by ACE_SOCK_Dgram_Mcast::open_i, and ACE_SOCK_Dgram::set_nic. |
|
|
|
|
|
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. |
|
|
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. |
|
|
Definition at line 3861 of file OS.h. Referenced by ACE_SV_Semaphore_Simple::tryacquire. |
|
|
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. |
|
|
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. |
|
|
Definition at line 3914 of file OS.h. Referenced by ACE_Shared_Memory_Pool::find_seg, and ACE_Shared_Memory_Pool::in_use. |
|
|
Definition at line 4024 of file OS.h. Referenced by ACE_ATM_QoS::construct_options. |
|
|
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. |
|
|
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. |
|
|
Definition at line 2774 of file OS.h. Referenced by ACE_OS::mmap, and ACE_Dev_Poll_Reactor::open. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
Definition at line 2959 of file OS.h. Referenced by ACE_Module< ACE_SYNCH_USE >::name, and ACE_DEV_Addr::set. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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. |
|
|
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. |
|
|
Definition at line 2793 of file OS.h. Referenced by ACE_Mem_Map::map_it, and ACE_Dev_Poll_Reactor::open. |
|
|
Definition at line 3953 of file OS.h. Referenced by ACE_Filecache_Object::ACE_Filecache_Object. |
|
|
Definition at line 4025 of file OS.h. Referenced by ACE_ATM_Stream::get_peer_name. |
|
|
|
|
|
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. |
|
|
Definition at line 4124 of file OS.h. Referenced by ACE_Sig_Handlers::register_handler, and ACE_Sig_Handler::register_handler_i. |
|
|
|
|
|
|
|
|
Definition at line 3926 of file OS.h. Referenced by ACE_SV_Semaphore_Simple::open, and ACE_SV_Semaphore_Complex::open. |
|
|
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. |
|
|
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. |
|
|
Definition at line 3836 of file OS.h. Referenced by ACE_OS::sigaction. |
|
|
Definition at line 3828 of file OS.h. Referenced by ACE::daemonize, ACE_Sig_Handlers::register_handler, and ACE_OS::sigaction. |
|
|
Definition at line 3853 of file OS.h. Referenced by ACE_OS::thr_sigsetmask, and ACE_Sig_Guard::~ACE_Sig_Guard. |
|
|
Definition at line 3849 of file OS.h. Referenced by ACE_OS::thr_sigsetmask. |
|
|
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. |
|
|
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. |
|
|
|
|
|
Definition at line 3773 of file OS.h. Referenced by ACE_Service_Manager::ACE_Service_Manager, and ACE::daemonize. |
|
|
|
|
|
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. |
|
|
Definition at line 3809 of file OS.h. Referenced by ACE_Service_Manager::handle_input. |
|
|
|
|
|
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. |
|
|
|
|
|
|
|
|
Definition at line 3906 of file OS.h. Referenced by ACE_SOCK_Dgram_Mcast::make_multicast_ifaddr, and ACE_SOCK_Dgram::set_nic. |
|
|
Definition at line 3902 of file OS.h. Referenced by ACE_Sock_Connect::get_bcast_addr, and ACE_SOCK_Dgram_Bcast::mk_broadcast. |
|
|
Definition at line 3957 of file OS.h. Referenced by ACE_Filecache_Object::ACE_Filecache_Object. |
|
|
|
|
|
Definition at line 7038 of file OS.h. Referenced by ACE::fork, and ACE_Process::return_value. |
|
|
|
|
|
Definition at line 7030 of file OS.h. Referenced by ACE::fork. |
|
|
|
|
|
|
|
|
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. |
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 4402 of file OS.h. Referenced by ACE_OS::bsearch, and ACE_OS::qsort. |
|
|
Definition at line 4096 of file OS.h. Referenced by ACE_OS::dlopen. |
|
|
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. |
|
|
Definition at line 3704 of file OS.h. Referenced by ACE_Handle_Set::ACE_Handle_Set, and ACE_OS::select. |
|
|
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. |
|
|
|
|
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. |
|
|
Definition at line 2997 of file OS.h. Referenced by ACE_OS::priority_control. |
|
|
Definition at line 6940 of file OS.h. Referenced by ACE_WIN32_Asynch_Transmit_File::transmit_file. |
|
|
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. |
|
|
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. |
|
|
|
|
|
Definition at line 4065 of file OS.h. Referenced by ACE_OS::getprotobyname_r, and ACE_OS::getprotobynumber_r. |
|
|
|
|
|
Definition at line 2911 of file OS.h. Referenced by ACE_HIGH_DWORD, ACE_LOW_DWORD, and ACE_MAKE_QWORD. |
|
|
Definition at line 2572 of file OS.h. Referenced by ACE_OS::rand_r. |
|
|
|
|
|
|
|
|
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. |
|
|
Definition at line 2559 of file OS.h. Referenced by ACE_OS::sendmsg. |
|
|
Definition at line 4064 of file OS.h. Referenced by ACE_OS::getservbyname_r, and ACE_INET_Addr::set. |
|
|
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. |
|
|
Definition at line 1223 of file OS.h. Referenced by ACE_OS::setrlimit. |
|
|
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. |
|
|
Definition at line 4176 of file OS.h. Referenced by ACE_Sig_Adapter::ACE_Sig_Adapter, and ACE_Sig_Adapter::handle_signal. |
|
|
|
|
|
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. |
|
|
Definition at line 2637 of file OS.h. Referenced by ACE_Sig_Action::ACE_Sig_Action, and ACE_Sig_Action::handler. |
|
|
|
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. |
|
|
|
|
|
|
|
|
|
|
Definition at line 3684 of file OS.h. Referenced by ACE_OS::uname. |
|
|
Definition at line 1211 of file OS.h. Referenced by ACE_OS::writev. |
|
|
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. |
|
|
Definition at line 649 of file OS.h. Referenced by ACE_OS::clock_gettime. |
|
|
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. |
|
|
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. |
|
|
|
|
|
|
Definition at line 2597 of file OS.h. Referenced by ACE_Service_Manager::reconfigure_services. |
|
|
|
|
|
|
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. |
|
||||||||||||
|
Definition at line 2556 of file OS.cpp. Referenced by ACE_OS_Exit_Info::call_hooks.
02557 {
02558 object->cleanup (param);
02559 }
|
|
||||||||||||
|
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 }
|
|
|
Definition at line 2915 of file OS.h. References ACE_QWORD.
02915 { return (DWORD) (q >> 32); }
|
|
|
Definition at line 2914 of file OS.h. References ACE_QWORD.
02914 { return (DWORD) q; }
|
|
||||||||||||
|
Definition at line 2913 of file OS.h. References ACE_QWORD.
|
|
|
Definition at line 6545 of file OS.cpp.
06546 {
06547 if (ACE_OS_Object_Manager::instance_)
06548 ACE_OS_Object_Manager::instance ()->fini ();
06549 }
|
|
|
Referenced by ACE_OS_Object_Manager::ACE_OS_Object_Manager. |
|
|
Referenced by ACE_OS_Object_Manager::ACE_OS_Object_Manager. |
|
|
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 }
|
|
|
|
|
|
|
|
|
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002