summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_netdb.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/OS_NS_netdb.inl')
-rw-r--r--ACE/ace/OS_NS_netdb.inl79
1 files changed, 10 insertions, 69 deletions
diff --git a/ACE/ace/OS_NS_netdb.inl b/ACE/ace/OS_NS_netdb.inl
index 24420947037..0bedbe2a2d0 100644
--- a/ACE/ace/OS_NS_netdb.inl
+++ b/ACE/ace/OS_NS_netdb.inl
@@ -104,20 +104,7 @@ ACE_OS::gethostbyaddr_r (const char *addr,
if (0 == addr || '\0' == addr[0])
return 0;
-# if defined (AIX)
- ACE_OS::memset (buffer, 0, sizeof (ACE_HOSTENT_DATA));
-
- //FUZZ: disable check_for_lack_ACE_OS
- if (::gethostbyaddr_r ((char *) addr, length, type, result,
- (struct hostent_data *) buffer)== 0)
- return result;
- //FUZZ: enable check_for_lack_ACE_OS
- else
- {
- *h_errnop = h_errno;
- return (struct hostent *) 0;
- }
-# elif defined (__GLIBC__)
+# if defined (__GLIBC__)
// GNU C library has a different signature
ACE_OS::memset (buffer, 0, sizeof (ACE_HOSTENT_DATA));
@@ -199,7 +186,7 @@ ACE_OS::gethostbyaddr_r (const char *addr,
struct hostent *, 0);
//FUZZ: enable check_for_lack_ACE_OS
# endif /* ACE_LACKS_NETDB_REENTRANT_FUNCTIONS */
-# endif /* defined (AIX) */
+# endif /* defined (__GLIBC__) */
# elif defined (ACE_HAS_NONCONST_GETBY)
ACE_UNUSED_ARG (result);
ACE_UNUSED_ARG (buffer);
@@ -283,29 +270,7 @@ ACE_OS::gethostbyname_r (const char *name,
if (0 == name || '\0' == name[0])
return (struct hostent *)0;
-# if (defined (ACE_AIX_MINOR_VERS) && (ACE_AIX_MINOR_VERS > 2))
- ACE_UNUSED_ARG (result);
- ACE_UNUSED_ARG (buffer);
- ACE_UNUSED_ARG (h_errnop);
-
- // gethostbyname returns thread-specific storage on Digital Unix and
- // AIX 4.3
- //FUZZ: disable check_for_lack_ACE_OS
- ACE_SOCKCALL_RETURN (::gethostbyname (name), struct hostent *, 0);
- //FUZZ: enable check_for_lack_ACE_OS
-# elif defined (AIX)
- ACE_OS::memset (buffer, 0, sizeof (ACE_HOSTENT_DATA));
-
- //FUZZ: disable check_for_lack_ACE_OS
- if (::gethostbyname_r (name, result, (struct hostent_data *) buffer) == 0)
- return result;
- //FUZZ: enable check_for_lack_ACE_OS
- else
- {
- *h_errnop = h_errno;
- return (struct hostent *) 0;
- }
-# elif defined (__GLIBC__)
+# if defined (__GLIBC__)
// GNU C library has a different signature
ACE_OS::memset (buffer, 0, sizeof (ACE_HOSTENT_DATA));
@@ -386,7 +351,7 @@ ACE_OS::gethostbyname_r (const char *name,
0);
//FUZZ: enable check_for_lack_ACE_OS
# endif /* ACE_LACKS_NETDB_REENTRANT_FUNCTIONS */
-# endif /* defined (AIX) */
+# endif /* defined (__GLIBC__) */
# elif defined (ACE_HAS_NONCONST_GETBY)
ACE_UNUSED_ARG (result);
ACE_UNUSED_ARG (buffer);
@@ -512,14 +477,7 @@ ACE_OS::getprotobyname_r (const char *name,
ACE_UNUSED_ARG (buffer);
ACE_NOTSUP_RETURN (0);
#elif defined (ACE_HAS_REENTRANT_FUNCTIONS)
-# if defined (AIX)
- //FUZZ: disable check_for_lack_ACE_OS
- if (::getprotobyname_r (name, result, (struct protoent_data *) buffer) == 0)
- return result;
- else
- return 0;
- //FUZZ: enable check_for_lack_ACE_OS
-# elif defined (__GLIBC__)
+#if defined (__GLIBC__)
// GNU C library has a different signature
//FUZZ: disable check_for_lack_ACE_OS
if (::getprotobyname_r (name,
@@ -548,7 +506,7 @@ ACE_OS::getprotobyname_r (const char *name,
struct protoent *, 0);
//FUZZ: enable check_for_lack_ACE_OS
# endif /* ACE_LACKS_NETDB_REENTRANT_FUNCTIONS */
-# endif /* defined (AIX) */
+# endif /* defined (__GLIBC__) */
#elif defined (ACE_HAS_NONCONST_GETBY)
ACE_UNUSED_ARG (result);
ACE_UNUSED_ARG (buffer);
@@ -593,14 +551,7 @@ ACE_OS::getprotobynumber_r (int proto,
ACE_UNUSED_ARG (buffer);
ACE_NOTSUP_RETURN (0);
#elif defined (ACE_HAS_REENTRANT_FUNCTIONS)
-# if defined (AIX)
- //FUZZ: disable check_for_lack_ACE_OS
- if (::getprotobynumber_r (proto, result, (struct protoent_data *) buffer) == 0)
- return result;
- //FUZZ: enable check_for_lack_ACE_OS
- else
- return 0;
-# elif defined (__GLIBC__)
+# if defined (__GLIBC__)
// GNU C library has a different signature
//FUZZ: disable check_for_lack_ACE_OS
if (::getprotobynumber_r (proto,
@@ -626,7 +577,7 @@ ACE_OS::getprotobynumber_r (int proto,
struct protoent *, 0);
//FUZZ: enable check_for_lack_ACE_OS
# endif /* ACE_LACKS_NETDB_REENTRANT_FUNCTIONS */
-# endif /* defined (AIX) */
+# endif /* defined (__GLIBC__) */
#else
ACE_UNUSED_ARG (buffer);
ACE_UNUSED_ARG (result);
@@ -677,16 +628,7 @@ ACE_OS::getservbyname_r (const char *svc,
ACE_UNUSED_ARG (buf);
ACE_NOTSUP_RETURN (0);
#elif defined (ACE_HAS_REENTRANT_FUNCTIONS)
-# if defined (AIX)
- ACE_OS::memset (buf, 0, sizeof (ACE_SERVENT_DATA));
-
- //FUZZ: disable check_for_lack_ACE_OS
- if (::getservbyname_r (svc, proto, result, (struct servent_data *) buf) == 0)
- return result;
- //FUZZ: enable check_for_lack_ACE_OS
- else
- return (struct servent *) 0;
-# elif defined (__GLIBC__)
+# if defined (__GLIBC__)
// GNU C library has a different signature
ACE_OS::memset (buf, 0, sizeof (ACE_SERVENT_DATA));
@@ -716,7 +658,7 @@ ACE_OS::getservbyname_r (const char *svc,
struct servent *, 0);
//FUZZ: enable check_for_lack_ACE_OS
# endif /* ACE_LACKS_NETDB_REENTRANT_FUNCTIONS */
-# endif /* defined (AIX) */
+# endif /* defined (__GLIBC__) */
#elif defined (ACE_HAS_NONCONST_GETBY)
ACE_UNUSED_ARG (buf);
ACE_UNUSED_ARG (result);
@@ -738,7 +680,6 @@ ACE_OS::getservbyname_r (const char *svc,
#endif /* defined (ACE_HAS_REENTRANT_FUNCTIONS) */
}
-
ACE_INLINE int
ACE_OS::getaddrinfo (const char *name, const char *service,
const addrinfo *hints, addrinfo **result)