HP-UX 11i March 2002 Release Notes

Programming
Libraries
Chapter 13
213
NOTE The 32-bit HP-PA 1.1 shared library (/usr/lib/libJudy.sl) is provided for
compatibility only. For best performance on 32-bit machines, use the HP-PA 2.0 shared
library (/usr/lib/pa20_32/libJudy.sl).
Documentation
For more information about the Judy technology, refer to the Judy (3x) manpages
(installed with the product) or visit the Judy web site at http://www.hp.com/go/judy.
Changes to libc
Large Files Support for C++ Applications
To support large files for C++ applications, libc has been modified. C++ applications
can now access files greater than 2 GB. This is done by setting _FILE_OFFSET_BITS
to 64 in 32-bit mode. More details can be found in the HP-UX Large Files White Paper
Version 1.4 on http://docs.hp.com.
HP CxDL Development Tool Support
In both 64-bit and 32-bit libc, support for HP CxDL Development tool has
been included in the setjmp() and longjmp() family of APIs.
libdbm and libndbm
A new patch for the dbm libraries, libdbm (1) and libndbm (2), has been created to
increase performance of dbm_nextkey().
Header Files
Header files, ftw.h and stdio.h, were patched to enable C++ large files support. In
addition, numerous defects were fixed.
New Environment Variables for malloc()
To make them thread-safe,libc uses a single lock in the malloc() routines. In a
multi-threaded application, there could be contention on this single lock if multiple
threads are calling malloc and free at the same time. This patch provides multiple
arenas (from where malloc() can allocate space) and a lock for each arena. Threads
are distributed among the arenas. Two new environment variables are introduced:
_M_ARENA_OPTS
_M_SBA_OPTS
These can be used to tune the number of arenas and the arena expansion factor for
HP-PA 2.0 archive none /usr/lib/pa20_64/libJudy.a
shared /usr/lib/pa20_32/libJudy.sl /usr.lib/pa20_64/libJudy.sl
Hardware
Architecture
Type Location on system (from root)
32-bit 64-bit