Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX 11i Version 2 May 2005 Release Notes: HP 9000 Servers, HP Integrity Servers, and HP Workstations > Chapter 10 Libraries and Programming

Portability Package

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

The HP-UX 11i v2 Portability Package, version B.11.23.0505, makes migration from Tru64 UNIX and Sun Microsystems Solaris easier by delivering select Tru64 UNIX Application Programming Interfaces (APIs), as well as enhancements to existing APIs, into HP-UX 11i v2.

This product (bundle name PortPkg) is available on Software Pack (SPK) for HP-UX 11i v2 May 2005. (For more information about SPK, see “Software Pack (Optional HP-UX 11i v2 Core Enhancements)”.)

Summary of Change

The Portability Package consists of the following:

  • The LibcExt product, which provides a new set of APIs, manpages, and header files. The APIs are flock(), memcntl(), mvalid(), setenv(), unsetenv(), setlinebuf(), seteuid(), setegid(). More information about these APIs can be found in the respective manpages after installation.

  • Patch for shared mmap of /dev/zero: HP-UX 11i v2 used to support only private mmap() of /dev/zero. This patch adds support for shared mappings.

    Previously in HP-UX 11i a shared mmap() of /dev/zero would fail with EINVAL, as documented. Applications ported from other operating systems had to replace shared mmap() call to /dev/zero to MAP_ANONYMOUS. With this patch, applications already ported using MAP_ANONYMOUS will continue to work as expected. For new applications being ported that include a shared mmap() call to /dev/zero, they no longer have to change their sources.

  • Patch to provide the previously unavailable getdtablesize(2) manpage (/usr/share/man/man2.Z/getdtablesize.2).

  • Patch to update the mkdir(2) manpage (/usr/share/man/man2.Z/mkdir.2) to include changes for the ENAMETOOLONG return value returned by the mkdir(2) system call.

Impact

  • The LibcExt product will aid in migration from Tru64 UNIX and Sun Microsystems Solaris.

  • Shared mmap() of /dev/zero will succeed and behave as a shared MAP_ANONYMOUS object. This will help you to port your applications to HP-UX and maintain source compatibility.

  • The getdtablesize(2) manpage provides information about the getdtablesize command.

  • The mkdir(2) manpage is more up to date.

Compatibility

If you choose to load only the May 2005 version of this feature, without doing a complete update to the May 2005 version of HP-UX 11i v2, you must first load the September 2004 version of HP-UX 11i v2.

Performance

There are no known performance issues.

Documentation

For further information, see the following manpages:

In addition, the manpages for LibcExt are included as part of the product. You can view these manpages by using the man command with any of the following API names as the argument:

Obsolescence

The LibcExt product will not be released or supported for HP-UX 11i v3. However, the contents of this product will be fully integrated as part of C Library (libc). The new header files and the library will be disabled in future releases of HP-UX. However, a zero byte file for libcext.* will be delivered on HP-UX 11i v3 and then will be discontinued in future releases.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2005 Hewlett-Packard Development Company, L.P.