- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX X/Open Socket and BSD Socket Issue
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
09-28-2011 01:56 AM
09-28-2011 01:56 AM
HP-UX X/Open Socket and BSD Socket Issue
- Tags:
- socket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2011 01:00 AM
10-04-2011 01:00 AM
Re: HP-UX X/Open Socket and BSD Socket Issue
Hi,
no it is not safe, because some API doesn't match, for instance accep(), getpeername(), getsockname(), getsockopt(), recvfrom(), sendmsg(), and recvmsg(), expect 32 bits size in one case and 64 bit in the other.
So you need that libxnet be not used by any of your library or application
So you need to compile any of the application/library using xopen socket with also -D_HPUX_ALT_XOPEN_SOCKET_API option, like that xopen socket don't need the application to be linked with libxnet, and will avoid the mismatch between the 2 api
quote..
With this method, X/Open Sockets calls are remapped by the static
Sockets functions in <sys/socket.h> to an alternative set of X/Open
Sockets functions in C library. This alternative set has a prefix
_xpg_ in its function names, for example, _xpg_getsockopt().
Because the alternative set has different function names, X/Open
Sockets calls are not confused with BSD Sockets calls at link time.
endofquote