HP-UX Reference (11i v1 05/09) - 5 Miscellaneous Topics (vol 9)

l
libcres.a(5) libcres.a(5)
NAME
libcres.a - a subset of functions from libc.a
DESCRIPTION
The libcres.a library is an archive library that has functions that do not call other functions or they do
not use shared data. The intent of this library is to provide a static link for API’s that are performance criti-
cal applications. Linking statically with
libc is not a supported method of linking an application. Any
performance improvement is highly dependent on the application’s use of the included functions. It is
recommended that the application performance be measured before deciding on this link method.
The
libcres.a library can be linked with an application with the use of the
-l:libcres.a syntax as
documented in
ld (see ld(1)).
The contents of this library, as listed below, can and may change in future releases or patches. If a function
is removed from this library, applications that are currently linked will not be affected and when re-linked,
they will get the affected function from
libc.sl. If a new function is added to libcres.a, currently
linked applications will not be affected. However, the application will bind the new function from
libcres.a instead of the same function in
libc.sl.
The current interfaces in
libcres.a are listed below:
abs(), bsearch(), div(), ffs(), insque(), labs(), ldiv(), memchr(), memcmp()
,
memcpy(), memmove(), memset(), strcat(), strchr(), strcmp(), strcpy(),
strcspn(), strlen(), strncat() , strncmp() , strncpy() , strrchr(), strspn(),
strstr(), swab().
WARNINGS
The above functions can not be overridden with a user-defined function of the same name (as is the case
today with libc names). The user must refrain from using these names or unexpected results may occur.
SEE ALSO
HP-UX Linker and Libraries User’s Guide
The +help option in the ld command starts the help window, HP-UX Linker and
Libraries Online User Guide (see ld(1)).
System Tools:
chatr(1) change program’s internal attributes
fastbind(1) invoke the fastbind tool
ld(1) invoke the link editor
HP-UX 11i Version 1: September 2005 1 Hewlett-Packard Company Section 583