1 .\" Copyright (c) 1980, 1991, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. Neither the name of the University nor the names of its contributors
13 .\" may be used to endorse or promote products derived from this software
14 .\" without specific prior written permission.
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .\" @(#)intro.3 8.1 (Berkeley) 6/5/93
35 .Nd introduction to the C libraries
42 This section provides an overview of the C
43 library functions, their error returns and other
44 common definitions and concepts.
45 Most of these functions are available from the C library,
47 Other libraries, such as the math library,
49 must be indicated at compile time with the
51 option of the compiler.
53 The various libraries (followed by the loader flag):
54 .Bl -tag -width "libbluetooth"
56 .Pq Fl l Ns Ar bluetooth
57 The bluetooth library.
62 Standard C library functions.
63 When using the C compiler
66 to supply the loader flag
69 There are several `libraries' or groups of functions included inside of
71 .Bl -tag -width "XXXXXX"
72 .It standard I/O routines
84 .It character tests and character operators
85 .It storage allocation
88 .It regular-expressions
91 .It remote procedure calls (RPC)
102 .Pq Fl l Ns Ar calendar
103 The calendar arithmetic library.
108 The common access method user library.
117 .Pq Fl l Ns Ar curses Fl l Ns Ar termcap
118 Terminal independent screen management routines
119 for two dimensional non-bitmap display terminals.
124 The userland character device library.
128 .Pq Fl l Ns Ar compat
129 Functions which are obsolete but are available for compatibility with
132 a number of system call interfaces provided in previous releases of
134 have been included for source code compatibility.
135 Use of these routines should, for the most part, be avoided.
136 The manual page entry for each compatibility routine
137 indicates the proper interface to use.
139 .Pq Fl l Ns Ar devinfo
140 The Device and Resource Information Utility library.
144 .Pq Fl l Ns Ar devstat
145 The Device Statistics library.
150 The DWARF access library.
155 The ELF access library.
160 The file transfer library.
164 .Pq Fl l Ns Ar figpar
165 The configuration file parsing library.
170 The general-purpose input output library (GPIO).
174 .Pq Fl l Ns Ar gssapi
175 The generic security service application programming
186 Functions used to access kernel memory are in this library.
188 against both a running system and a crash dump.
202 The message digest library.
215 The pluggable authentication module library.
220 The packet capture library.
225 The performance counters library.
229 .Pq Fl l Ns Ar pthread
230 The POSIX threads library.
234 .Pq Fl l Ns Ar stdthreads
241 .Pq Fl l Ns Ar sysdecode
242 The system argument decoding library.
246 .Pq Fl l Ns Ar termcap
247 The terminal independent operation library package.
252 The USB access library.
257 The video graphics library.
266 The general-purpose data compression library.
271 .Bl -tag -width /usr/lib/libm_p.a -compact
272 .It Pa /usr/lib/libc.a
274 .It Pa /usr/lib/libc_p.a
275 the C library compiled for profiling
276 .It Pa /usr/lib/libm.a
278 .It Pa /usr/lib/libm_p.a
279 the math library compiled for profiling