- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Multithreaded library naming format in HP-UX
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2015 03:15 AM
07-22-2015 03:15 AM
Multithreaded library naming format in HPUX
Hello,
For some reasons I need to exclude dynamically loading (dlopen) a multithreaded library in my program.
Anyone knows if I can do the below:
if (strcmp(lib_pathname + strlen(lib_pathname) - 5, "mt.sl") != 0)
{
lib_handle = shl_load(lib_pathname,
BIND_IMMEDIATE | BIND_VERBOSE, 0L); /* Load the DLL now */
}
}
to not load multithreaded versions of the libraries ?
Here i am assuming that the naming convention of multithreaded libraries are xxxxxmt.sl
Any better way to handle this scenario ?
Thanks and Regards
Sachi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2015 03:24 AM - edited 07-26-2015 04:26 AM
07-22-2015 03:24 AM - edited 07-26-2015 04:26 AM
Re: Multithreaded library naming format in HP-UX
>I need to exclude dynamically loading (dlopen) a multithreaded library in my program.
You are out of luck. There is no convention.
All HP-UX system shlibs are suppose to work threaded or not, dynamically.
But this means you can't load libpthread and libc.
And other shlibs must use software TLS (pthread_getspecific) and not hardware.
>Any better way to handle this scenario?
Only by compiling with dynamic TLS. But I'm not sure that was ever implemented completely on PA-RISC.