*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)

*Fix a possible crash in Spell::DoAllEffectOnTarget

--HG--
branch : trunk
This commit is contained in:
maximius
2009-10-17 15:35:07 -07:00
parent f21f47005d
commit 26b5e033ff
2257 changed files with 750 additions and 103852 deletions
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_inet.h
@@ -12,30 +11,22 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_ARPA_OS_INET_H
#define ACE_OS_INCLUDE_ARPA_OS_INET_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/netinet/os_in.h"
#if !defined (ACE_LACKS_ARPA_INET_H)
extern "C" {
# include /**/ <arpa/inet.h>
}
#endif /* !ACE_LACKS_ARPA_INET_H */
#if defined (ACE_VXWORKS)
# include /**/ <inetLib.h>
#endif /* ACE_VXWORKS */
/**
* In some environments it is useful to swap the bytes on write, for
* instance: a fast server can be feeding a lot of slow clients that
@@ -46,7 +37,6 @@
* activate it on a per-connection basis.
*/
// #define ACE_ENABLE_SWAP_ON_WRITE
/**
* In some environements we never need to swap bytes when reading, for
* instance embebbed systems (such as avionics) or homogenous
@@ -55,21 +45,17 @@
* in the wrong byte order.
*/
// #define ACE_DISABLE_SWAP_ON_READ
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_LACKS_INET_ATON_PROTOTYPE)
int inet_aton (const char *, struct in_addr *);
#endif /* ACE_LACKS_INET_ATON_PROTOTYPE */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_ARPA_OS_INET_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_if.h
@@ -12,18 +11,13 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_NET_OS_IF_H
#define ACE_OS_INCLUDE_NET_OS_IF_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_NET_IF_H)
// This part if to avoid STL name conflict with the map structure
// in net/if.h.
@@ -43,21 +37,17 @@
# undef IOR
# endif /* HPUX && IOR */
#endif /* !ACE_LACKS_NET_IF_H */
#if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
# include /**/ <ws2tcpip.h>
#endif /* ACE_HAS_WINSOCK2 */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_HAS_BROKEN_IF_HEADER)
struct ifafilt;
#endif /* ACE_HAS_BROKEN_IF_HEADER */
#if defined (ACE_LACKS_IFREQ)
struct ifreq {
#define IFNAMSIZ 16
@@ -86,7 +76,6 @@ struct ifreq {
#define ifr_tap ifr_ifru.ifru_tap /* tap function */
};
#endif /* ACE_LACKS_IFREQ */
#if defined (ACE_LACKS_IFCONF)
struct ifconf {
int ifc_len;
@@ -98,23 +87,18 @@ struct ifconf {
#define ifc_req ifc_ifcu.ifcu_req /* array of structures returned */
};
#endif /* ACE_LACKS_IFCONF */
#if !defined (IFF_UP)
# define IFF_UP 0x1
#endif /* IFF_UP */
#if !defined (IFF_LOOPBACK)
# define IFF_LOOPBACK 0x8
#endif /* IFF_LOOPBACK */
#if !defined (IFF_BROADCAST)
# define IFF_BROADCAST 0x2
#endif /* IFF_BROADCAST */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_NET_OS_IF_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_in.h
@@ -12,25 +11,18 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_NETINET_OS_IN_H
#define ACE_OS_INCLUDE_NETINET_OS_IN_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/os_inttypes.h"
#include "ace/os_include/sys/os_socket.h"
#if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
# include /**/ <ws2tcpip.h>
#endif /* ACE_HAS_WINSOCK2 */
#if !defined (ACE_LACKS_NETINET_IN_H)
# if defined (ACE_HAS_STL_QUEUE_CONFLICT)
# define queue _Queue_
@@ -42,19 +34,16 @@
# undef queue
# endif /* ACE_HAS_STL_QUEUE_CONFLICT */
#endif /* !ACE_LACKS_NETINET_IN_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
# if defined (ACE_HAS_PHARLAP_RT)
# define ACE_IPPROTO_TCP SOL_SOCKET
# else
# define ACE_IPPROTO_TCP IPPROTO_TCP
# endif /* ACE_HAS_PHARLAP_RT */
# if !defined (ACE_HAS_IP_MULTICAST) && defined (ACE_LACKS_IP_ADD_MEMBERSHIP)
// Even if ACE_HAS_IP_MULTICAST is not defined, if IP_ADD_MEMBERSHIP
// is defined, assume that the ip_mreq struct is also defined
@@ -67,14 +56,12 @@ extern "C"
struct in_addr imr_interface;
};
# endif /* ! ACE_HAS_IP_MULTICAST && ACE_LACKS_IP_ADD_MEMBERSHIP */
# if defined (ACE_LACKS_IN_ADDR)
struct in_addr
{
u_long s_addr;
};
# endif /* ACE_LACKS_IN_ADDR */
# if defined (ACE_LACKS_SOCKADDR_IN)
struct sockaddr_in
{
@@ -84,7 +71,6 @@ extern "C"
char sin_zero[8]; // zero this if you want to
};
# endif /* ACE_LACKS_SOCKADDR_IN */
# if defined (ACE_LACKS_SOCKADDR_UN)
struct sockaddr_un {
u_char sun_len; /* sockaddr len including null */
@@ -92,7 +78,6 @@ extern "C"
char sun_path[104]; /* path name (gag) */
};
#endif /* ACE_LACKS_SOCKADDR_UN */
# if defined (ACE_LACKS_IP_MREQ)
struct ip_mreq
{
@@ -100,26 +85,21 @@ extern "C"
struct in_addr imr_interface; /* local IP address of interface */
};
# endif /* ACE_LACKS_IP_MREQ */
#if !defined (IPPORT_RESERVED)
# define IPPORT_RESERVED 1024
#endif /* !IPPORT_RESERVED */
#if !defined (IPPORT_USERRESERVED)
# define IPPORT_USERRESERVED 5000
#endif /* !IPPORT_USERRESERVED */
// Define INET loopback address constant if it hasn't been defined
// Dotted Decimal 127.0.0.1 == Hexidecimal 0x7f000001
#if !defined (INADDR_LOOPBACK)
# define INADDR_LOOPBACK ((ACE_UINT32) 0x7f000001)
#endif /* INADDR_LOOPBACK */
// The INADDR_NONE address is generally 255.255.255.255.
#if !defined (INADDR_NONE)
# define INADDR_NONE ((ACE_UINT32) 0xffffffff)
#endif /* INADDR_NONE */
// Define INET string length constants if they haven't been defined
//
// for IPv4 dotted-decimal
@@ -131,56 +111,43 @@ extern "C"
#if !defined (INET6_ADDRSTRLEN)
# define INET6_ADDRSTRLEN 46
#endif /* INET6_ADDRSTRLEN */
# if !defined (IP_DROP_MEMBERSHIP)
# define IP_DROP_MEMBERSHIP 0
# endif /* IP_DROP_MEMBERSHIP */
# if !defined (IP_ADD_MEMBERSHIP)
# define IP_ADD_MEMBERSHIP 0
# define ACE_LACKS_IP_ADD_MEMBERSHIP
# endif /* IP_ADD_MEMBERSHIP */
# if !defined (IP_DEFAULT_MULTICAST_TTL)
# define IP_DEFAULT_MULTICAST_TTL 0
# endif /* IP_DEFAULT_MULTICAST_TTL */
# if !defined (IP_DEFAULT_MULTICAST_LOOP)
# define IP_DEFAULT_MULTICAST_LOOP 0
# endif /* IP_DEFAULT_MULTICAST_LOOP */
# if !defined (IP_MULTICAST_IF)
# define IP_MULTICAST_IF 0
# endif /* IP_MULTICAST_IF */
# if !defined (IP_MULTICAST_TTL)
# define IP_MULTICAST_TTL 1
# endif /* IP_MULTICAST_TTL */
# if !defined (IP_MULTICAST_LOOP)
# define IP_MULTICAST_LOOP 2
# endif /* IP_MULTICAST_LOOP */
# if !defined (IP_MAX_MEMBERSHIPS)
# define IP_MAX_MEMBERSHIPS 0
# endif /* IP_MAX_MEMBERSHIP */
# if !defined (IPPROTO_IP)
# define IPPROTO_IP 0
# endif /* IPPROTO_IP */
# if !defined (IPPROTO_TCP)
# define IPPROTO_TCP 6
# endif /* IPPROTO_TCP */
# if !defined (INADDR_ANY)
# define INADDR_ANY (u_long)0x00000000
# endif /* INADDR_ANY */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_NETINET_OS_IN_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_tcp.h
@@ -12,36 +11,27 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_NETINET_OS_TCP_H
#define ACE_OS_INCLUDE_NETINET_OS_TCP_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_NETINET_TCP_H)
# include /**/ <netinet/tcp.h>
#endif /* !ACE_LACKS_NETIINET_TCP_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
# if !defined (TCP_NODELAY)
# define TCP_NODELAY 0x01
# endif /* TCP_NODELAY */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_NETINET_OS_TCP_H */
-11
View File
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_aio.h
@@ -12,37 +11,27 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_AIO_H
#define ACE_OS_INCLUDE_OS_AIO_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
// Inclusion of the <aio.h> header may make visible symbols defined in
// the headers <fcntl.h>, <signal.h>, <sys/types.h>, and <time.h>.
#include "ace/os_include/os_signal.h" // for sigevent
#if !defined (ACE_LACKS_AIO_H)
# include /**/ <aio.h>
#endif /* !ACE_LACKS_AIO_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_AIO_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_assert.h
@@ -12,36 +11,27 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_ASSERT_H
#define ACE_OS_INCLUDE_OS_ASSERT_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_ASSERT_H)
# include /**/ <assert.h>
#endif /* !ACE_LACKS_ASSERT_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_LACKS_ASSERT_MACRO)
# define assert(expr)
#endif
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_ASSERT_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_byteswap.h
@@ -11,32 +10,24 @@
* @author Johnny Willemsen <[email protected]>
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_BYTESWAP_H
#define ACE_OS_INCLUDE_OS_BYTESWAP_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if defined (ACE_HAS_BYTESWAP_H)
# include /**/ <byteswap.h>
#endif /* !ACE_HAS_INTRIN_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_BYTESWAP_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_complex.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_COMPLEX_H
#define ACE_OS_INCLUDE_OS_COMPLEX_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_COMPLEX_H)
# include /**/ <complex.h>
#endif /* !ACE_LACKS_COMPLEX_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_COMPLEX_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_cpio.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_CPIO_H
#define ACE_OS_INCLUDE_OS_CPIO_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_CPIO_H)
# include /**/ <cpio.h>
#endif /* !ACE_LACKS_CPIO_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_CPIO_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_ctype.h
@@ -12,35 +11,26 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_CTYPE_H
#define ACE_OS_INCLUDE_OS_CTYPE_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_CTYPE_H)
# include /**/ <ctype.h>
#endif /* !ACE_LACKS_CTYPE_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
// @todo move the is* and is* emulation methods in ACE_OS here
// and let ACE_OS just call them.
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_CTYPE_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_dirent.h
@@ -12,46 +11,35 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_DIRENT_H
#define ACE_OS_INCLUDE_OS_DIRENT_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h"
#include "ace/os_include/os_limits.h"
#if defined (ACE_VXWORKS) && (ACE_VXWORKS < 0x620)
# include "ace/os_include/os_unistd.h" // VxWorks needs this to compile
#endif /* ACE_VXWORKS */
#if !defined (ACE_LACKS_DIRENT_H)
# include /**/ <dirent.h>
#endif /* !ACE_LACKS_DIRENT_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if !defined (MAXNAMLEN)
# define MAXNAMLEN NAME_MAX
#endif /* !MAXNAMLEN */
// At least compile on some of the platforms without <ACE_DIR> info yet.
#if !defined (ACE_HAS_DIRENT)
typedef int ACE_DIR;
struct dirent {
};
#endif /* ACE_HAS_DIRENT */
#if defined (ACE_LACKS_STRUCT_DIR)
struct dirent {
unsigned short d_ino;
@@ -62,22 +50,16 @@ struct dirent {
// character builds with Visual C++ 6.0.
ACE_TCHAR *d_name;
};
#define ACE_DIRENT dirent
struct ACE_DIR {
/// The name of the directory we are looking into
ACE_TCHAR *directory_name_;
/// Remember the handle between calls.
HANDLE current_handle_;
/// The struct for the results
ACE_DIRENT *dirent_;
/// The struct for intermediate results.
ACE_TEXT_WIN32_FIND_DATA fdata_;
/// A flag to remember if we started reading already.
int started_reading_;
};
@@ -88,22 +70,18 @@ typedef wDIR ACE_DIR;
#define ACE_DIRENT dirent
typedef DIR ACE_DIR;
#endif /* ACE_LACKS_STRUCT_DIR */
#if defined (ACE_LACKS_SCANDIR_PROTOTYPE)
int scandir (const char *,
struct dirent ***,
int (*) (const struct dirent *),
int (*) (const void *, const void *));
#endif /* ACE_LACKS_SCANDIR_PROTOTYPE */
#if defined (ACE_LACKS_ALPHASORT_PROTOTYPE)
int alphasort (const void *, const void *);
#endif /* ACE_LACKS_ALPHASORT_PROTOTYPE */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_DIRENT_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_dlfcn.h
@@ -12,22 +11,16 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_DLFCN_H
#define ACE_OS_INCLUDE_OS_DLFCN_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_DLFCN_H)
# include /**/ <dlfcn.h>
#endif /* !ACE_LACKS_DLFCN_H */
#if defined (__hpux)
# if defined(__GNUC__) || __cplusplus >= 199707L
# include /**/ <dl.h>
@@ -35,27 +28,23 @@
# include /**/ <cxxdl.h>
# endif /* (g++ || HP aC++) vs. HP C++ */
#endif /* __hpux */
#if defined (ACE_VXWORKS) && !defined (__RTP__)
# include /**/ <loadLib.h> /* for module load */
# include /**/ <unldLib.h> /* for module unload */
# include /**/ <symLib.h> /* for findSymbol */
# include /**/ <sysSymTbl.h> /* for global symbol table */
#endif /* ACE_VXWORKS */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (_M_UNIX)
int _dlclose (void *);
char *_dlerror (void);
void *_dlopen (const char *, int);
void * _dlsym (void *, const char *);
#endif /* _M_UNIX */
/* Set the proper handle type for dynamically-loaded libraries. */
/* Also define a default 'mode' for loading a library - the names and values */
/* differ between OSes, so if you write code that uses the mode, be careful */
@@ -80,23 +69,18 @@ extern "C"
# define ACE_SHLIB_INVALID_HANDLE 0
# define ACE_DEFAULT_SHLIB_MODE RTLD_LAZY
#endif /* ACE_WIN32 */
#if !defined (RTLD_LAZY)
#define RTLD_LAZY 1
#endif /* !RTLD_LAZY */
#if !defined (RTLD_NOW)
#define RTLD_NOW 2
#endif /* !RTLD_NOW */
#if !defined (RTLD_GLOBAL)
#define RTLD_GLOBAL 3
#endif /* !RTLD_GLOBAL */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_DLFCN_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_errno.h
@@ -12,33 +11,25 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_ERRNO_H
#define ACE_OS_INCLUDE_OS_ERRNO_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_ERRNO_H)
# include /**/ <errno.h>
#endif /* !ACE_LACKS_ERRNO_H */
#if defined (ACE_VXWORKS)
// Needed for VxWorks to pickup errnoSet()
#include /**/ <errnoLib.h>
#endif /* ACE_VXWORKS */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_WIN32)
// error code mapping for windows
# define ETIME ERROR_SEM_TIMEOUT
@@ -81,74 +72,57 @@ extern "C"
// 'standard' library.
// #define ENAMETOOLONG WSAENAMETOOLONG
# define EADDRINUSE WSAEADDRINUSE
// CE needs this...
# if !defined (EPERM)
# define EPERM ERROR_ACCESS_DENIED
# endif
#endif /* ACE_WIN32 */
#if defined (ACE_HAS_H_ERRNO)
void herror (const char *str);
#endif /* ACE_HAS_H_ERRNO */
#if !defined (ACE_WIN32) && defined (ACE_LACKS_T_ERRNO)
extern int t_errno;
#endif /* ACE_WIN32 && ACE_LACKS_T_ERRNO */
#if !defined (ENOSYS)
# define ENOSYS EFAULT /* Operation not supported or unknown error. */
#endif /* !ENOSYS */
#if !defined (ENOTSUP)
# define ENOTSUP ENOSYS /* Operation not supported. */
#endif /* !ENOTSUP */
#if !defined (ESUCCESS)
# define ESUCCESS 0
#endif /* !ESUCCESS */
#if !defined (EIDRM)
# define EIDRM 0
#endif /* !EIDRM */
#if !defined (ENFILE)
# define ENFILE EMFILE /* No more socket descriptors are available. */
#endif /* !ENFILE */
#if !defined (ECOMM)
// Not the same, but ECONNABORTED is provided on NT.
# define ECOMM ECONNABORTED
#endif /* ECOMM */
#if !defined (EDEADLK)
# define EDEADLK 1000 /* Some large number.... */
#endif /* !EDEADLK */
#if !defined (ENXIO) /* Needed in SOCK_Dgram_Mcast */
# define ENXIO 6
#endif /* ENXIO */
#if !defined (ETIMEDOUT) && defined (ETIME)
# define ETIMEDOUT ETIME
#endif /* ETIMEDOUT */
#if !defined (ETIME) && defined (ETIMEDOUT)
# define ETIME ETIMEDOUT
#endif /* ETIMED */
#if !defined (EBUSY)
# define EBUSY ETIME
#endif /* EBUSY */
#if !defined (ECANCELED)
# define ECANCELED 125
#endif /* ECANCELED */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_ERRNO_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_fcntl.h
@@ -12,36 +11,27 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_FCNTL_H
#define ACE_OS_INCLUDE_OS_FCNTL_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_stat.h"
#include "ace/os_include/sys/os_types.h"
#if !defined (ACE_LACKS_FCNTL_H)
# include /**/ <fcntl.h>
#endif /* !ACE_LACKS_FCNTL_H */
#if defined (ACE_VXWORKS) && (ACE_VXWORKS < 0x620)
// for creat(), open()
# include /**/ <ioLib.h>
#endif /* ACE_VXWORKS */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (__BORLANDC__)
# define _O_CREAT O_CREAT
# define _O_EXCL O_EXCL
@@ -55,11 +45,9 @@ extern "C"
# define _O_BINARY O_BINARY
# define _O_TEXT O_TEXT
#endif /* __BORLANDC__ */
#if defined (__DMC__)
# define _O_TEMPORARY 0x08 /* see fcntl.h */
#endif /* __DMC__ */
// defined Win32 specific macros for UNIX platforms
#if !defined (O_BINARY)
# define O_BINARY 0
@@ -79,29 +67,23 @@ extern "C"
#if !defined (_O_RAW)
# define _O_RAW O_RAW
#endif /* _O_RAW */
#if defined (ACE_WIN32)
# define O_NDELAY 1
#endif /* ACE_WIN32 */
# if !defined (O_NONBLOCK)
# define O_NONBLOCK 1
# endif /* O_NONBLOCK */
#if defined (ACE_HAS_POSIX_NONBLOCK)
# define ACE_NONBLOCK O_NONBLOCK
#else
# define ACE_NONBLOCK O_NDELAY
#endif /* ACE_HAS_POSIX_NONBLOCK */
# if !defined (F_GETFL)
# define F_GETFL 0
# endif /* F_GETFL */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_FCNTL_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_fenv.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_FENV_H
#define ACE_OS_INCLUDE_OS_FENV_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_FENV_H)
# include /**/ <fenv.h>
#endif /* !ACE_LACKS_FENV_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_FENV_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_float.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_FLOAT_H
#define ACE_OS_INCLUDE_OS_FLOAT_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_FLOAT_H)
# include /**/ <float.h>
#endif /* !ACE_LACKS_FLOAT_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_FLOAT_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_fmtmsg.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_FMTMSG_H
#define ACE_OS_INCLUDE_OS_FMTMSG_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_FMTMSG_H)
# include /**/ <fmtmsg.h>
#endif /* !ACE_LACKS_FMTMSG_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_FMTMSG_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_fnmatch.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_FNMATCH_H
#define ACE_OS_INCLUDE_OS_FNMATCH_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_FNMATCH_H)
# include /**/ <fnmatch.h>
#endif /* !ACE_LACKS_FNMATCH_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_FNMATCH_H */
-10
View File
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_ftw.h
@@ -12,34 +11,25 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_FTW_H
#define ACE_OS_INCLUDE_OS_FTW_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_stat.h"
#if !defined (ACE_LACKS_FTW_H)
# include /**/ <ftw.h>
#endif /* !ACE_LACKS_FTW_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_FTW_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_glob.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_GLOB_H
#define ACE_OS_INCLUDE_OS_GLOB_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_GLOB_H)
# include /**/ <glob.h>
#endif /* !ACE_LACKS_GLOB_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_GLOB_H */
-10
View File
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_grp.h
@@ -12,34 +11,25 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_GRP_H
#define ACE_OS_INCLUDE_OS_GRP_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h" // for gid_t
#if !defined (ACE_LACKS_GRP_H)
# include /**/ <grp.h>
#endif /* !ACE_LACKS_GRP_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_GRP_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_iconv.h
@@ -12,34 +11,25 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_ICONV_H
#define ACE_OS_INCLUDE_OS_ICONV_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h"
#if !defined (ACE_LACKS_ICONV_H)
# include /**/ <iconv.h>
#endif /* !ACE_LACKS_ICONV_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_ICONV_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_intrin.h
@@ -11,36 +10,27 @@
* @author Johnny Willemsen <[email protected]>
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_INTRIN_H
#define ACE_OS_INCLUDE_OS_INTRIN_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if defined (ACE_HAS_INTRIN_H)
# include /**/ <intrin.h>
#endif /* !ACE_HAS_INTRIN_H */
#if defined (ACE_HAS_IA64INTRIN_H)
# include /**/ <ia64intrin.h>
#endif /* !ACE_HAS_IA64INTRIN_H */
#if defined (ACE_HAS_IA32INTRIN_H)
# include /**/ <ia32intrin.h>
#endif /* !ACE_HAS_IA32INTRIN_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (_MSC_VER) && (_MSC_VER < 1400) && !(defined (__INTEL_COMPILER) && (__INTEL_COMPILER == 900))
// See http://msdn2.microsoft.com/en-us/library/f24ya7ct(VS.71).aspx
LONG __cdecl _InterlockedIncrement (LONG volatile *Addend);
@@ -48,11 +38,9 @@ LONG __cdecl _InterlockedDecrement (LONG volatile *Addend);
LONG __cdecl _InterlockedExchange (LONG volatile *Target, LONG Value);
LONG __cdecl _InterlockedExchangeAdd (LONG volatile *Addend, LONG Value);
#endif //_MSC_VER
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_INTRIN_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_inttypes.h
@@ -12,36 +11,26 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_INTTYPES_H
#define ACE_OS_INCLUDE_OS_INTTYPES_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/os_stdint.h"
#if !defined (ACE_LACKS_INTTYPES_H)
# include /**/ <inttypes.h>
#endif /* !ACE_LACKS_INTTYPES_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
// @todo if needbe, we can define the macros if they aren't available.
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_INTTYPES_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_iso646.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_ISO646_H
#define ACE_OS_INCLUDE_OS_ISO646_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_ISO646_H)
# include /**/ <iso646.h>
#endif /* !ACE_LACKS_ISO646_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_ISO646_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_kstat.h
@@ -9,36 +8,27 @@
* @author Johnny Willemsen <[email protected]>
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_KSTAT_H
#define ACE_OS_INCLUDE_OS_KSTAT_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if defined (ACE_HAS_KSTAT)
# define ACE_HAS_KSTAT_H
#endif /* ACE_HAS_KSTAT */
#if defined (ACE_HAS_KSTAT_H)
# include <kstat.h>
#endif /* ACE_HAS_KSTAT_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_KSTAT_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_langinfo.h
@@ -12,34 +11,25 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_LANGINFO_H
#define ACE_OS_INCLUDE_OS_LANGINFO_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/os_nl_types.h"
#if !defined (ACE_LACKS_LANGINFO_H)
# include /**/ <langinfo.h>
#endif /* !ACE_LACKS_LANGINFO_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_LANGINFO_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_libgen.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_LIBGEN_H
#define ACE_OS_INCLUDE_OS_LIBGEN_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_LIBGEN_H)
# include /**/ <libgen.h>
#endif /* !ACE_LACKS_LIBGEN_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_LIBGEN_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_local.h
@@ -12,34 +11,25 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_LOCAL_H
#define ACE_OS_INCLUDE_OS_LOCAL_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/os_stddef.h"
#if !defined (ACE_LACKS_LOCAL_H)
# include /**/ <local.h>
#endif /* !ACE_LACKS_LOCAL_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_LOCAL_H */
-10
View File
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_math.h
@@ -12,34 +11,25 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_MATH_H
#define ACE_OS_INCLUDE_OS_MATH_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
// FUZZ: disable check_for_math_include
#if !defined (ACE_LACKS_MATH_H)
# include /**/ <math.h>
#endif /* !ACE_LACKS_MATH_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_MATH_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_monetary.h
@@ -12,34 +11,25 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_MONETARY_H
#define ACE_OS_INCLUDE_OS_MONETARY_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h"
#if !defined (ACE_LACKS_MONETARY_H)
# include /**/ <monetary.h>
#endif /* !ACE_LACKS_MONETARY_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_MONETARY_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_mqueue.h
@@ -12,34 +11,25 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_MQUEUE_H
#define ACE_OS_INCLUDE_OS_MQUEUE_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/os_signal.h"
#if !defined (ACE_LACKS_MQUEUE_H)
# include /**/ <mqueue.h>
#endif /* !ACE_LACKS_MQUEUE_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_MQUEUE_H */
-10
View File
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_ndbm.h
@@ -12,34 +11,25 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_NDBM_H
#define ACE_OS_INCLUDE_OS_NDBM_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h"
#if !defined (ACE_LACKS_NDBM_H)
# include /**/ <ndbm.h>
#endif /* !ACE_LACKS_NDBM_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_NDBM_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_netdb.h
@@ -12,21 +11,15 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_NETDB_H
#define ACE_OS_INCLUDE_OS_NETDB_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/netinet/os_in.h"
#include "ace/os_include/os_limits.h"
#if !defined (ACE_LACKS_NETDB_H)
# if defined (ACE_HAS_STL_QUEUE_CONFLICT)
# define queue _Queue_
@@ -38,17 +31,14 @@
# undef queue
# endif /* ACE_HAS_STL_QUEUE_CONFLICT */
#endif /* !ACE_LACKS_NETDB_H */
#if defined (ACE_VXWORKS) && (ACE_VXWORKS < 0x620)
# include /**/ <hostLib.h>
#endif /* ACE_VXWORKS */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_LACKS_HOSTENT)
struct hostent {
char *h_name; /* official name of host */
@@ -59,7 +49,6 @@ struct hostent {
#define h_addr h_addr_list[0] /* address, for backward compatibility */
};
#endif /* ACE_LACKS_HOSTENT */
#if defined (ACE_LACKS_PROTOENT)
struct protoent {
char *p_name; /* official protocol name */
@@ -67,7 +56,6 @@ struct protoent {
int p_proto; /* protocol # */
};
#endif /* ACE_LACKS_PROTOENT */
#if defined (ACE_LACKS_SERVENT)
struct servent {
char *s_name; /* official service name */
@@ -76,7 +64,6 @@ struct servent {
char *s_proto; /* protocol to use */
};
#endif /* ACE_LACKS_SERVENT */
#if defined (ACE_HAS_STRUCT_NETDB_DATA)
typedef char ACE_HOSTENT_DATA[sizeof(struct hostent_data)];
typedef char ACE_SERVENT_DATA[sizeof(struct servent_data)];
@@ -95,15 +82,12 @@ struct servent {
typedef char ACE_SERVENT_DATA[ACE_SERVENT_DATA_SIZE];
typedef char ACE_PROTOENT_DATA[ACE_PROTOENT_DATA_SIZE];
#endif /* ACE_HAS_STRUCT_NETDB_DATA */
# if !defined(MAXHOSTNAMELEN)
# define MAXHOSTNAMELEN HOST_NAME_MAX
# endif /* MAXHOSTNAMELEN */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_NETDB_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_nl_types.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_NL_TYPES_H
#define ACE_OS_INCLUDE_OS_NL_TYPES_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_NL_TYPES_H)
# include /**/ <nl_types.h>
#endif /* !ACE_LACKS_nl_types_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_NL_TYPES_H */
-10
View File
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_pdh.h
@@ -11,36 +10,27 @@
* @author Johnny Willemsen <[email protected]>
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_PDH_H
#define ACE_OS_INCLUDE_OS_PDH_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if defined (ACE_HAS_PDH_H) && !defined (ACE_LACKS_PDH_H)
# include /**/ <pdh.h>
#endif /* ACE_HAS_PDH_H && !ACE_LACKS_PDH_H */
#if defined (ACE_HAS_PDH_H) && !defined (ACE_LACKS_PDH_H)
# define ACE_HAS_WIN32_PDH
#endif
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_PDH_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_pdhmsg.h
@@ -11,32 +10,24 @@
* @author Johnny Willemsen <[email protected]>
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_PDHMSG_H
#define ACE_OS_INCLUDE_OS_PDHMSG_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if defined (ACE_HAS_PDHMSG_H) && !defined (ACE_LACKS_PDHMSG_H)
# include /**/ <pdhmsg.h>
#endif /* ACE_HAS_PDH_H && !ACE_LACKS_PDH_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_PDHMSG_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_poll.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_POLL_H
#define ACE_OS_INCLUDE_OS_POLL_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_POLL_H)
# include /**/ <poll.h>
#endif /* !ACE_LACKS_POLL_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_POLL_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_pthread.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_PTHREAD_H
#define ACE_OS_INCLUDE_OS_PTHREAD_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if defined (ACE_HAS_PRIOCNTL)
// Need to #include thread.h before #defining THR_BOUND, etc.,
// when building without threads on SunOS 5.x.
# if defined (sun)
# include /**/ <thread.h>
# endif /* sun */
// Need to #include these before #defining USYNC_PROCESS on SunOS 5.x.
# include /**/ <sys/rtpriocntl.h>
# include /**/ <sys/tspriocntl.h>
#endif /* ACE_HAS_PRIOCNTL */
#include "ace/os_include/sys/os_types.h"
// This needs to go here *first* to avoid problems with AIX.
# if defined (ACE_HAS_PTHREADS)
# define ACE_DONT_INCLUDE_ACE_SIGNAL_H
@@ -49,7 +40,6 @@ extern "C" pthread_t pthread_self (void);
# endif /* DIGITAL_UNIX */
# endif /* ACE_HAS_PTHREADS */
#if !defined (ACE_LACKS_PTHREAD_H)
extern "C" {
# if defined (ACE_TANDEM_T1248_PTHREADS)
@@ -59,25 +49,21 @@ extern "C" pthread_t pthread_self (void);
# endif
}
#endif /* !ACE_LACKS_PTHREAD_H */
#if defined (ACE_HAS_PTHREAD_NP_H)
// FreeBSD declares _np (non-portable) pthread extensions in <pthread_np.h>
# include /**/ <pthread_np.h>
#endif
// @todo: need to reoganize to put includes at the top and the rest of the
// code at the bottom. Also, move the classes out of this file.
#if defined (ACE_HAS_PTHREADS)
# define ACE_SCHED_OTHER SCHED_OTHER
# define ACE_SCHED_FIFO SCHED_FIFO
# define ACE_SCHED_RR SCHED_RR
// Definitions for THREAD- and PROCESS-LEVEL priorities...some
// implementations define these while others don't. In order to
// further complicate matters, we don't redefine the default (*_DEF)
// values if they've already been defined, which allows individual
// programs to have their own ACE-wide "default".
// PROCESS-level values
# if (defined (_POSIX_PRIORITY_SCHEDULING) || defined (ACE_TANDEM_T1248_PTHREADS)) \
&& !defined(_UNICOS) && !defined(UNIXWARE_7_1)
@@ -100,7 +86,6 @@ extern "C" pthread_t pthread_self (void);
# define ACE_PROC_PRI_RR_MIN 0
# define ACE_PROC_PRI_OTHER_MIN 0
# endif
# if defined (_POSIX_PRIORITY_SCHEDULING) && !defined(UNIXWARE_7_1)
# define ACE_PROC_PRI_FIFO_MAX (sched_get_priority_max(SCHED_FIFO))
# define ACE_PROC_PRI_RR_MAX (sched_get_priority_max(SCHED_RR))
@@ -115,7 +100,6 @@ extern "C" pthread_t pthread_self (void);
# define ACE_PROC_PRI_RR_MAX 59
# define ACE_PROC_PRI_OTHER_MAX 59
# endif
# if !defined(ACE_PROC_PRI_FIFO_DEF)
# define ACE_PROC_PRI_FIFO_DEF (ACE_PROC_PRI_FIFO_MIN + (ACE_PROC_PRI_FIFO_MAX - ACE_PROC_PRI_FIFO_MIN)/2)
# endif
@@ -125,7 +109,6 @@ extern "C" pthread_t pthread_self (void);
# if !defined(ACE_PROC_PRI_OTHER_DEF)
# define ACE_PROC_PRI_OTHER_DEF (ACE_PROC_PRI_OTHER_MIN + (ACE_PROC_PRI_OTHER_MAX - ACE_PROC_PRI_OTHER_MIN)/2)
# endif
// THREAD-level values
# if defined(PRI_FIFO_MIN) && defined(PRI_FIFO_MAX) && defined(PRI_RR_MIN) && defined(PRI_RR_MAX) && defined(PRI_OTHER_MIN) && defined(PRI_OTHER_MAX)
# if !defined (ACE_THR_PRI_FIFO_MIN)
@@ -221,7 +204,6 @@ extern "C" pthread_t pthread_self (void);
// Typedefs to help compatibility with Windows NT and Pthreads.
typedef pthread_t ACE_hthread_t;
typedef pthread_t ACE_thread_t;
// native TSS key type
typedef pthread_key_t ACE_OS_thread_key_t;
// TSS key type to be used by application
@@ -230,7 +212,6 @@ extern "C" pthread_t pthread_self (void);
# else /* ! ACE_HAS_TSS_EMULATION */
typedef ACE_OS_thread_key_t ACE_thread_key_t;
# endif /* ! ACE_HAS_TSS_EMULATION */
# if !defined (ACE_LACKS_COND_T)
typedef pthread_mutex_t ACE_mutex_t;
typedef pthread_cond_t ACE_cond_t;
@@ -238,28 +219,22 @@ extern "C" pthread_t pthread_self (void);
typedef pthread_mutexattr_t ACE_mutexattr_t;
# endif /* ! ACE_LACKS_COND_T */
typedef pthread_mutex_t ACE_thread_mutex_t;
# if !defined (PTHREAD_CANCEL_DISABLE)
# define PTHREAD_CANCEL_DISABLE 0
# endif /* PTHREAD_CANCEL_DISABLE */
# if !defined (PTHREAD_CANCEL_ENABLE)
# define PTHREAD_CANCEL_ENABLE 0
# endif /* PTHREAD_CANCEL_ENABLE */
# if !defined (PTHREAD_CANCEL_DEFERRED)
# define PTHREAD_CANCEL_DEFERRED 0
# endif /* PTHREAD_CANCEL_DEFERRED */
# if !defined (PTHREAD_CANCEL_ASYNCHRONOUS)
# define PTHREAD_CANCEL_ASYNCHRONOUS 0
# endif /* PTHREAD_CANCEL_ASYNCHRONOUS */
# define THR_CANCEL_DISABLE PTHREAD_CANCEL_DISABLE
# define THR_CANCEL_ENABLE PTHREAD_CANCEL_ENABLE
# define THR_CANCEL_DEFERRED PTHREAD_CANCEL_DEFERRED
# define THR_CANCEL_ASYNCHRONOUS PTHREAD_CANCEL_ASYNCHRONOUS
# if !defined (PTHREAD_CREATE_JOINABLE)
# if defined (PTHREAD_CREATE_UNDETACHED)
# define PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
@@ -267,11 +242,9 @@ extern "C" pthread_t pthread_self (void);
# define PTHREAD_CREATE_JOINABLE 0
# endif /* PTHREAD_CREATE_UNDETACHED */
# endif /* PTHREAD_CREATE_JOINABLE */
# if !defined (PTHREAD_CREATE_DETACHED)
# define PTHREAD_CREATE_DETACHED 1
# endif /* PTHREAD_CREATE_DETACHED */
# if !defined (PTHREAD_PROCESS_PRIVATE) && !defined (ACE_HAS_PTHREAD_PROCESS_ENUM)
# if defined (PTHREAD_MUTEXTYPE_FAST)
# define PTHREAD_PROCESS_PRIVATE PTHREAD_MUTEXTYPE_FAST
@@ -279,7 +252,6 @@ extern "C" pthread_t pthread_self (void);
# define PTHREAD_PROCESS_PRIVATE 0
# endif /* PTHREAD_MUTEXTYPE_FAST */
# endif /* PTHREAD_PROCESS_PRIVATE */
# if !defined (PTHREAD_PROCESS_SHARED) && !defined (ACE_HAS_PTHREAD_PROCESS_ENUM)
# if defined (PTHREAD_MUTEXTYPE_FAST)
# define PTHREAD_PROCESS_SHARED PTHREAD_MUTEXTYPE_FAST
@@ -287,7 +259,6 @@ extern "C" pthread_t pthread_self (void);
# define PTHREAD_PROCESS_SHARED 1
# endif /* PTHREAD_MUTEXTYPE_FAST */
# endif /* PTHREAD_PROCESS_SHARED */
# if !defined (ACE_HAS_STHREADS)
# if !defined (USYNC_THREAD)
# define USYNC_THREAD PTHREAD_PROCESS_PRIVATE
@@ -296,7 +267,6 @@ extern "C" pthread_t pthread_self (void);
# define USYNC_PROCESS PTHREAD_PROCESS_SHARED
# endif /* ! USYNC_PROCESS */
# endif /* ACE_HAS_STHREADS */
/* MM-Graz: prevent warnings */
# if !defined (UNIXWARE_7_1)
# undef THR_BOUND
@@ -304,7 +274,6 @@ extern "C" pthread_t pthread_self (void);
# undef THR_DETACHED
# undef THR_SUSPENDED
# undef THR_DAEMON
# define THR_BOUND 0x00000001
# define THR_NEW_LWP 0x00000002
# define THR_DETACHED 0x00000040
@@ -314,23 +283,18 @@ extern "C" pthread_t pthread_self (void);
# define THR_SCHED_RR 0x00040000
# define THR_SCHED_DEFAULT 0x00080000
# endif /* UNIXWARE_7_1 */
# define THR_JOINABLE 0x00010000
# if defined (ACE_HAS_IRIX62_THREADS)
# define THR_SCOPE_SYSTEM 0x00100000
# else
# define THR_SCOPE_SYSTEM THR_BOUND
# endif /*ACE_HAS_IRIX62_THREADS*/
# define THR_SCOPE_PROCESS 0x00200000
# define THR_INHERIT_SCHED 0x00400000
# define THR_EXPLICIT_SCHED 0x00800000
# define THR_SCHED_IO 0x01000000
# if !defined (ACE_HAS_STHREADS)
# if !defined (ACE_HAS_POSIX_SEM) && !defined (ACE_USES_FIFO_SEM)
// This needs to be moved out of here.
#include /**/ "ace/ACE_export.h"
/**
@@ -345,18 +309,14 @@ class ACE_Export ACE_sema_t
public:
/// Serialize access to internal state.
ACE_mutex_t lock_;
/// Block until there are no waiters.
ACE_cond_t count_nonzero_;
/// Count of the semaphore.
u_long count_;
/// Number of threads that have called <ACE_OS::sema_wait>.
u_long waiters_;
};
# endif /* !ACE_HAS_POSIX_SEM */
# if defined (ACE_LACKS_PTHREAD_YIELD) && defined (ACE_HAS_THR_YIELD)
// If we are on Solaris we can just reuse the existing
// implementations of these synchronization types.
@@ -366,29 +326,23 @@ public:
# endif /* !ACE_LACKS_RWLOCK_T */
# include /**/ <thread.h>
# endif /* (ACE_LACKS_PTHREAD_YIELD) && defined (ACE_HAS_THR_YIELD) */
# else
# if !defined (ACE_HAS_POSIX_SEM)
typedef sema_t ACE_sema_t;
# endif /* !ACE_HAS_POSIX_SEM */
# endif /* !ACE_HAS_STHREADS */
# if defined (ACE_HAS_PTHREADS_UNIX98_EXT)
typedef pthread_rwlock_t ACE_rwlock_t;
# endif /* ACE_HAS_PTHREADS_UNIX98_EXT */
# if defined (__GLIBC__) && ((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2))
// glibc 2.2.x or better has pthread_mutex_timedlock()
# ifndef ACE_HAS_MUTEX_TIMEOUTS
# define ACE_HAS_MUTEX_TIMEOUTS
# endif /* ACE_HAS_MUTEX_TIMEOUTS */
// Use new pthread_attr_setstack if XPG6 support is enabled.
# if defined (_XOPEN_SOURCE) && (_XOPEN_SOURCE - 0) < 600
# define ACE_LACKS_PTHREAD_ATTR_SETSTACK
# endif /* (_XOPEN_SOURCE - 0) < 600 */
# if !defined (_XOPEN_SOURCE) \
|| (defined (_XOPEN_SOURCE) && (_XOPEN_SOURCE - 0) < 600)
// pthread_mutex_timedlock() prototype is not visible if _XOPEN_SOURCE
@@ -396,9 +350,7 @@ public:
extern "C" int pthread_mutex_timedlock (pthread_mutex_t *mutex,
const struct timespec * abstime);
# endif /* _XOPEN_SOURCE && _XOPEN_SOURCE < 600 */
# endif /* linux && ((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)) */
#elif defined (ACE_HAS_STHREADS)
# if !defined (ACE_THR_PRI_FIFO_MIN)
# define ACE_THR_PRI_FIFO_MIN (long) 0
@@ -419,7 +371,6 @@ public:
# define ACE_THR_PRI_OTHER_MAX (long) 127
# endif /* !ACE_THR_PRI_OTHER_MAX */
#endif /* ACE_HAS_PTHREADS */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_PTHREAD_H */
-12
View File
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_pwd.h
@@ -12,30 +11,22 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_PWD_H
#define ACE_OS_INCLUDE_OS_PWD_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h"
#if !defined (ACE_LACKS_PWD_H)
# include /**/ <pwd.h>
#endif /* !ACE_LACKS_PWD_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if !defined (ACE_WIN32)
// VAC++ doesn't correctly grok the ::getpwnam_r - the function is redefined
// in pwd.h, and that redefinition is used here
@@ -44,16 +35,13 @@ extern "C"
int, struct passwd **);
# endif /* AIX and VAC++ 4 */
#endif /* !ACE_WIN32 */
#if defined (DIGITAL_UNIX)
extern int _Pgetpwnam_r (const char *, struct passwd *,
char *, size_t, struct passwd **);
#endif /* DIGITAL_UNIX */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_PWD_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_regex.h
@@ -12,38 +11,28 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_REGEX_H
#define ACE_OS_INCLUDE_OS_REGEX_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h"
#if !defined (ACE_LACKS_REGEX_H)
# include /**/ <regex.h>
#endif /* !ACE_LACKS_REGEX_H */
#if defined (ACE_HAS_REGEX)
# include /**/ <regexpr.h>
#endif /* ACE_HAS_REGEX */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_REGEX_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_sched.h
@@ -12,30 +11,22 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_SCHED_H
#define ACE_OS_INCLUDE_OS_SCHED_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/os_time.h"
#if !defined (ACE_LACKS_SCHED_H)
# include /**/ <sched.h>
#endif /* !ACE_LACKS_SCHED_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if !defined (__cpu_set_t_defined) || !defined (ACE_HAS_CPU_SET_T)
# define ACE_CPU_SETSIZE 1024
typedef struct
@@ -43,11 +34,9 @@ extern "C"
ACE_UINT32 bit_array_[ACE_CPU_SETSIZE / (8 * sizeof (ACE_UINT32))];
} cpu_set_t;
#endif /* !ACE_HAS_CPU_SET_T || !__cpu_set_t_defined */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_SCHED_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_search.h
@@ -12,34 +11,25 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_SEARCH_H
#define ACE_OS_INCLUDE_OS_SEARCH_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h"
#if !defined (ACE_LACKS_SEARCH_H)
# include /**/ <search.h>
#endif /* !ACE_LACKS_SEARCH_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_SEARCH_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_semaphore.h
@@ -12,67 +11,52 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_SEMAPHORE_H
#define ACE_OS_INCLUDE_OS_SEMAPHORE_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/os_time.h"
#if !defined (ACE_LACKS_SEMAPHORE_H)
# include /**/ <semaphore.h>
#endif /* !ACE_LACKS_SEMAPHORE_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_HAS_POSIX_SEM)
# if !defined (SEM_FAILED) && !defined (ACE_LACKS_NAMED_POSIX_SEM)
# define SEM_FAILED ((sem_t *) -1)
# endif /* !SEM_FAILED */
typedef struct
{
/// Pointer to semaphore handle. This is allocated by ACE if we are
/// working with an unnamed POSIX semaphore or by the OS if we are
/// working with a named POSIX semaphore.
sem_t *sema_;
/// Name of the semaphore (if this is non-NULL then this is a named
/// POSIX semaphore, else its an unnamed POSIX semaphore).
char *name_;
# if defined (ACE_LACKS_NAMED_POSIX_SEM)
/// this->sema_ doesn't always get created dynamically if a platform
/// doesn't support named posix semaphores. We use this flag to
/// remember if we need to delete <sema_> or not.
bool new_sema_;
# endif /* ACE_LACKS_NAMED_POSIX_SEM */
# if !defined (ACE_HAS_POSIX_SEM_TIMEOUT) && !defined (ACE_DISABLE_POSIX_SEM_TIMEOUT_EMULATION)
/// Serialize access to internal state.
ACE_mutex_t lock_;
/// Block until there are no waiters.
ACE_cond_t count_nonzero_;
# endif /* !ACE_HAS_POSIX_SEM_TIMEOUT && !ACE_DISABLE_POSIX_SEM_TIMEOUT_EMULATION */
} ACE_sema_t;
#endif /* ACE_HAS_POSIX_SEM */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_SEMAPHORE_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_setjmp.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_SETJMP_H
#define ACE_OS_INCLUDE_OS_SETJMP_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_SETJMP_H)
# include /**/ <setjmp.h>
#endif /* !ACE_LACKS_SETJMP_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_SETJMP_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_signal.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_SIGNAL_H
#define ACE_OS_INCLUDE_OS_SIGNAL_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h"
#if !defined (ACE_LACKS_SIGNAL_H)
extern "C" {
# include /**/ <signal.h>
}
#endif /* !ACE_LACKS_SIGNAL_H */
// This must come after signal.h is #included.
#if defined (SCO)
# define SIGIO SIGPOLL
# include /**/ <sys/regset.h>
#endif /* SCO */
#if defined (ACE_HAS_SIGINFO_T)
# if !defined (ACE_LACKS_SIGINFO_H)
# if defined (__QNX__) || defined (__OpenBSD__) || defined (__INTERIX)
@@ -47,21 +38,17 @@
# endif /* __QNX__ || __OpenBSD__ */
# endif /* ACE_LACKS_SIGINFO_H */
#endif /* ACE_HAS_SIGINFO_T */
#if defined (ACE_VXWORKS) && (ACE_VXWORKS < 0x620) && !defined (__RTP__)
# include /**/ <sigLib.h>
#endif /* ACE_VXWORKS */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_LACKS_SIGSET)
typedef u_int sigset_t;
#endif /* ACE_LACKS_SIGSET */
#if defined (ACE_HAS_SIG_MACROS)
# undef sigemptyset
# undef sigfillset
@@ -69,7 +56,6 @@ extern "C"
# undef sigdelset
# undef sigismember
#endif /* ACE_HAS_SIG_MACROS */
// This must come after signal.h is #included. It's to counteract
// the sigemptyset and sigfillset #defines, which only happen
// when __OPTIMIZE__ is #defined (really!) on Linux.
@@ -77,75 +63,57 @@ extern "C"
# undef sigemptyset
# undef sigfillset
#endif /* linux && __OPTIMIZE__ */
#if !defined (ACE_HAS_SIG_ATOMIC_T)
typedef int sig_atomic_t;
#endif /* !ACE_HAS_SIG_ATOMIC_T */
# if !defined (SA_SIGINFO)
# define SA_SIGINFO 0
# endif /* SA_SIGINFO */
# if !defined (SA_RESTART)
# define SA_RESTART 0
# endif /* SA_RESTART */
#if !defined (SIGHUP)
# define SIGHUP 0
#endif /* SIGHUP */
#if !defined (SIGINT)
# define SIGINT 0
#endif /* SIGINT */
#if !defined (SIGSEGV)
# define SIGSEGV 0
#endif /* SIGSEGV */
#if !defined (SIGIO)
# define SIGIO 0
#endif /* SIGSEGV */
#if !defined (SIGUSR1)
# define SIGUSR1 0
#endif /* SIGUSR1 */
#if !defined (SIGUSR2)
# define SIGUSR2 0
#endif /* SIGUSR2 */
#if !defined (SIGCHLD)
# define SIGCHLD 0
#endif /* SIGCHLD */
#if !defined (SIGCLD)
# define SIGCLD SIGCHLD
#endif /* SIGCLD */
#if !defined (SIGQUIT)
# define SIGQUIT 0
#endif /* SIGQUIT */
#if !defined (SIGPIPE)
# define SIGPIPE 0
#endif /* SIGPIPE */
#if !defined (SIGALRM)
# define SIGALRM 0
#endif /* SIGALRM */
#if !defined (SIG_DFL)
# define SIG_DFL ((__sighandler_t) 0)
#endif /* SIG_DFL */
#if !defined (SIG_IGN)
# define SIG_IGN ((__sighandler_t) 1) /* ignore signal */
#endif /* SIG_IGN */
#if !defined (SIG_ERR)
# define SIG_ERR ((__sighandler_t) -1) /* error return from signal */
#endif /* SIG_ERR */
// These are used by the <ACE_IPC_SAP::enable> and
// <ACE_IPC_SAP::disable> methods. They must be unique and cannot
// conflict with the value of <ACE_NONBLOCK>. We make the numbers
@@ -154,7 +122,6 @@ extern "C"
# define ACE_SIGIO -1
# define ACE_SIGURG -2
# define ACE_CLOEXEC -3
#if defined (ACE_VXWORKS)
# define ACE_NSIG (_NSIGS + 1)
#elif defined (__Lynx__) || defined (ACE_HAS_RTEMS)
@@ -164,7 +131,6 @@ extern "C"
// highest-numbered signal.
# define ACE_NSIG NSIG
#endif /* __Lynx__ */
#if defined (ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES)
// Prototypes for both signal() and struct sigaction are consistent..
typedef void (*ACE_SignalHandler)(int);
@@ -196,7 +162,6 @@ extern "C"
# endif /* SIG_PF */
typedef void (*ACE_SignalHandlerV)(...);
#endif /* ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES */
#if defined (ACE_LACKS_SIGACTION)
struct sigaction
{
@@ -205,7 +170,6 @@ extern "C"
sigset_t sa_mask;
};
#endif /* ACE_LACKS_SIGACTION */
// Defining POSIX4 real-time signal range.
#if defined(ACE_HAS_POSIX_REALTIME_SIGNALS)
# define ACE_SIGRTMIN SIGRTMIN
@@ -218,7 +182,6 @@ extern "C"
# define ACE_SIGRTMAX 0
# endif /* ACE_SIGRTMAX */
#endif /* ACE_HAS_POSIX_REALTIME_SIGNALS */
#if defined (DIGITAL_UNIX)
// sigwait is yet another macro on Digital UNIX 4.0, just causing
// trouble when introducing member functions with the same name.
@@ -238,17 +201,13 @@ extern "C"
int sigwait (sigset_t *set);
# endif /* ACE_HAS_RTEMS */
#endif /* ! DIGITAL_UNIX && ! ACE_HAS_SIGWAIT */
#if !defined (ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE)
int pthread_sigmask(int, const sigset_t *, sigset_t *);
#endif /*!ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include "ace/os_include/os_ucontext.h"
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_SIGNAL_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_spawn.h
@@ -12,36 +11,27 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_SPAWN_H
#define ACE_OS_INCLUDE_OS_SPAWN_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/os_signal.h"
#include "ace/os_include/sys/os_types.h"
#include "ace/os_include/os_sched.h"
#if !defined (ACE_LACKS_SPAWN_H)
# include /**/ <spawn.h>
#endif /* !ACE_LACKS_SPAWN_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_SPAWN_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_stdarg.h
@@ -12,22 +11,16 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_STDARG_H
#define ACE_OS_INCLUDE_OS_STDARG_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_STDARG_H)
# include /**/ <stdarg.h>
#endif /* !ACE_LACKS_STDARG_H */
#if !defined (va_copy)
#if defined (__va_copy)
#define va_copy(d, s) __va_copy((d),(s))
@@ -35,17 +28,14 @@
#define va_copy(d, s) memcpy((void *)&(d),(void *)&(s),sizeof(va_list))
#endif
#endif
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_STDARG_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_stdbool.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_STDBOOL_H
#define ACE_OS_INCLUDE_OS_STDBOOL_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_STDBOOL_H)
# include /**/ <stdbool.h>
#endif /* !ACE_LACKS_STDBOOL_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_STDBOOL_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_stddef.h
@@ -12,30 +11,22 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
// From http://www.UNIX-systems.org/single_unix_specification/
#ifndef ACE_OS_INCLUDE_OS_STDDEF_H
#define ACE_OS_INCLUDE_OS_STDDEF_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_STDDEF_H)
# include /**/ <stddef.h>
#endif /* !ACE_LACKS_STDDEF_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
//FUZZ: disable check_for_NULL
// NULL pointer constant
#if defined (ACE_LACKS_NULL)
@@ -47,7 +38,6 @@ extern "C"
# endif
#endif /* ACE_LACKS_NULL */
//FUZZ: enable check_for_NULL
/*
Integer constant expression of type size_t, the value of which is the offset
in bytes to the structure member (member-designator), from the beginning of
@@ -57,7 +47,6 @@ extern "C"
# undef offsetof
# define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#endif /* ACE_LACKS_OFFSETOF */
// Signed integer type of the result of subtracting two pointers.
#if defined (ACE_LACKS_PTRDIFF_T)
# if !defined (ACE_PTRDIFF_T_TYPE)
@@ -65,7 +54,6 @@ extern "C"
# endif /* !ACE_PTRDIFF_T_TYPE */
typedef ACE_PTRDIFF_T_TYPE ptrdiff_t;
#endif /* ACE_LACKS_PTRDIFF_T */
/*
Integer type whose range of values can represent distinct wide-character
codes for all members of the largest character set specified among the
@@ -80,7 +68,6 @@ extern "C"
# endif /* !ACE_WCHAR_T_TYPE */
typedef ACE_WCHAR_T_TYPE wchar_t;
#endif /* ACE_LACKS_WCHAR_T */
// Unsigned integer type of the result of the sizeof operator.
#if defined (ACE_LACKS_SIZE_T)
# if !defined (ACE_SIZE_T_TYPE)
@@ -88,11 +75,9 @@ extern "C"
# endif /* !ACE_SIZE_T_TYPE */
typedef ACE_SIZE_T_TYPE size_t;
#endif /* ACE_LACKS_SIZE_T */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_STDDEF_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_stdint.h
@@ -12,28 +11,21 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_STDINT_H
#define ACE_OS_INCLUDE_OS_STDINT_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_STDINT_H)
# include /**/ <stdint.h>
#endif /* !ACE_LACKS_STDINT_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
// BSD style types
#if defined (ACE_LACKS_SYS_TYPES_H) \
|| (defined (__GLIBC__) && !defined (_BSD_SOURCE))
@@ -41,74 +33,61 @@ extern "C"
typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;
typedef unsigned char uchar_t;
typedef unsigned short ushort_t;
typedef unsigned int uint_t;
typedef unsigned long ulong_t;
#endif /* ACE_LACKS_SYS_TYPES_H */
/* Define required types if missing */
#if defined (ACE_LACKS_INT8_T)
# if !defined (ACE_INT8_T_TYPE)
# define ACE_INT8_T_TYPE char
# endif /* !ACE_INT8_T_TYPE */
typedef ACE_INT8_T_TYPE int8_t;
#endif /* ACE_LACKS_INT8_T */
#if defined (ACE_LACKS_UINT8_T)
# if !defined (ACE_UINT8_T_TYPE)
# define ACE_UINT8_T_TYPE unsigned char
# endif /* !ACE_UINT8_T_TYPE */
typedef ACE_UINT8_T_TYPE int8_t;
#endif /* ACE_LACKS_UINT8_T */
#if defined (ACE_LACKS_INT16_T)
# if !defined (ACE_INT16_T_TYPE)
# define ACE_INT16_T_TYPE short
# endif /* !ACE_INT16_T_TYPE */
typedef ACE_INT16_T_TYPE int16_t;
#endif /* ACE_LACKS_INT16_T */
#if defined (ACE_LACKS_UINT16_T)
# if !defined (ACE_UINT16_T_TYPE)
# define ACE_UINT16_T_TYPE unsigned short
# endif /* !ACE_UINT16_T_TYPE */
typedef ACE_UINT16_T_TYPE int16_t;
#endif /* ACE_LACKS_UINT16_T */
#if defined (ACE_LACKS_INT32_T)
# if !defined (ACE_INT32_T_TYPE)
# define ACE_INT32_T_TYPE long
# endif /* !ACE_INT32_T_TYPE */
typedef ACE_INT32_T_TYPE int32_t;
#endif /* ACE_LACKS_INT32_T */
#if defined (ACE_LACKS_UINT32_T)
# if !defined (ACE_UINT32_T_TYPE)
# define ACE_UINT32_T_TYPE unsigned long
# endif /* !ACE_UINT32_T_TYPE */
typedef ACE_UINT32_T_TYPE int32_t;
#endif /* ACE_LACKS_UIN32_T */
// @todo pull in ACE class here
// 64 bit will be a problem, but stub it out for now
/*
If an implementation provides integer types with width 64 that meet
these requirements, then the following types are required: int64_t uint64_t
In particular, this will be the case if any of the following are true:
The implementation supports the _POSIX_V6_ILP32_OFFBIG programming
environment and the application is being built in the
_POSIX_V6_ILP32_OFFBIG programming environment (see the Shell and
Utilities volume of IEEE Std 1003.1-2001, c99, Programming Environments).
The implementation supports the _POSIX_V6_LP64_OFF64 programming
environment and the application is being built in the
_POSIX_V6_LP64_OFF64 programming environment.
The implementation supports the _POSIX_V6_LPBIG_OFFBIG programming
environment and the application is being built in the
_POSIX_V6_LPBIG_OFFBIG programming environment.
@@ -119,24 +98,19 @@ _POSIX_V6_LPBIG_OFFBIG programming environment.
# endif /* !ACE_INT64_T_TYPE */
typedef ACE_INT64_T_TYPE int64_t;
#endif /* ACE_LACKS_INT64_T */
#if defined (ACE_LACKS_UINT64_T)
# if !defined (ACE_UINT64_T_TYPE)
# define ACE_UINT64_T_TYPE unsigned long
# endif /* !ACE_UINT64_T_TYPE */
typedef ACE_UINT64_T_TYPE int64_t;
#endif /* ACE_LACKS_UIN64_T */
// @todo move the ACE_INT## typedefs here so that ACE_INT64 will
// always be available.
// @todo perhaps add macros
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_STDINT_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_stdio.h
@@ -12,26 +11,19 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_STDIO_H
#define ACE_OS_INCLUDE_OS_STDIO_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
// NOTE: stdarg.h must be #included before stdio.h on LynxOS.
#include "ace/os_include/os_stdarg.h"
#include "ace/os_include/os_stddef.h"
#if !defined (ACE_LACKS_STDIO_H)
# include /**/ <stdio.h>
#endif /* !ACE_LACKS_STDIO_H */
#if defined (ACE_VXWORKS)
// for remove(), rename()
# include /**/ <ioLib.h>
@@ -41,13 +33,11 @@
# define L_cuserid _PARM_L_cuserid
# endif
#endif /* ACE_VXWORKS */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
# if defined (INTEGRITY)
# define ACE_MAX_USERID 32
# elif defined (ACE_WIN32)
@@ -59,13 +49,11 @@ extern "C"
# define ACE_MAX_USERID 9
# endif
# endif /* INTEGRITY */
#if defined (BUFSIZ)
# define ACE_STREAMBUF_SIZE BUFSIZ
#else
# define ACE_STREAMBUF_SIZE 1024
#endif /* BUFSIZ */
#if defined (ACE_WIN32)
typedef OVERLAPPED ACE_OVERLAPPED;
#else
@@ -78,11 +66,9 @@ extern "C"
ACE_HANDLE hEvent;
};
#endif /* ACE_WIN32 */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_STDIO_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_stdlib.h
@@ -12,39 +11,29 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_STDLIB_H
#define ACE_OS_INCLUDE_OS_STDLIB_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/os_stddef.h"
#include "ace/os_include/sys/os_wait.h"
#if defined (ACE_HAS_ALLOCA_H)
# include /**/ <alloca.h>
#endif /* ACE_HAS_ALLOCA_H */
#if !defined (ACE_LACKS_STDLIB_H)
# include /**/ <stdlib.h>
#endif /* !ACE_LACKS_STDLIB_H */
#if defined (ACE_VXWORKS) && !defined (__RTP__)
# include /**/ <envLib.h>
#endif /* ACE_VXWORKS */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
typedef u_int ACE_RANDR_TYPE;
#if defined (ACE_HAS_BROKEN_RANDR)
// The SunOS 5.4.X version of rand_r is inconsistent with the header
@@ -52,27 +41,21 @@ extern "C"
int rand_r (ACE_RANDR_TYPE seed);
#else
#endif /* ACE_HAS_BROKEN_RANDR */
#if defined (DIGITAL_UNIX)
extern int _Prand_r (unsigned int *seedptr);
#endif /* DIGITAL_UNIX */
#if defined (ACE_LACKS_PUTENV_PROTOTYPE)
int putenv (char *);
#endif /* ACE_LACKS_PUTENV_PROTOTYPE */
#if defined (ACE_LACKS_MKTEMP_PROTOTYPE)
char *mktemp (char *);
#endif /* ACE_LACKS_MKTEMP_PROTOTYPE */
#if defined (ACE_LACKS_MKSTEMP_PROTOTYPE)
int mkstemp(char *);
#endif /* ACE_LACKS_MKSTEMP_PROTOTYPE */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_STDLIB_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_string.h
@@ -12,20 +11,14 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_STRING_H
#define ACE_OS_INCLUDE_OS_STRING_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/os_stddef.h"
// Matthew Stevens 7-10-95 Fix GNU GCC 2.7 for memchr() problem.
#if defined (ACE_HAS_GNU_CSTRING_H)
// Define this file to keep /usr/include/memory.h from being included.
@@ -38,13 +31,11 @@
# include /**/ <string.h>
# endif /* !ACE_LACKS_STRING_H */
#endif /* ACE_HAS_GNU_CSTRING_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
// this looks fishy... dhinton
#if !defined (ACE_HAS_STRERROR)
# if defined (ACE_HAS_SYS_ERRLIST)
@@ -54,24 +45,19 @@ extern "C"
# define strerror(err) "strerror is unsupported"
# endif /* ACE_HAS_SYS_ERRLIST */
#endif /* !ACE_HAS_STRERROR */
#if defined (ACE_LACKS_STRTOK_R_PROTOTYPE) && !defined (_POSIX_SOURCE)
char *strtok_r (char *s, const char *delim, char **save_ptr);
#endif /* ACE_LACKS_STRTOK_R_PROTOTYPE */
#if defined (ACE_LACKS_STRNLEN_PROTOTYPE)
size_t strnlen(const char *s, size_t maxlen);
#endif /* ACE_LACKS_STRNLEN_PROTOTYPE */
#if defined (__BORLANDC__) && (__BORLANDC__ < 0x560)
# define _stricmp stricmp
# define _strnicmp strnicmp
#endif /* __BORLANDC__ */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_STRING_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_strings.h
@@ -12,42 +11,31 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_STRINGS_H
#define ACE_OS_INCLUDE_OS_STRINGS_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/os_stddef.h"
#if !defined (ACE_LACKS_STRINGS_H)
# include /**/ <strings.h>
#endif /* !ACE_LACKS_STRINGS_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_LACKS_STRCASECMP_PROTOTYPE)
int strcasecmp(const char *, const char *);
#endif /* ACE_LACKS_STRCASECMP_PROTOTYPE */
#if defined (ACE_LACKS_STRNCASECMP_PROTOTYPE)
int strncasecmp(const char *, const char *, size_t);
#endif /* ACE_LACKS_STRNCASECMP_PROTOTYPE */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_STRINGS_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_stropts.h
@@ -12,20 +11,14 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_STROPTS_H
#define ACE_OS_INCLUDE_OS_STROPTS_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/os_unistd.h"
#if defined (ACE_HAS_TIMOD_H)
# if defined (ACE_HAS_STL_QUEUE_CONFLICT)
# define queue _Queue_
@@ -37,19 +30,15 @@
#elif defined (ACE_HAS_OSF_TIMOD_H)
# include /**/ <tli/timod.h>
#endif /* ACE_HAS_TIMOD_H */
#if !defined (ACE_LACKS_SYS_IOCTL_H)
# include /**/ <sys/ioctl.h>
#endif /* !ACE_LACKS_IOCTL_H */
#if defined (ACE_HAS_SYS_FILIO_H)
# include /**/ <sys/filio.h>
#endif /* ACE_HAS_SYS_FILIO_H */
#if defined (ACE_HAS_SYS_SOCKIO_H)
# include /**/ <sys/sockio.h>
#endif /* ACE_HAS_SOCKIO_H */
// This is sorta counter intuitive, but this is how it was done in OS.h
// @todo: fix this... dhinton
#if defined (ACE_HAS_STREAMS)
@@ -59,11 +48,9 @@
# endif /* !_XOPEN_EXTENDED_SOURCE */
# endif /* AIX */
#endif /* ACE_HAS_STREAMS */
#if !defined (ACE_LACKS_STROPTS_H)
# include /**/ <stropts.h>
#endif /* !ACE_LACKS_STROPTS_H */
// This is sorta counter intuitive, but this is how it was done in OS.h
// @todo: fix this... dhinton
#if defined (ACE_HAS_STREAMS)
@@ -71,30 +58,24 @@
# undef _XOPEN_EXTENDED_SOURCE
# endif /* AIX */
#endif /* ACE_HAS_STREAMS */
#if defined (ACE_VXWORKS)
// for ioctl()
# include /**/ <ioLib.h>
#endif /* ACE_VXWORKS */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_LACKS_STRRECVFD)
struct strrecvfd {};
#endif /* ACE_LACKS_STRRECVFD */
# if !defined (SIOCGIFBRDADDR)
# define SIOCGIFBRDADDR 0
# endif /* SIOCGIFBRDADDR */
# if !defined (SIOCGIFADDR)
# define SIOCGIFADDR 0
# endif /* SIOCGIFADDR */
# if !defined (ACE_HAS_STRBUF_T)
struct strbuf
{
@@ -106,16 +87,13 @@ struct strbuf
void *buf;
};
# endif /* ACE_HAS_STRBUF_T */
// These prototypes are chronically lacking from many versions of UNIX.
#if !defined (ACE_WIN32) && !defined (ACE_HAS_ISASTREAM_PROTOTYPE)
int isastream (int);
#endif /* !ACE_WIN32 && ACE_HAS_ISASTREAM_PROTOTYPE */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_STROPTS_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_syslog.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_SYSLOG_H
#define ACE_OS_INCLUDE_OS_SYSLOG_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_SYSLOG_H)
# include /**/ <syslog.h>
#endif /* !ACE_LACKS_SYSLOG_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_SYSLOG_H */
-9
View File
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_tar.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_TAR_H
#define ACE_OS_INCLUDE_OS_TAR_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_TAR_H)
# include /**/ <tar.h>
#endif /* !ACE_LACKS_TAR_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_TAR_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_termios.h
@@ -12,36 +11,27 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_TERMIOS_H
#define ACE_OS_INCLUDE_OS_TERMIOS_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_TERMIOS_H)
# include /**/ <termios.h>
#endif /* !ACE_LACKS_TERMIOS_H */
#if defined (HPUX)
# include /**/ <sys/modem.h>
#endif /* HPUX */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_TERMIOS_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_tgmath.h
@@ -12,35 +11,26 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_TGMATH_H
#define ACE_OS_INCLUDE_OS_TGMATH_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/os_math.h"
#include "ace/os_include/os_complex.h"
#if !defined (ACE_LACKS_TGMATH_H)
# include /**/ <tgmath.h>
#endif /* !ACE_LACKS_TGMATH_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_TGMATH_H */
-19
View File
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_time.h
@@ -12,21 +11,15 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_TIME_H
#define ACE_OS_INCLUDE_OS_TIME_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
// @todo should we include anything from signal.h?
#include "ace/os_include/sys/os_types.h"
// To get the proper select() signature, this is required for HP-UX, and
// maybe other platforms that offer both int and fdset forms of select().
// For HP-UX, sys/time.h must be included before time.h, or
@@ -35,11 +28,9 @@
#if !defined (ACE_LACKS_SYS_TIME_H)
# include /**/ <sys/time.h>
#endif /* !ACE_LACKS_SYS_TIME_H */
#if !defined (ACE_LACKS_TIME_H)
# include /**/ <time.h>
#endif /* !ACE_LACKS_TIME_H */
# if defined (ACE_USES_STD_NAMESPACE_FOR_STDC_LIB) && \
(ACE_USES_STD_NAMESPACE_FOR_STDC_LIB != 0)
using std::tm;
@@ -52,7 +43,6 @@ using std::timezone;
# endif
using std::difftime;
# endif /* ACE_USES_STD_NAMESPACE_FOR_STDC_LIB */
# if !defined (ACE_HAS_POSIX_TIME)
// Definition per POSIX.
typedef struct timespec
@@ -70,21 +60,17 @@ typedef struct timespec
# include /**/ <sys/timers.h>
# endif
# endif /* !ACE_HAS_POSIX_TIME */
# if defined(ACE_LACKS_TIMESPEC_T)
typedef struct timespec timespec_t;
# endif /* ACE_LACKS_TIMESPEC_T */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_HAS_BROKEN_CTIME)
# undef ctime
#endif /* ACE_HAS_BROKEN_CTIME */
// There are a lot of threads-related macro definitions in the config files.
// They came in at different times and from different places and platform
// requirements as threads evolved. They are probably not all needed - some
@@ -97,28 +83,23 @@ extern "C"
# define ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R
# endif
#endif /* ACE_HAS_PTHREADS */
#if defined (ACE_LACKS_STRPTIME_PROTOTYPE) && !defined (_XOPEN_SOURCE)
extern char *strptime (const char *s, const char *fmt, struct tm *tp);
#endif /* ACE_LACKS_STRPTIME_PROTOTYPE */
#if defined (ACE_LACKS_CONST_TIMESPEC_PTR)
typedef struct timespec * ACE_TIMESPEC_PTR;
#else
typedef const struct timespec * ACE_TIMESPEC_PTR;
#endif /* ACE_LACKS_CONST_TIMESPEC_PTR */
#if defined (DIGITAL_UNIX)
extern char *_Pctime_r (const time_t *, char *);
extern struct tm *_Plocaltime_r (const time_t *, struct tm *);
extern struct tm *_Pgmtime_r (const time_t *, struct tm *);
extern char *_Pasctime_r (const struct tm *, char *);
#endif /* DIGITAL_UNIX */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_TIME_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_trace.h
@@ -12,34 +11,25 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_TRACE_H
#define ACE_OS_INCLUDE_OS_TRACE_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h"
#if !defined (ACE_LACKS_TRACE_H)
# include /**/ <trace.h>
#endif /* !ACE_LACKS_TRACE_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_TRACE_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_ucontext.h
@@ -12,38 +11,28 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_UCONTEXT_H
#define ACE_OS_INCLUDE_OS_UCONTEXT_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/os_signal.h"
#if !defined (ACE_LACKS_UCONTEXT_H)
# include /**/ <ucontext.h>
#endif /* !ACE_LACKS_ucontext_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
# if !defined (ACE_HAS_UCONTEXT_T)
typedef int ucontext_t;
# endif /* ACE_HAS_UCONTEXT_T */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_UCONTEXT_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_ulimit.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_ULIMIT_H
#define ACE_OS_INCLUDE_OS_ULIMIT_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_ULIMIT_H)
# include /**/ <ulimit.h>
#endif /* !ACE_LACKS_ULIMIT_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_ULIMIT_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_unistd.h
@@ -12,38 +11,28 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_UNISTD_H
#define ACE_OS_INCLUDE_OS_UNISTD_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h"
#include "ace/os_include/os_inttypes.h"
#if defined (__BORLANDC__)
# include "ace/os_include/os_fcntl.h"
#endif /* __BORLANDC */
#if defined (ACE_WIN32) && !defined (ACE_HAS_WINCE)
# include /**/ <process.h>
# include /**/ <io.h>
#endif /* ACE_WIN32 && !ACE_HAS_WINCE */
#if defined (ACE_HAS_SYS_SYSTEMINFO_H)
# include /**/ <sys/systeminfo.h>
#endif /* ACE_HAS_SYS_SYSTEMINFO_H */
#if !defined (ACE_LACKS_UNISTD_H)
# include /**/ <unistd.h>
#endif /* !ACE_LACKS_UNISTD_H */
#if defined (ACE_VXWORKS)
# if !defined (__RTP__)
// for unlink(), close(), read(), write(), lseek(), chdir(), getcwd(),
@@ -53,13 +42,11 @@
// for gethostname()
# include /**/ <hostLib.h>
#endif /* ACE_VXWORKS */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_WIN32)
// The following are #defines and #includes that are specific to
// WIN32.
@@ -90,30 +77,24 @@ extern "C"
# define ACE_STDERR 2
# endif
#endif /* ACE_WIN32 */
#if (!defined (_BSD_SOURCE) && \
!defined (_XOPEN_SOURCE) && !defined (_XOPEN_SOURCE_EXTENDED)) \
|| (defined (_XOPEN_SOURCE) && defined (__GNUC__))
# if defined (ACE_LACKS_SETREUID_PROTOTYPE)
extern int setreuid (uid_t ruid, uid_t euid);
# endif /* ACE_LACKS_SETREUID_PROTOTYPE */
# if defined (ACE_LACKS_SETREGID_PROTOTYPE)
extern int setregid (gid_t rgid, gid_t egid);
# endif /* ACE_LACKS_SETREGID_PROTOTYPE */
#endif /* !_BSD_SOURCE && !_XOPEN_SOURCE && !_XOPEN_SOURCE_EXTENDED
|| _XOPEN_SOURCE && __GNUC__ */
// for use by access()
# if !defined (R_OK)
# define R_OK 04 /* Test for Read permission. */
# endif /* R_OK */
# if !defined (W_OK)
# define W_OK 02 /* Test for Write permission. */
# endif /* W_OK */
# if !defined (X_OK)
# if defined (ACE_WIN32)
/* Windows has no test for X_OK - use R_OK instead */
@@ -122,15 +103,12 @@ extern "C"
# define X_OK 01 /* Test for eXecute permission. */
# endif /* ACE_WIN32 */
# endif /* X_OK */
# if !defined (F_OK)
# define F_OK 0 /* Test for existence of File. */
# endif /* F_OK */
#if defined (ACE_LACKS_UALARM_PROTOTYPE)
u_int ualarm (u_int usecs, u_int interval);
#endif /* ACE_LACKS_UALARM_PROTOTYPE */
#if defined (ACE_LACKS_PREAD_PROTOTYPE) && (_XOPEN_SOURCE - 0) < 500
// _XOPEN_SOURCE == 500 Single Unix conformance
// It seems that _XOPEN_SOURCE == 500 means that the prototypes are
@@ -139,19 +117,16 @@ extern "C"
void *buf,
size_t nbytes,
ACE_OFF_T offset);
ssize_t pwrite (int fd,
const void *buf,
size_t n,
ACE_OFF_T offset);
#endif /* ACE_LACKS_PREAD_PROTOTYPE && (_XOPEN_SOURCE - 0) < 500 */
#if defined (ACE_LACKS_GETPGID_PROTOTYPE) && \
!defined (_XOPEN_SOURCE) && !defined (_XOPEN_SOURCE_EXTENDED)
pid_t getpgid (pid_t pid);
#endif /* ACE_LACKS_GETPGID_PROTOTYPE &&
!_XOPEN_SOURCE && !_XOPEN_SOURCE_EXTENDED */
#if !defined (_LARGEFILE64_SOURCE)
# if defined (ACE_LACKS_LSEEK64_PROTOTYPE) && \
defined (ACE_LACKS_LLSEEK_PROTOTYPE)
@@ -162,7 +137,6 @@ extern "C"
ACE_LOFF_T llseek (int fd, ACE_LOFF_T offset, int whence);
# endif
#endif /* _LARGEFILE64_SOURCE */
#if defined (__BORLANDC__)
# if (__BORLANDC__ <= 0x540)
# define _getcwd getcwd
@@ -172,33 +146,25 @@ extern "C"
# endif
# define _isatty isatty
#endif /* __BORLANDC__ */
# if defined (ACE_LACKS_TIMEDWAIT_PROTOTYPES)
ssize_t read_timedwait (ACE_HANDLE handle,
char *buf,
size_t n,
struct timespec *timeout);
ssize_t write_timedwait (ACE_HANDLE handle,
const void *buf,
size_t n,
struct timespec *timeout);
# endif /* ACE_LACKS_TIMEDWAIT_PROTOTYPES */
#if defined (ACE_LACKS_SWAB_PROTOTYPE)
void swab(const void *, void *, ssize_t);
#endif /* ACE_LACKS_SWAB_PROTOTYPE */
#if defined (ACE_LACKS_GETOPT_PROTOTYPE)
int getopt(int, char * const [], const char *);
#endif /* ACE_LACKS_GETOPT_PROTOTYPE */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_UNISTD_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_utime.h
@@ -12,34 +11,25 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_UTIME_H
#define ACE_OS_INCLUDE_OS_UTIME_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h"
#if !defined (ACE_LACKS_UTIME_H)
# include /**/ <utime.h>
#endif /* !ACE_LACKS_UTIME_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_UTIME_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_utmpx.h
@@ -12,34 +11,25 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_UTMPX_H
#define ACE_OS_INCLUDE_OS_UTMPX_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_time.h"
#if !defined (ACE_LACKS_UTMPX_H)
# include /**/ <utmpx.h>
#endif /* !ACE_LACKS_UTMPX_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_UTMPX_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_wchar.h
@@ -12,39 +11,30 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_WCHAR_H
#define ACE_OS_INCLUDE_OS_WCHAR_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
// ctype.h, string.h, stdarg.h, stdio.h, stdlib.h, time.h
#include "ace/os_include/os_stdio.h"
#include "ace/os_include/os_stdlib.h"
#include "ace/os_include/os_time.h"
#include "ace/os_include/os_string.h"
#include "ace/os_include/os_ctype.h"
#if !defined (ACE_LACKS_WCHAR_H)
# include /**/ <wchar.h>
#endif /* !ACE_LACKS_WCHAR_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_WCHAR_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_wctype.h
@@ -12,35 +11,26 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_WCTYPE_H
#define ACE_OS_INCLUDE_OS_WCTYPE_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
// ctype.h, string.h, stdarg.h, stdio.h, stdlib.h, time.h
#include "ace/os_include/os_wchar.h"
#if !defined (ACE_LACKS_WCTYPE_H)
# include /**/ <wctype.h>
#endif /* !ACE_LACKS_WCTYPE_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_WCTYPE_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_wordexp.h
@@ -12,34 +11,25 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_WORDEXP_H
#define ACE_OS_INCLUDE_OS_WORDEXP_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/os_stddef.h" // size_t
#if !defined (ACE_LACKS_WORDEXP_H)
# include /**/ <wordexp.h>
#endif /* !ACE_LACKS_WORDEXP_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_WORDEXP_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_ipc.h
@@ -12,64 +11,48 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_IPC_H
#define ACE_OS_INCLUDE_SYS_OS_IPC_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h"
#if !defined (ACE_LACKS_SYS_IPC_H)
# include /**/ <sys/ipc.h>
#endif /* !ACE_LACKS_SYS_IPC_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_WIN32)
# define ACE_INVALID_SEM_KEY 0
#else /* !ACE_WIN32 */
# define ACE_INVALID_SEM_KEY -1
#endif /* ACE_WIN32 */
#if !defined (IPC_PRIVATE)
# define IPC_PRIVATE ACE_INVALID_SEM_KEY
#endif /* IPC_PRIVATE */
#if !defined (IPC_STAT)
# define IPC_STAT 0
#endif /* IPC_STAT */
#if !defined (IPC_CREAT)
# define IPC_CREAT 0
#endif /* IPC_CREAT */
#if !defined (IPC_NOWAIT)
# define IPC_NOWAIT 0
#endif /* IPC_NOWAIT */
#if !defined (IPC_RMID)
# define IPC_RMID 0
#endif /* IPC_RMID */
#if !defined (IPC_EXCL)
# define IPC_EXCL 0
#endif /* IPC_EXCL */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_IPC_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_loadavg.h
@@ -11,32 +10,24 @@
* @author Johnny Willemsen <[email protected]>
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_LOADAVG_H
#define ACE_OS_INCLUDE_SYS_OS_LOADAVG_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if defined (ACE_HAS_SYS_LOADAVG_H)
# include /**/ <sys/loadavg.h>
#endif /* ACE_HAS_SYS_LOADAVG_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_LOADAVG_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_mman.h
@@ -12,24 +11,17 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_MMAN_H
#define ACE_OS_INCLUDE_SYS_OS_MMAN_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h"
#if defined (ACE_LACKS_MMAP)
# define ACE_LACKS_SYS_MMAN_H
#endif /* ACE_LACKS_MMAP */
#if !defined (ACE_LACKS_SYS_MMAN_H)
// Fixes a problem with HP/UX.
# if defined (ACE_HAS_BROKEN_MMAP_H)
@@ -40,13 +32,11 @@
}
# endif /* ACE_HAS_BROKEN_MMAP_H */
#endif /* ACE_LACKS_SYS_MMAN_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_LACKS_SYS_MMAN_H) && !defined (ACE_WIN32)
# define PROT_READ 0
# define PROT_WRITE 0
@@ -75,19 +65,15 @@ PAGE_GUARD
PAGE_NOACCESS
PAGE_NOCACHE */
#endif /* !ACE_LACKS_SYS_MMAN_H && !ACE_WIN32*/
# if !defined (ACE_MAP_PRIVATE)
# define ACE_MAP_PRIVATE MAP_PRIVATE
# endif /* ! ACE_MAP_PRIVATE */
# if !defined (ACE_MAP_SHARED)
# define ACE_MAP_SHARED MAP_SHARED
# endif /* ! ACE_MAP_SHARED */
# if !defined (ACE_MAP_FIXED)
# define ACE_MAP_FIXED MAP_FIXED
# endif /* ! ACE_MAP_FIXED */
# if !defined (MAP_FAILED) || defined (ACE_HAS_BROKEN_MAP_FAILED)
# undef MAP_FAILED
# define MAP_FAILED ((void *) -1)
@@ -95,29 +81,23 @@ PAGE_NOCACHE */
# undef MAP_FAILED
# define MAP_FAILED ((void *) -1L)
# endif /* !MAP_FAILED || ACE_HAS_BROKEN_MAP_FAILED */
#if !defined (PROT_RDWR)
# define PROT_RDWR (PROT_READ|PROT_WRITE)
#endif /* PROT_RDWR */
# if defined (ACE_WIN32)
// Needed to map calls to NT transparently.
# define MS_ASYNC 0
# define MS_INVALIDATE 0
# endif /* ACE_WIN32 */
# if !defined (MS_SYNC)
# define MS_SYNC 0x0
# endif /* !MS_SYNC */
#if !defined (ACE_LACKS_MADVISE) && defined (ACE_LACKS_MADVISE_PROTOTYPE)
extern "C" int madvise(caddr_t, size_t, int);
#endif /* !ACE_LACKS_MADVISE && ACE_LACKS_MADVISE_PROTOTYPE */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_MMAN_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_msg.h
@@ -12,45 +11,34 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_MSG_H
#define ACE_OS_INCLUDE_SYS_OS_MSG_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_ipc.h"
#if !defined (ACE_LACKS_SYS_MSG_H)
# include /**/ <sys/msg.h>
#endif /* !ACE_LACKS_SYS_MSG_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
// Declare opaque type. Needed for ACE_OS wrappers on systems
// without SysV IPC.
struct msqid_ds;
#if defined (ACE_LACKS_SYSV_MSQ_PROTOS)
int msgget (key_t, int);
int msgrcv (int, void *, size_t, long, int);
int msgsnd (int, const void *, size_t, int);
int msgctl (int, int, struct msqid_ds *);
#endif /* ACE_LACKS_SYSV_MSQ_PROTOS */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_MSG_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_pstat.h
@@ -11,33 +10,25 @@
* @author Johnny Willemsen <[email protected]>
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_PSTAT_H
#define ACE_OS_INCLUDE_SYS_OS_PSTAT_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if defined (ACE_HAS_SYS_PSTAT_H)
# include /**/ <sys/param.h>
# include /**/ <sys/pstat.h>
#endif /* ACE_HAS_SYS_PSTAT_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_PSTAT_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_resource.h
@@ -12,44 +11,33 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_RESOURCE_H
#define ACE_OS_INCLUDE_SYS_OS_RESOURCE_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_time.h"
#include "ace/os_include/sys/os_types.h"
#if !defined (ACE_LACKS_SYS_RESOURCE_H)
# include /**/ <sys/resource.h>
#endif /* !ACE_LACKS_SYS_RESOURCE_H */
#if defined (ACE_HAS_SYS_SYSTEMINFO_H)
# include /**/ <sys/systeminfo.h>
#endif /* ACE_HAS_SYS_SYSTEMINFO_H */
#if defined (ACE_HAS_SYS_SYSCALL_H)
# include /**/ <sys/syscall.h>
#endif /* ACE_HAS_SYS_SYSCALL_H */
// prusage_t is defined in <sys/procfs.h>
#if defined (ACE_HAS_PROC_FS)
# include /**/ <sys/procfs.h>
#endif /* ACE_HAS_PROC_FS */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
// There must be a better way to do this...
#if !defined (RLIMIT_NOFILE) && !defined (ACE_LACKS_RLIMIT_NOFILE)
# if defined (linux) || defined (AIX) || defined (SCO)
@@ -60,7 +48,6 @@ extern "C"
# endif /* RLIMIT_OFILE */
# endif /* defined (linux) || defined (AIX) || defined (SCO) */
#endif /* RLIMIT_NOFILE */
#if defined (ACE_WIN32)
# define RUSAGE_SELF 1
/// Fake the UNIX rusage structure. Perhaps we can add more to this
@@ -71,12 +58,10 @@ extern "C"
FILETIME ru_stime;
};
#endif /* ACE_WIN32 */
#if defined (ACE_LACKS_RLIMIT_PROTOTYPE)
int getrlimit (int resource, struct rlimit *rlp);
int setrlimit (int resource, const struct rlimit *rlp);
#endif /* ACE_LACKS_RLIMIT_PROTOTYPE */
#if defined (ACE_HAS_PRUSAGE_T)
typedef prusage_t ACE_Rusage;
#elif defined (ACE_HAS_GETRUSAGE)
@@ -84,22 +69,18 @@ extern "C"
#else
typedef int ACE_Rusage;
#endif /* ACE_HAS_PRUSAGE_T */
#if !defined (ACE_WIN32)
// These prototypes are chronically lacking from many versions of UNIX.
# if !defined (ACE_HAS_GETRUSAGE_PROTOTYPE)
int getrusage (int who, struct rusage *rusage);
# endif /* ! ACE_HAS_GETRUSAGE_PROTOTYPE */
# if defined (ACE_LACKS_SYSCALL)
int syscall (int, ACE_HANDLE, struct rusage *);
# endif /* ACE_LACKS_SYSCALL */
#endif /* !ACE_WIN32 */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_RESOURCE_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_select.h
@@ -12,36 +11,27 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_SELECT_H
#define ACE_OS_INCLUDE_SYS_OS_SELECT_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_time.h"
#include "ace/os_include/os_signal.h"
#include "ace/os_include/os_unistd.h"
#if !defined (ACE_LACKS_SYS_SELECT_H)
# include /**/ <sys/select.h>
#endif /* !ACE_LACKS_SYS_SELECT_H */
#if defined (ACE_VXWORKS) && defined (ACE_LACKS_SYS_SELECT_H)
# include /**/ <selectLib.h>
#endif /* ACE_VXWORKS */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_WIN32)
// This will help until we figure out everything:
# define NFDBITS 32 /* only used in unused functions... */
@@ -50,11 +40,9 @@ extern "C"
# define NFDBITS (sizeof(fd_mask) * NBBY) /* bits per mask */
# endif /* ! NFDBITS */
#endif /* ACE_WIN32 */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_SELECT_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_sem.h
@@ -12,64 +11,48 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_SEM_H
#define ACE_OS_INCLUDE_SYS_OS_SEM_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_ipc.h"
#if !defined (ACE_LACKS_SYS_SEM_H)
# include /**/ <sys/sem.h>
#endif /* !ACE_LACKS_SYS_SEM_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
# if !defined (GETVAL)
# define GETVAL 0
# endif /* GETVAL */
# if !defined (SETVAL)
# define SETVAL 0
# endif /* SETVAL */
# if !defined (GETALL)
# define GETALL 0
# endif /* GETALL */
# if !defined (SETALL)
# define SETALL 0
# endif /* SETALL */
# if !defined (SEM_UNDO)
# define SEM_UNDO 0
# endif /* SEM_UNDO */
#if defined (ACE_LACKS_SEMBUF_T)
struct sembuf
{
/// semaphore #
unsigned short sem_num;
/// semaphore operation
short sem_op;
/// operation flags
short sem_flg;
};
#endif /* ACE_LACKS_SEMBUF_T */
#if !defined (ACE_HAS_SEMUN) || (defined (__GLIBC__) && defined (_SEM_SEMUN_UNDEFINED))
union semun
{
@@ -81,11 +64,9 @@ extern "C"
u_short *array;
};
#endif /* !ACE_HAS_SEMUN || (defined (__GLIBC__) && defined (_SEM_SEMUN_UNDEFINED)) */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_SEM_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_shm.h
@@ -12,38 +11,28 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_SHM_H
#define ACE_OS_INCLUDE_SYS_OS_SHM_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_ipc.h"
#if !defined (ACE_LACKS_SYS_SHM_H)
# include /**/ <sys/shm.h>
#endif /* !ACE_LACKS_SYS_SHM_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
// Declare opaque type. Needed for ACE_OS wrappers on systems
// without SysV IPC.
struct shmid_ds;
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_SHM_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_socket.h
@@ -12,50 +11,38 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_SOCKET_H
#define ACE_OS_INCLUDE_SYS_OS_SOCKET_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_uio.h"
#if !defined (ACE_LACKS_SYS_SOCKET_H)
# include /**/ <sys/socket.h>
#endif /* !ACE_LACKS_SYS_SOCKET_H */
#if defined (ACE_VXWORKS) && (ACE_VXWORKS < 0x620)
# include /**/ <sockLib.h>
#endif /* ACE_VXWORKS */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if !defined (ACE_HAS_MSG) && !defined (SCO)
struct msghdr {};
#endif /* ACE_HAS_MSG */
#if defined (ACE_HAS_MSG) && defined (ACE_LACKS_MSG_ACCRIGHTS)
# if !defined (msg_accrights)
# undef msg_control
# define msg_accrights msg_control
# endif /* ! msg_accrights */
# if !defined (msg_accrightslen)
# undef msg_controllen
# define msg_accrightslen msg_controllen
# endif /* ! msg_accrightslen */
#endif /* ACE_HAS_MSG && ACE_LACKS_MSG_ACCRIGHTS */
# if defined (ACE_LACKS_SOCKADDR)
struct sockaddr {
u_char sa_len; /* total length */
@@ -63,143 +50,110 @@ extern "C"
char sa_data[14]; /* actually longer; address value */
};
# endif /* ACE_LACKS_SOCKADDR */
# if defined (ACE_LACKS_LINGER)
struct linger {
int l_onoff; /* option on/off */
int l_linger; /* linger time */
};
# endif /* ACE_LACKS_LINGER */
#if defined (ACE_WIN32)
struct msghdr
{
/// Optional address
sockaddr * msg_name;
/// Size of address
int msg_namelen;
/// Scatter/gather array
iovec *msg_iov;
/// # elements in msg_iov
int msg_iovlen;
/// Access rights sent/received
caddr_t msg_accrights;
int msg_accrightslen;
};
#endif /* ACE_WIN32 */
#if defined (ACE_HAS_4_4BSD_SENDMSG_RECVMSG)
// Control message size to pass a file descriptor.
# define ACE_BSD_CONTROL_MSG_LEN sizeof (struct cmsghdr) + sizeof (ACE_HANDLE)
#endif /* ACE_HAS_4_4BSD_SENDMSG_RECVMSG */
// Increase the range of "address families". Please note that this
// must appear _after_ the include of sys/socket.h, for the AF_FILE
// definition on Linux/glibc2.
#if !defined (AF_ANY)
# define AF_ANY (-1)
#endif /* AF_ANY */
#if !defined (AF_UNSPEC)
# define AF_UNSPEC 0
#endif /* AF_UNSPEC */
#if !defined (AF_LOCAL)
# define AF_LOCAL 1
#endif /* AF_LOCAL */
#if !defined (AF_UNIX)
# define AF_UNIX AF_LOCAL
#endif /* AF_UNIX */
#if !defined (AF_INET)
# define AF_INET 2
#endif /* AF_INET */
#if !defined (PF_INET)
# define PF_INET AF_INET
#endif /* PF_INET */
#if !defined (PF_LOCAL)
# define PF_LOCAL AF_LOCAL
#endif /* PF_LOCAL */
#if !defined (PF_UNIX)
# define PF_UNIX PF_LOCAL
#endif /* PF_UNIX */
#if !defined (AF_MAX)
# define AF_MAX 29
#endif /* AF_MAX */
#if !defined (PF_UNSPEC)
# define PF_UNSPEC 0
#endif /* PF_UNSPEC */
#define AF_SPIPE (AF_MAX + 1)
#if !defined (AF_FILE)
# define AF_FILE (AF_MAX + 2)
#endif /* ! AF_FILE */
#define AF_DEV (AF_MAX + 3)
#define AF_UPIPE (AF_SPIPE)
#if !defined (MSG_OOB)
# define MSG_OOB 0x1
#endif /* MSG_OOB */
#if !defined (MSG_PEEK)
# define MSG_PEEK 0x2
#endif /* MSG_PEEK */
#if !defined (SOCK_STREAM)
# define SOCK_STREAM 1
#endif /* SOCK_STREAM */
#if !defined (SOCK_DGRAM)
# define SOCK_DGRAM 2
#endif /* SOCK_DGRAM */
#if !defined (SOCK_SEQPACKET)
# define SOCK_SEQPACKET 5
#endif /* SOCK_SEQPACKET */
#if !defined (SOL_SOCKET)
# define SOL_SOCKET 0xffff
#endif /* SOL_SOCKET */
#if !defined (SO_REUSEADDR)
# define SO_REUSEADDR 0x0004
#endif /* SO_REUSEADDR */
#if !defined (SO_LINGER)
# define SO_LINGER 0x0080
#endif /* SO_LINGER */
#if !defined (SO_SNDBUF)
# define SO_SNDBUF 0x1001
#endif /* SO_SNDBUF */
#if !defined (SO_RCVBUF)
# define SO_RCVBUF 0x1002
#endif /* SO_RCVBUF */
#if !defined (SO_BROADCAST)
# define SO_BROADCAST 0x0020
#endif /* SO_BROADCAST */
#if !defined (SO_ERROR)
# define SO_ERROR 0x1007
#endif /* SO_ERROR */
#if !defined (SCM_RIGHTS)
# define SCM_RIGHTS 0x01
#endif /* SCM_RIGHTS */
#if defined (ACE_HAS_IPV6)
# if defined (ACE_USES_IPV4_IPV6_MIGRATION)
# define ACE_ADDRESS_FAMILY_INET AF_UNSPEC
@@ -212,11 +166,9 @@ extern "C"
# define ACE_ADDRESS_FAMILY_INET AF_INET
# define ACE_PROTOCOL_FAMILY_INET PF_INET
#endif /* ACE_HAS_IPV6 */
#if !defined (ACE_HAS_SOCK_BUF_SIZE_MAX_VALUE)
#define ACE_HAS_SOCK_BUF_SIZE_MAX_VALUE SSIZE_MAX
#endif /* ACE_HAS_SOCK_BUF_SIZE_MAX_VALUE */
#if defined (ACE_HAS_SOCKLEN_T)
# if defined (__hpux)
/*
@@ -242,13 +194,11 @@ typedef size_t ACE_SOCKET_LEN;
#else
typedef int ACE_SOCKET_LEN;
#endif /* ACE_HAS_SIZET_SOCKET_LEN */
#if defined (ACE_HAS_NETLINK)
# include /**/ <asm/types.h>
# include /**/ <linux/netlink.h>
# define ACE_PROTOCOL_FAMILY_NETLINK AF_NETLINK
#endif
#if defined (ACE_HAS_LKSCTP)
extern "C"
{
@@ -256,20 +206,16 @@ extern "C"
#include /**/ <netinet/sctp.h>
}
#endif /* ACE_HAS_LKSCTP */
# if defined (ACE_LACKS_TIMEDWAIT_PROTOTYPES)
ssize_t recv_timedwait (ACE_HANDLE handle,
char *buf,
int len,
int flags,
struct timespec *timeout);
ssize_t recvmsg_timedwait (ACE_HANDLE handle,
struct msghdr *msg,
int flags,
struct timespec *timeout);
ssize_t recvfrom_timedwait (ACE_HANDLE handle,
char *buf,
int len,
@@ -277,18 +223,15 @@ extern "C"
struct sockaddr *addr,
int *addrlen,
struct timespec *timeout);
ssize_t send_timedwait (ACE_HANDLE handle,
const char *buf,
int len,
int flags,
struct timespec *timeout);
ssize_t sendmsg_timedwait (ACE_HANDLE handle,
const struct msghdr *msg,
int flags,
struct timespec *timeout);
ssize_t sendto_timedwait (ACE_HANDLE handle,
const char *buf,
int len,
@@ -296,13 +239,10 @@ extern "C"
const struct sockaddr *addr,
int addrlen,
struct timespec *timeout);
# endif /* ACE_LACKS_TIMEDWAIT_PROTOTYPES */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_SOCKET_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_stat.h
@@ -12,39 +11,28 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_STAT_H
#define ACE_OS_INCLUDE_SYS_OS_STAT_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h"
#if defined (ACE_WIN32) && !defined (ACE_HAS_WINCE)
# include /**/ <direct.h>
#endif /* ACE_WIN32 && !ACE_HAS_WINCE */
#if !defined (ACE_LACKS_SYS_STAT_H)
# include /**/ <sys/stat.h>
#endif /* !ACE_LACKS_SYS_STAT_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_LACKS_MODE_MASKS)
// MODE MASKS
// the following macros are for POSIX conformance.
# if !defined (ACE_HAS_USER_MODE_MASKS)
# define S_IRWXU 00700 /* read, write, execute: owner. */
# define S_IRUSR 00400 /* read permission: owner. */
@@ -59,14 +47,11 @@ extern "C"
# define S_IROTH 00004 /* read permission: other. */
# define S_IWOTH 00002 /* write permission: other. */
# define S_IXOTH 00001 /* execute permission: other. */
// WinCE's S_IFLNK is defined with the other bits, below.
#if !defined (S_IFLNK) && !defined (ACE_HAS_WINCE)
#define S_IFLNK 0200000
#endif /* S_IFLNK && !ACE_HAS_WINCE */
#endif /* ACE_LACKS_MODE_MASKS */
// Some systems (VxWorks) don't define S_ISLNK
#if !defined (S_ISLNK)
# if defined (S_IFLNK)
@@ -75,10 +60,8 @@ extern "C"
# define S_ISLNK(mode) 0
# endif /* S_IFLNK */
#endif /* S_ISLNK */
#if defined (ACE_HAS_WINCE)
# include "ace/Time_Value.h"
// Translate the WinCE bits into names expected by our callers.
// The dwFileAttributes parameter doesn't have protection info, so
// S_IFMT is the whole thing. Since there are no symbolic links, S_IFLNK is 0.
@@ -86,43 +69,32 @@ extern "C"
# define S_IFDIR FILE_ATTRIBUTE_DIRECTORY
# define S_IFREG FILE_ATTRIBUTE_NORMAL
# define S_IFLNK 0
struct stat
{
/// always 0 on Windows platforms
dev_t st_dev;
/// always 0 on Windows platforms
dev_t st_rdev;
/// file attribute
unsigned short st_mode;
/// number of hard links
short st_nlink;
/// time of last access
ACE_Time_Value st_atime;
/// time of last data modification
ACE_Time_Value st_mtime;
/// time of creation
ACE_Time_Value st_ctime;
/// file size, in bytes
ACE_OFF_T st_size;
// Following members do not have direct conversion in Window platforms.
//u_long st_blksize; // optimal blocksize for I/O
//u_long st_flags; // user defined flags for file
};
#endif /* ACE_HAS_WINCE */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_STAT_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_statvfs.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_STATVFS_H
#define ACE_OS_INCLUDE_SYS_OS_STATVFS_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_SYS_STATVFS_H)
# include /**/ <sys/statvfs.h>
#endif /* !ACE_LACKS_SYS_STATVFS_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_STATVFS_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_sysctl.h
@@ -11,32 +10,24 @@
* @author Johnny Willemsen <[email protected]>
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_SYSCTL_H
#define ACE_OS_INCLUDE_SYS_OS_SYSCTL_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_SYS_SYSCTL_H)
# include /**/ <sys/sysctl.h>
#endif /* !ACE_LACKS_SYS_SYSCTL_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_SYSCTL_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_sysinfo.h
@@ -9,32 +8,24 @@
* @author Johnny Willemsen <[email protected]>
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_SYSINFO_H
#define ACE_OS_INCLUDE_SYS_OS_SYSINFO_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if defined (ACE_HAS_SYS_SYSINFO_H)
# include /**/ <sys/sysinfo.h>
#endif /* ACE_HAS_SYS_SYSINFO_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_SYSINFO_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_time.h
@@ -12,34 +11,25 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_TIME_H
#define ACE_OS_INCLUDE_SYS_OS_TIME_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h"
#if !defined (ACE_LACKS_SYS_TIME_H)
# include /**/ <sys/time.h>
#endif /* !ACE_LACKS_SYS_TIME_H */
#if defined (ACE_VXWORKS) && (ACE_VXWORKS == 0x620)
# include /**/ <time.h> // VxWorks 6.2 defined timeval in time.h
#endif
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_HAS_SVR4_GETTIMEOFDAY)
# if !defined (SCO)
int gettimeofday (struct timeval *tp, void * = 0);
@@ -51,11 +41,9 @@ extern "C"
#elif defined (ACE_HAS_VOIDPTR_GETTIMEOFDAY)
# define ACE_HAS_SVR4_GETTIMEOFDAY
#endif /* ACE_HAS_SVR4_GETTIMEOFDAY */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_TIME_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_timeb.h
@@ -12,39 +11,29 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_TIMEB_H
#define ACE_OS_INCLUDE_SYS_OS_TIMEB_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h"
#if !defined (ACE_LACKS_SYS_TIMEB_H)
# include /**/ <sys/timeb.h>
#endif /* !ACE_LACKS_SYS_TIMEB_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (__BORLANDC__) && (__BORLANDC__ <= 0x560)
# define _ftime ftime
# define _timeb timeb
#endif /* __BORLANDC__ */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_TIMEB_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_times.h
@@ -12,34 +11,25 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_TIMES_H
#define ACE_OS_INCLUDE_SYS_OS_TIMES_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h"
#if !defined (ACE_LACKS_SYS_TIMES_H)
# include /**/ <sys/times.h>
#endif /* !ACE_LACKS_SYS_TIMES_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_TIMES_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_types.h
@@ -12,41 +11,30 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_TYPES_H
#define ACE_OS_INCLUDE_SYS_OS_TYPES_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/os_stddef.h"
#if !defined (ACE_LACKS_SYS_TYPES_H)
# include /**/ <sys/types.h>
#endif /* !ACE_LACKS_SYS_TYPES_H */
#if defined (ACE_HAS_WINCE)
# include /**/ <types.h>
#endif /* ACE_HAS_WINCE */
# if defined (ACE_USES_STD_NAMESPACE_FOR_STDC_LIB) && \
(ACE_USES_STD_NAMESPACE_FOR_STDC_LIB != 0)
using std::time_t;
# endif /* ACE_USES_STD_NAMESPACE_FOR_STDC_LIB */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
typedef double ACE_timer_t;
// todo: don't forget to clean this up! ;-)
#if !defined (ACE_HAS_CLOCK_GETTIME) && !(defined (_CLOCKID_T_) || defined (_CLOCKID_T))
typedef int clockid_t;
@@ -54,30 +42,24 @@ typedef double ACE_timer_t;
# define CLOCK_REALTIME 0
# endif /* CLOCK_REALTIME */
#endif /* ! ACE_HAS_CLOCK_GETTIME && ! _CLOCKID_T_ */
#if defined (ACE_HAS_WINCE)
// CE's add-on for c-style fstat/stat functionalities. This struct is
// by no mean complete compared to what you usually find in UNIX
// platforms. Only members that have direct conversion using Win32's
// BY_HANDLE_FILE_INFORMATION are defined so that users can discover
// non-supported members at compile time. Time values are of type
// ACE_Time_Value for easy comparison.
// Since CE does not have _stat by default as NT/2000 does, the 'stat'
// struct defined here will be used. Also note that CE file system
// struct is only for the CE 3.0 or later.
// Refer to the WCHAR.H from Visual C++ and WIBASE.H from eVC 3.0.
typedef unsigned int dev_t;
#endif /* ACE_HAS_WINCE */
#if defined(ACE_WIN32) && defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS==64)
typedef __int64 ACE_OFF_T;
#else
typedef off_t ACE_OFF_T;
#endif
#if defined (ACE_SIZEOF_LONG) && ACE_SIZEOF_LONG == 8
typedef off_t ACE_LOFF_T;
#elif defined (ACE_HAS_RTEMS) || defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__APPLE__) || \
@@ -97,7 +79,6 @@ typedef double ACE_timer_t;
#else
typedef loff_t ACE_LOFF_T;
#endif
#if defined (ACE_WIN32)
# if !defined (__BORLANDC__)
typedef DWORD nlink_t;
@@ -109,7 +90,6 @@ typedef double ACE_timer_t;
# endif /* __BORLANDC__ */
typedef char *caddr_t;
#endif /* ACE_WIN32 */
#if defined (ACE_LACKS_KEY_T)
# if defined (ACE_WIN32)
// Win32 doesn't use numeric values to name its semaphores, it uses
@@ -119,7 +99,6 @@ typedef double ACE_timer_t;
typedef int key_t;
# endif /* ACE_WIN32 */
#endif /* ACE_LACKS_KEY_T */
#if !defined (ACE_HAS_SSIZE_T)
# if defined (ACE_WIN64)
typedef SSIZE_T ssize_t;
@@ -127,33 +106,26 @@ typedef double ACE_timer_t;
typedef int ssize_t;
# endif /* ACE_WIN64 */
#endif /* ACE_HAS_SSIZE_T */
#if defined (ACE_WIN32)
typedef DWORD ACE_exitcode;
#else
typedef int ACE_exitcode;
#endif /* ACE_WIN32 */
#if defined (ACE_LACKS_SUSECONDS_T)
typedef long suseconds_t;
#endif
#if defined (ACE_LACKS_USECONDS_T)
typedef unsigned long useconds_t;
#endif
#if defined (ACE_WIN32) && !defined(__MINGW32__)
typedef int pid_t;
#endif /* ACE_WIN32 */
# if !defined (ACE_INVALID_PID)
# define ACE_INVALID_PID ((pid_t) -1)
# endif /* ACE_INVALID_PID */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_TYPES_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_uio.h
@@ -12,31 +11,23 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_UIO_H
#define ACE_OS_INCLUDE_SYS_OS_UIO_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h"
#include "ace/os_include/os_limits.h"
#if !defined (ACE_LACKS_SYS_UIO_H)
# include /**/ <sys/uio.h>
#endif /* !ACE_LACKS_SYS_UIO_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_LACKS_IOVEC)
/// The ordering of the fields in this struct is important. It has to
/// match those in WSABUF.
@@ -46,7 +37,6 @@ extern "C"
u_long iov_len;
/// data to be read/written
char *iov_base;
// WSABUF is a Winsock2-only type.
# if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
operator WSABUF &(void) { return *((WSABUF *) this); }
@@ -54,25 +44,19 @@ extern "C"
};
#endif /* ACE_LACKS_IOVEC */
# if defined (ACE_LACKS_TIMEDWAIT_PROTOTYPES)
ssize_t readv_timedwait (ACE_HANDLE handle,
const iovec *iov,
int iovcnt,
struct timespec* timeout);
ssize_t writev_timedwait (ACE_HANDLE handle,
const iovec *iov,
int iovcnt,
struct timespec *timeout);
# endif /* ACE_LACKS_TIMEDWAIT_PROTOTYPES */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_UIO_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_un.h
@@ -12,30 +11,22 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_UN_H
#define ACE_OS_INCLUDE_SYS_OS_UN_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_socket.h"
#if !defined (ACE_LACKS_SYS_UN_H)
# include /**/ <sys/un.h>
#endif /* !ACE_LACKS_SYS_UN_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_VXWORKS) && (ACE_VXWORKS <= 0x600)
struct sockaddr_un {
short sun_family; // AF_UNIX.
@@ -43,11 +34,9 @@ struct sockaddr_un {
};
#endif /* ACE_VXWORKS */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_UN_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_utsname.h
@@ -12,32 +11,24 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_UTSNAME_H
#define ACE_OS_INCLUDE_SYS_OS_UTSNAME_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_SYS_UTSNAME_H)
# include /**/ <sys/utsname.h>
#endif /* !ACE_LACKS_SYS_UTSNAME_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_UTSNAME_H */
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file os_wait.h
@@ -12,42 +11,31 @@
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_SYS_OS_WAIT_H
#define ACE_OS_INCLUDE_SYS_OS_WAIT_H
#include /**/ "ace/pre.h"
#include "ace/config-lite.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/os_signal.h"
#include "ace/os_include/sys/os_resource.h"
#if !defined (ACE_LACKS_SYS_WAIT_H)
# include /**/ <sys/wait.h>
#endif /* !ACE_LACKS_SYS_WAIT_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
// Wrapping around wait status <wstat> macros for platforms that
// lack them.
# if !defined (WCOREDUMP)
# define WCOREDUMP(stat) 0
# endif /* WCOREDUMP */
# if !defined (WNOHANG)
# define WNOHANG 0100
# endif /* !WNOHANG */
// If the value of WIFEXITED(stat) is non-zero, this macro evaluates
// to the exit code that the child process exit(3C), or the value
// that the child process returned from main. Peaceful exit code is
@@ -55,44 +43,36 @@ extern "C"
# if !defined (WEXITSTATUS)
# define WEXITSTATUS(stat) stat
# endif /* WEXITSTATUS */
# if !defined (WIFCONTINUED)
# define WIFCONTINUED(stat) 0
# endif /* WIFCONTINUED */
// Evaluates to a non-zero value if status was returned for a child
// process that terminated normally. 0 means status wasn't
// returned.
# if !defined (WIFEXITED)
# define WIFEXITED(stat) 1
# endif /* WIFEXITED */
// Evaluates to a non-zero value if status was returned for a child
// process that terminated due to the receipt of a signal. 0 means
// status wasnt returned.
# if !defined (WIFSIGNALED)
# define WIFSIGNALED(stat) 0
# endif /* WIFSIGNALED */
# if !defined (WIFSTOPPED)
# define WIFSTOPPED(stat) 0
# endif /* WIFSTOPPED */
# if !defined (WSTOPSIG)
# define WSTOPSIG(stat) 0
# endif /* WSTOPSIG */
// If the value of WIFSIGNALED(stat) is non-zero, this macro
// evaluates to the number of the signal that caused the
// termination of the child process.
# if !defined (WTERMSIG)
# define WTERMSIG(stat) 0
# endif /* WTERMSIG */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_SYS_OS_WAIT_H */