diff options
author | oci <oci@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-06-28 18:48:18 +0000 |
---|---|---|
committer | oci <oci@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-06-28 18:48:18 +0000 |
commit | fb32c18fdcf7a231b82926eb06c1267db151b178 (patch) | |
tree | 8ae113d002e5976c3aafb27e04c78a3914786407 | |
parent | 7050ef274dbd61412f86491b5fcd0f44a7c7c60f (diff) | |
download | ATCD-fb32c18fdcf7a231b82926eb06c1267db151b178.tar.gz |
ChangeLogTag: Thu Jun 28 13:44:52 2001 Chad Elliott <elliott_c@ociweb.com>
-rw-r--r-- | ChangeLog | 28 | ||||
-rw-r--r-- | ChangeLogs/ChangeLog-02a | 28 | ||||
-rw-r--r-- | ChangeLogs/ChangeLog-03a | 28 | ||||
-rw-r--r-- | ace/config-sunos5.5.h | 10 | ||||
-rw-r--r-- | ace/config-sunos5.6.h | 5 | ||||
-rw-r--r-- | ace/config-sunos5.7.h | 12 |
6 files changed, 103 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog index 1e9030ddde4..ccf4247c2ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,31 @@ +Thu Jun 28 13:44:52 2001 Chad Elliott <elliott_c@ociweb.com> + + * ace/config-sunos5.5.h: + + Add include of sys/feature_tests.h to ensure that certain macros + are set up correctly. This is mainly important to SunOS 5.7 and + later, but may be useful to the earlier versions. + + Also, added a check for the correct value of _POSIX_C_SOURCE to + set ACE_HAS_POSIX_GETPWNAM_R. This use to be a conditional in + config-sunos5.7.h based on gcc 3.0, but it is not specific to gcc. + + * ace/config-sunos5.6.h: + + Added a check for _XPG4_2 before defining + ACE_HAS_4_4BSD_SENDMSG_RECVMSG. This used to be a conditional in + config-sunos5.7.h based on gcc 3.0, but it is not specific to gcc. + + * ace/config-sunos5.7.h: + + Removed the gcc 3.0 specific section and dispersed the macro + definitions to the correct config files (based on os version and + other macros). + + Added a definition of ACE_HAS_SOCKLEN_T since SunOS has had + socklen_t since 5.7. This use to be a conditional based on gcc + 3.0, but it is not specific to gcc. + Thu Jun 28 13:05:12 2001 Jeff Parsons <parsons@cs.wustl.edu> * ace/CDR_Stream.{h,i,cpp}: diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a index 1e9030ddde4..ccf4247c2ea 100644 --- a/ChangeLogs/ChangeLog-02a +++ b/ChangeLogs/ChangeLog-02a @@ -1,3 +1,31 @@ +Thu Jun 28 13:44:52 2001 Chad Elliott <elliott_c@ociweb.com> + + * ace/config-sunos5.5.h: + + Add include of sys/feature_tests.h to ensure that certain macros + are set up correctly. This is mainly important to SunOS 5.7 and + later, but may be useful to the earlier versions. + + Also, added a check for the correct value of _POSIX_C_SOURCE to + set ACE_HAS_POSIX_GETPWNAM_R. This use to be a conditional in + config-sunos5.7.h based on gcc 3.0, but it is not specific to gcc. + + * ace/config-sunos5.6.h: + + Added a check for _XPG4_2 before defining + ACE_HAS_4_4BSD_SENDMSG_RECVMSG. This used to be a conditional in + config-sunos5.7.h based on gcc 3.0, but it is not specific to gcc. + + * ace/config-sunos5.7.h: + + Removed the gcc 3.0 specific section and dispersed the macro + definitions to the correct config files (based on os version and + other macros). + + Added a definition of ACE_HAS_SOCKLEN_T since SunOS has had + socklen_t since 5.7. This use to be a conditional based on gcc + 3.0, but it is not specific to gcc. + Thu Jun 28 13:05:12 2001 Jeff Parsons <parsons@cs.wustl.edu> * ace/CDR_Stream.{h,i,cpp}: diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a index 1e9030ddde4..ccf4247c2ea 100644 --- a/ChangeLogs/ChangeLog-03a +++ b/ChangeLogs/ChangeLog-03a @@ -1,3 +1,31 @@ +Thu Jun 28 13:44:52 2001 Chad Elliott <elliott_c@ociweb.com> + + * ace/config-sunos5.5.h: + + Add include of sys/feature_tests.h to ensure that certain macros + are set up correctly. This is mainly important to SunOS 5.7 and + later, but may be useful to the earlier versions. + + Also, added a check for the correct value of _POSIX_C_SOURCE to + set ACE_HAS_POSIX_GETPWNAM_R. This use to be a conditional in + config-sunos5.7.h based on gcc 3.0, but it is not specific to gcc. + + * ace/config-sunos5.6.h: + + Added a check for _XPG4_2 before defining + ACE_HAS_4_4BSD_SENDMSG_RECVMSG. This used to be a conditional in + config-sunos5.7.h based on gcc 3.0, but it is not specific to gcc. + + * ace/config-sunos5.7.h: + + Removed the gcc 3.0 specific section and dispersed the macro + definitions to the correct config files (based on os version and + other macros). + + Added a definition of ACE_HAS_SOCKLEN_T since SunOS has had + socklen_t since 5.7. This use to be a conditional based on gcc + 3.0, but it is not specific to gcc. + Thu Jun 28 13:05:12 2001 Jeff Parsons <parsons@cs.wustl.edu> * ace/CDR_Stream.{h,i,cpp}: diff --git a/ace/config-sunos5.5.h b/ace/config-sunos5.5.h index 87805014742..ce5e4afa9ab 100644 --- a/ace/config-sunos5.5.h +++ b/ace/config-sunos5.5.h @@ -11,6 +11,10 @@ #define ACE_CONFIG_H #include "ace/pre.h" +// Before we do anything, we should include <sys/feature_tests.h> to +// ensure that things are set up properly. +#include <sys/feature_tests.h> + // Compiler version-specific settings: #if defined (__SUNPRO_CC) # if (__SUNPRO_CC < 0x410) @@ -209,6 +213,12 @@ // Platform supports the /proc file system. #define ACE_HAS_PROC_FS +// Platform has posix getpwnam_r +#if (defined (_POSIX_C_SOURCE) && _POSIX_C_SOURCE - 0 >= 199506L) || \ + defined(_POSIX_PTHREAD_SEMANTICS) +# define ACE_HAS_POSIX_GETPWNAM_R +#endif /* _POSIX_C_SOURCE || _POSIX_PTHREAD_SEMANTICS */ + // Platform supports the prusage_t struct. #define ACE_HAS_PRUSAGE_T diff --git a/ace/config-sunos5.6.h b/ace/config-sunos5.6.h index e08dd388545..1c4998e6807 100644 --- a/ace/config-sunos5.6.h +++ b/ace/config-sunos5.6.h @@ -127,4 +127,9 @@ # define ACE_HAS_SHM_OPEN #endif /* _POSIX_C_SOURCE > 2 */ +// The struct msghdr is conditional on SunOS 5.6 based on _XPG4_2 +#if defined(_XPG4_2) +# define ACE_HAS_4_4BSD_SENDMSG_RECVMSG +#endif /* _XPG4_2 */ + #endif /* ACE_CONFIG_H */ diff --git a/ace/config-sunos5.7.h b/ace/config-sunos5.7.h index 42d88066760..9fb6f36481f 100644 --- a/ace/config-sunos5.7.h +++ b/ace/config-sunos5.7.h @@ -25,13 +25,6 @@ typedef long t_scalar_t; /* historical versions */ typedef unsigned long t_uscalar_t; typedef void *timeout_id_t; - -# elif __GNUC__ >= 3 && __GNUC_MINOR__ >= 0 -# define ACE_HAS_SOCKLEN_T -# define ACE_HAS_POSIX_GETPWNAM_R -# define ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R -# define ACE_HAS_4_4BSD_SENDMSG_RECVMSG - # endif /* __GNUC__ <= 2 && __GNUC_MINOR__ < 8 */ #elif defined (ghs) @@ -55,7 +48,7 @@ typedef unsigned long long uint64_t; // performance-tests/Misc/preempt. #undef ACE_NEEDS_LWP_PRIO_SET -// SunOS 2.7 can support Real-Time Signals and POSIX4 AIO operations +// SunOS 5.7 can support Real-Time Signals and POSIX4 AIO operations // are supported. #if !defined (ACE_HAS_AIO_CALLS) @@ -73,6 +66,9 @@ typedef unsigned long long uint64_t; #undef ACE_HAS_LIMITED_SELECT #endif /* ACE_HAS_LIMITED_SELECT */ +// SunOS 5.7 has socklen_t +#define ACE_HAS_SOCKLEN_T + #if defined (__sparcv9) #define ERRMAX 256 /* Needed for following define */ #define ACE_LACKS_SYS_NERR |