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. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by the University of
15 .\" California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" @(#)intro.3 8.1 (Berkeley) 6/5/93
33 .\" $FreeBSD: src/share/man/man3/intro.3,v 1.9.2.4 2001/08/17 13:08:36 ru Exp $
34 .\" $DragonFly: src/share/man/man3/intro.3,v 1.3 2006/11/17 23:01:21 swildner Exp $
41 .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,
50 Other libraries, such as the math library,
52 must be indicated at compile time with the
54 option of the compiler.
57 .\" .Em libc functions
58 .\" are available from Fortran;
59 .\" they are described separately in
62 The various libraries (followed by the loader flag):
63 .Bl -tag -width ".Em libc Pq Fl l Ns Ar c"
64 .It Em libc Pq Fl l Ns Ar c
65 Standard C library functions.
68 When using the C compiler
71 to supply the loader flag
74 There are several `libraries' or groups of functions included inside of
82 character tests and character operators,
83 des encryption routines,
84 storage allocation, time functions, signal handling and more.
85 .It Em libcurses Pq Fl l Ns Ar curses Fl l Ns Ar termcap
86 Terminal independent screen management routines
87 for two dimensional non-bitmap display terminals.
90 .It Em libcompat Pq Fl l Ns Ar compat
91 Functions which are obsolete but are available for compatibility with
94 a number of system call interfaces provided in previous releases of
96 have been included for source code compatibility.
97 Use of these routines should, for the most part, be avoided.
98 The manual page entry for each compatibility routine
99 indicates the proper interface to use.
100 .It Em libkvm Pq Fl l Ns Ar kvm
101 Functions used to access kernel memory are in this library. They can be used
102 against both a running system and a crash dump.
105 .It Em libl Pq Fl l Ns Ar l
109 .It Em libm Pq Fl l Ns Ar m
112 The math library is loaded as needed by the Pascal compiler,
114 but not by the C compiler which requires the
119 .It Em libmp Pq Fl l Ns Ar mp
121 .\" Old math library.
122 .\" .It Em libplot Pq Fl l Ns Ar plot
123 .\" Device independent plotting functions.
126 .\" .It Em libplotf77 Pq Fl l Ns Ar plotf77
127 .\" The device independent plotting functions for fortran.
130 .\" .It Em libresolv Pq Fl l Ns Ar resolv
131 .\" Routines for network address resolution.
132 .It Em libtermcap Pq Fl l Ns Ar termcap
133 The terminal independent operation library package.
137 .It Em liby Pq Fl l Ns Ar y
142 .Bl -tag -width /usr/lib/libm_p.a -compact
143 .It Pa /usr/lib/libc.a
145 .It Pa /usr/lib/libc_p.a
146 the C library compiled for profiling
147 .It Pa /usr/lib/libm.a
149 .It Pa /usr/lib/libm_p.a
150 the math library compiled for profiling
160 .\" .Sh LIST OF FUNCTIONS
161 .\" .Bl -column "strncasecmpxxx" "system"
162 .\" .Sy Name Description