Chapter 5 163
Creating and Using Libraries
Summary of HP-UX Libraries
(2) These functions are known as system calls. They
provide low-level access to operating system services,
such as opening files, setting up signal handlers, and
process control. These routines are located in libc.
(3C) These are standard C library routines located in libc.
(3S) These functions comprise the Standard input/output
routines (see stdio(3S)). They are located in libc.
(3M) These functions comprise the Math library. The linker
searches this library under the -lm option (for the
SVID math library) or the -lM option (for the POSIX
math library).
(3G) These functions comprise the Graphics library.
(3I) These functions comprise the Instrument support
library.
(3X) Various specialized libraries. The names of the
libraries in which these routines reside are
documented on the man page.
The routines marked by (2), (3C), and (3S) comprise the standard C
library libc. The C, C++, FORTRAN, and Pascal compilers
automatically link with this library when creating an executable
program.
For more information on these libraries, see C, A Reference Manual by
Samual P. Harbison and Guy L. Steele Jr., published in 1991 by
Prentice-Hall, or UNIX System V Libraries by Baird Peterson, published
in 1992 by Van Nostrand Reinhold, or C Programming for UNIX by John
Valley, published in 1992 by Sams Publishing. For more information on
system calls see Advanced UNIX Programming by Marc J. Rochkind,
published in 1985 by Prentice-Hall or Advanced Programming in the
UNIX Environment by W. Richard Stevens, published in 1992 by
Addison-Wesley.