1.\" $NetBSD: intro.3,v 1.33 2017/05/21 14:24:05 riastradh Exp $ 2.\" 3.\" Copyright (c) 1980, 1991, 1993 4.\" The Regents of the University of California. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 3. Neither the name of the University nor the names of its contributors 15.\" may be used to endorse or promote products derived from this software 16.\" without specific prior written permission. 17.\" 18.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 19.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 22.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28.\" SUCH DAMAGE. 29.\" 30.\" @(#)intro.3 8.1 (Berkeley) 6/5/93 31.\" 32.Dd November 22, 2015 33.Dt INTRO 3 34.Os 35.Sh NAME 36.Nm intro 37.Nd introduction to the system libraries 38.Sh DESCRIPTION 39This section provides an overview of the system libraries, their 40functions, error returns and other common definitions and concepts. 41Most of these functions are available from the standard C library, 42.Em libc . 43Other libraries, such as the math library, 44.Em libm , 45must be indicated at compile time with the 46.Fl l 47option of the compiler. 48.\" .Pp 49.\" A subset of the 50.\" .Xr libc functions 51.\" are available from Fortran; 52.\" they are described separately in 53.\" .Xr intro 3f . 54.Pp 55The various system libraries supplied in 56.Nx 57(followed by the linker flags) are: 58.Bl -tag -width "libc (-lc)" 59.It Em libasn1 Pq Fl l Ns Ar asn1 60The abstract syntax notation (ASN) library provides routines for the 61specification of abstract data types. 62.It Em libbz2 Pq Fl l Ns Ar bz2 63Block-sorting compressor library providing routines for fast and 64efficient compression. 65.It Em libc Pq Fl l Ns Ar c 66The standard C library. 67When using the C compiler 68.Xr cc 1 , 69it is not necessary to supply the linker flag 70.Fl l Ns Ar c 71for these functions. 72There are several subsystems included inside 73.Em libc : 74.Pp 75.Bl -tag -width "XXXXXX" 76.It standard I/O routines 77see 78.Xr stdio 3 79.It database routines 80see 81.Xr db 3 82.It bit operators 83see 84.Xr bitstring 3 85.It string operators 86see 87.Xr string 3 88.It character tests and character operators 89.It Tn encryption and hash routines 90see 91.Xr md4 3 92and 93.Xr md5 3 . 94.It storage allocation 95see 96.Xr mpool 3 97and 98.Xr malloc 3 99.It time functions 100see 101.Xr time 3 102.It signal handling 103see 104.Xr signal 3 105.El 106.It Em libcom_err Pq Fl l Ns Ar com_err 107The common error description library. 108See 109.Xr com_err 3 . 110.It Em libcompat Pq Fl l Ns Ar compat 111Functions which are obsolete but are available for compatibility with 112.Bx 4.3 . 113In particular, a number of system call interfaces provided in previous 114releases of 115.Bx 116have been included for source code compatibility. 117Use of these routines should, for the most part, be avoided. 118The manual page entry 119for each compatibility routine indicates the proper interface to use. 120.It Em libcrypt Pq Fl l Ns Ar crypt 121The crypt library. 122See 123.Xr crypt 3 . 124.It Em libcrypto Pq Fl l Ns Ar crypto 125The OpenSSL cryptographic library. 126See 127.Xr crypto 3 . 128.It Em libcurses Pq Fl l Ns Ar curses Fl l Ns Ar terminfo 129Terminal independent screen management routines 130for two dimensional non-bitmap display terminals. 131See 132.Xr curses 3 . 133.It Em libdes Pq Fl l Ns Ar des 134The OpenSSL cryptographic library for the DES algorithms. 135See 136.Xr des 3 . 137.It Em libdm Pq Fl l Ns Ar dm 138The device-mapper driver access library used for communication with 139kernel driver 140.Xr dm 4 141and for 142.Xr lvm 8 143subsystem. 144.It Em libedit Pq Fl l Ns Ar edit 145The command-line editor or editline library. 146The editline library provides generic editing and history functions. 147See 148.Xr editline 3 . 149.It Em libform Pq Fl l Ns Ar form 150The curses form library provides a terminal-independent form system 151using the curses library. 152The form library provides facilities for defining forms on terminals. 153See 154.Xr forms 3 . 155.It Em libgssapi Pq Fl l Ns Ar gssapi 156The Generic Security Services (GSS) API library. 157This library provides 158verification services to applications and usually sits above the 159cryptographic libraries. 160.It Em libhesiod Pq Fl l Ns Ar hesiod 161The Hesiod library. 162This library provides routines for performing 163lookups of Hesiod information, which is stored as text records in the 164Domain Name Service. 165See 166.Xr hesiod 3 . 167.It Em libhdb Pq Fl l Ns Ar hdb 168The Heimdal Kerberos 5 authentication/authorisation database access 169library. 170.It Em libintl Pq Fl l Ns Ar intl 171The internationalized message handling library. 172See 173.Xr gettext 3 . 174.It Em libipsec Pq Fl l Ns Ar ipsec 175The IPsec policy control library. 176See 177.Xr ipsec_set_policy 3 178and 179.Xr ipsec_strerror 3 . 180.It Em libkadm Pq Fl l Ns Ar kadm 181The Kerberos IV administration server and client library. 182.It Em libkadm5clnt Pq Fl l Ns Ar kadm5clnt 183The Kerberos 5 administration client library. 184.It Em libkadm5srv Pq Fl l Ns Ar kadm5srv 185The Kerberos 5 administration server library. 186.It Em libkafs Pq Fl l Ns Ar kafs 187The Kerberos IV AFS library. 188See 189.Xr kafs 3 . 190.It Em libkdb Pq Fl l Ns Ar kdb 191The Kerberos IV authentication/authorisation database access library. 192.It Em libkrb Pq Fl l Ns Ar krb 193The Kerberos IV library. 194.It Em libkrb5 Pq Fl l Ns Ar krb5 195The Kerberos 5 library. 196See 197.Xr krb5 3 . 198.It Em libkstream Pq Fl l Ns Ar kstream 199Kerberos IV encrypted stream library. 200.It Em libkvm Pq Fl l Ns Ar kvm 201Kernel data access library. 202See 203.Xr kvm 3 . 204.It Em libl Pq Fl l Ns Ar l 205The library for 206.Xr lex 1 . 207.It Em libm Pq Fl l Ns Ar m 208The math library. 209See 210.Xr math 3 . 211.\" The math library is loaded as needed by the Pascal compiler 212.\" .Xr pc 1 , 213.\" but not by the C compiler which requires the 214.\" .Fl l Ns Ar m 215.\" flag (see 216.\" .Xr math 3 ) . 217.\" .It Em libmp Pq Fl l Ns Ar mp 218.\" .It Em libom 219.\" Old math library. 220.\" .It Em libplot Pq Fl l Ns Ar plot 221.\" Device independent plotting functions (see 222.\" .Xr plot 3 ) . 223.\" .It Em libplotf77 Pq Fl l Ns Ar plotf77 224.\" The device independent plotting functions for fortran (see 225.\" .Xr plot 3 ) . 226.\" .It Em libresolv Pq Fl l Ns Ar resolv 227.\" Routines for network address resolution. 228.It Em libmenu Pq Fl l Ns Ar menu 229The curses menu library. 230See 231.Xr menus 3 . 232.It Em libpanel Pq Fl l Ns Ar panel 233The curses panel library. 234See 235.Xr panel 3 . 236.It Em libpcap Pq Fl l Ns Ar pcap 237The packet capture library. 238See 239.Xr pcap 3 . 240.It Em libpci Pq Fl l Ns Ar pci 241The PCI bus access library. 242See 243.Xr pci 3 . 244.It Em libposix Pq Fl l Ns Ar posix 245The POSIX compatibility library provides a compatibility interface for 246POSIX functions which differ from the standard BSD interfaces. 247See 248.Xr chown 2 249and 250.Xr rename 2 . 251.It Em libresolv Pq Fl l Ns Ar resolv 252The DNS resolver library. 253.It Em librmt Pq Fl l Ns Ar rmt 254Remote magnetic tape library. 255See 256.Xr rmtops 3 . 257.It Em libroken Pq Fl l Ns Ar roken 258A library containing compatibility functions used by Kerberos. 259It implements functionality required by the Kerberos implementation not 260implemented in the standard 261.Nx 262libraries. 263.It Em librpcsvc Pq Fl l Ns Ar rpcsvc 264The Remote Procedure Call (RPC) services library. 265See 266.Xr rpc 3 . 267.It Em libskey Pq Fl l Ns Ar skey 268The S/Key one-time password library. 269See 270.Xr skey 3 . 271.It Em libsl Pq Fl l Ns Ar sl 272.It Em libss Pq Fl l Ns Ar ss 273.It Em libssl Pq Fl l Ns Ar ssl 274The secure sockets layer (SSL) library. 275See 276.Xr ssl 3 . 277.It Em libtelnet Pq Fl l Ns Ar telnet 278The telnet library. 279.It Em libterminfo Pq Fl l Ns Ar terminfo 280The terminal-independent operation library. 281See 282.Xr terminfo 3 . 283.It Em libusbhid Pq Fl l Ns Ar usbhid 284The Universal Serial Bus (USB) Human Interface Devices access library. 285See 286.Xr libusbhid 3 . 287.It Em libutil Pq Fl l Ns Ar util 288The system utilities library. 289See 290.Xr util 3 . 291.It Em libwrap Pq Fl l Ns Ar wrap 292The TCP wrappers library. 293See 294.Xr hosts_access 3 . 295.It Em liby Pq Fl l Ns Ar y 296The library for 297.Xr yacc 1 . 298.It Em libz Pq Fl l Ns Ar z 299General-purpose compression library. 300See 301.Xr zlib 3 . 302.El 303.Sh SEE ALSO 304.Xr cc 1 , 305.Xr ld 1 , 306.Xr nm 1 , 307.Xr rtld 1 , 308.Xr intro 2 309.Sh HISTORY 310An 311.Nm 312manual appeared in 313.At v7 . 314