summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_dlfcn.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/OS_NS_dlfcn.inl')
-rw-r--r--ACE/ace/OS_NS_dlfcn.inl32
1 files changed, 1 insertions, 31 deletions
diff --git a/ACE/ace/OS_NS_dlfcn.inl b/ACE/ace/OS_NS_dlfcn.inl
index 93f09f91229..b9928e2936a 100644
--- a/ACE/ace/OS_NS_dlfcn.inl
+++ b/ACE/ace/OS_NS_dlfcn.inl
@@ -40,22 +40,6 @@ ACE_OS::dlclose (ACE_SHLIB_HANDLE handle)
return ::dlclose (handle);
#elif defined (ACE_WIN32)
ACE_WIN32CALL_RETURN (ACE_ADAPT_RETVAL (::FreeLibrary (handle), ace_result_), int, -1);
-#elif defined (__hpux)
- // HP-UX 10.x and 32-bit 11.00 do not pay attention to the ref count
- // when unloading a dynamic lib. So, if the ref count is more than
- // 1, do not unload the lib. This will cause a library loaded more
- // than once to not be unloaded until the process runs down, but
- // that's life. It's better than unloading a library that's in use.
- // So far as I know, there's no way to decrement the refcnt that the
- // kernel is looking at - the shl_descriptor is a copy of what the
- // kernel has, not the actual struct. On 64-bit HP-UX using dlopen,
- // this problem has been fixed.
- struct shl_descriptor desc;
- if (shl_gethandle_r (handle, &desc) == -1)
- return -1;
- if (desc.ref_count > 1)
- return 0;
- return ::shl_unload (handle);
#else
ACE_UNUSED_ARG (handle);
ACE_NOTSUP_RETURN (-1);
@@ -79,7 +63,7 @@ ACE_OS::dlerror ()
# else
return const_cast <char *> (err);
# endif /* ACE_USES_WCHAR */
-# elif defined (__hpux) || defined (ACE_VXWORKS)
+# elif defined (ACE_VXWORKS)
//FUZZ: disable check_for_lack_ACE_OS
return ::strerror(errno);
//FUZZ: enable check_for_lack_ACE_OS
@@ -133,8 +117,6 @@ ACE_OS::dlopen (const ACE_TCHAR *fname,
ACE_UNUSED_ARG (mode);
ACE_WIN32CALL_RETURN (ACE_TEXT_LoadLibrary (fname), ACE_SHLIB_HANDLE, 0);
-# elif defined (__hpux)
- return ::shl_load(fname, mode, 0L);
# elif defined (ACE_VXWORKS) && !defined (__RTP__)
ACE_UNUSED_ARG (mode);
MODULE* handle = 0;
@@ -206,21 +188,9 @@ ACE_OS::dlsym (ACE_SHLIB_HANDLE handle,
# else
return ::dlsym (handle, symbolname);
# endif /* ACE_USES_ASM_SYMBOL_IN_DLSYM */
-
# elif defined (ACE_WIN32)
-
ACE_WIN32CALL_RETURN (::GetProcAddress (handle, symbolname), void *, 0);
-
-# elif defined (__hpux)
-
- void *value {};
- int status = 0;
- shl_t _handle = handle;
- ACE_OSCALL (::shl_findsym(&_handle, symbolname, TYPE_UNDEFINED, &value), int, status);
- return status == 0 ? value : nullptr;
-
# elif defined (ACE_VXWORKS) && !defined (__RTP__)
-
// For now we use the VxWorks global symbol table
// which resolves the most recently loaded symbols, which resolve
// mostly what we want..