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
36 .Nd introduction to the C libraries
43 This section provides an overview of the C
44 library functions, their error returns and other
45 common definitions and concepts.
46 Most of these functions are available from the C library,
48 Other libraries, such as the math library,
50 must be indicated at compile time with the
52 option of the compiler.
54 The various libraries (followed by the loader flag):
55 .Bl -tag -width "libbluetooth (-lbluetooth)"
56 .It Em libbluetooth Pq Fl l Ns Ar bluetooth
57 The bluetooth library.
60 .It Em libc Pq Fl l Ns Ar c
61 Standard C library functions.
62 When using the C compiler
65 to supply the loader flag
68 There are several `libraries' or groups of functions included inside of
70 .Bl -tag -width "XXXXXX"
71 .It standard I/O routines
83 .It character tests and character operators
84 .It storage allocation
87 .It regular-expressions
90 .It remote procedure calls (RPC)
100 .It Em libcalendar Pq Fl l Ns Ar calendar
101 The calendar arithmetic library.
104 .It Em libcam Pq Fl l Ns Ar cam
105 The common access method user library.
108 .It Em libcrypt Pq Fl l Ns Ar crypt
112 .It Em libcurses Pq Fl l Ns Ar curses Fl l Ns Ar termcap
113 Terminal independent screen management routines
114 for two dimensional non-bitmap display terminals.
117 .It Em libcuse Pq Fl l Ns Ar cuse
118 The userland character device library.
121 .It Em libcompat Pq Fl l Ns Ar compat
122 Functions which are obsolete but are available for compatibility with
125 a number of system call interfaces provided in previous releases of
127 have been included for source code compatibility.
128 Use of these routines should, for the most part, be avoided.
129 The manual page entry for each compatibility routine
130 indicates the proper interface to use.
131 .It Em libdevinfo Pq Fl l Ns Ar devinfo
132 The Device and Resource Information Utility library.
135 .It Em libdevstat Pq Fl l Ns Ar devstat
136 The Device Statistics library.
139 .It Em libdwarf Pq Fl l Ns Ar dwarf
140 The DWARF access library.
143 .It Em libelf Pq Fl l Ns Ar elf
144 The ELF access library.
147 .It Em libfetch Pq Fl l Ns Ar fetch
148 The file transfer library.
151 .It Em libfigpar Pq Fl l Ns Ar figpar
152 The configuration file parsing library.
155 .It Em libgpio Pq Fl l Ns Ar gpio
156 The general-purpose input output library (GPIO).
159 .It Em libgssapi Pq Fl l Ns Ar gssapi
160 The generic security service application programming
164 .It Em libjail Pq Fl l Ns Ar jail
168 .It Em libkvm Pq Fl l Ns Ar kvm
169 Functions used to access kernel memory are in this library.
171 against both a running system and a crash dump.
174 .It Em libl Pq Fl l Ns Ar l
177 .It Em libm Pq Fl l Ns Ar m
181 .It Em libmd Pq Fl l Ns Ar md
182 The message digest library.
191 .It Em libmp Pq Fl l Ns Ar mp
192 .It Em libpam Pq Fl l Ns Ar pam
193 The pluggable authentication module library.
196 .It Em libpcap Pq Fl l Ns Ar pcap
197 The packet capture library.
200 .It Em libpmc Pq Fl l Ns Ar pmc
201 The performance counters library.
204 .It Em libpthread Pq Fl l Ns Ar pthread
205 The POSIX threads library.
208 .It Em libsysdecode Pq Fl l Ns Ar sysdecode
209 The system argument decoding library.
212 .It Em libtermcap Pq Fl l Ns Ar termcap
213 The terminal independent operation library package.
216 .It Em libusb Pq Fl l Ns Ar usb
217 The USB access library.
220 .It Em libvgl Pq Fl l Ns Ar vgl
221 The video graphics library.
224 .It Em liby Pq Fl l Ns Ar y
227 .It Em libz Pq Fl l Ns Ar z
228 The general-purpose data compression library.
233 .Bl -tag -width /usr/lib/libm_p.a -compact
234 .It Pa /usr/lib/libc.a
236 .It Pa /usr/lib/libc_p.a
237 the C library compiled for profiling
238 .It Pa /usr/lib/libm.a
240 .It Pa /usr/lib/libm_p.a
241 the math library compiled for profiling