2011-02-08 12:35:32 +03:00
|
|
|
.\" $NetBSD: intro.3,v 1.25 2011/02/08 09:35:32 wiz Exp $
|
1994-11-30 18:24:27 +03:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1980, 1991, 1993
|
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
1993-03-21 12:45:37 +03:00
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
2003-08-07 14:30:41 +04:00
|
|
|
.\" 3. Neither the name of the University nor the names of its contributors
|
1993-03-21 12:45:37 +03:00
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1994-11-30 18:24:27 +03:00
|
|
|
.\" @(#)intro.3 8.1 (Berkeley) 6/5/93
|
1993-03-21 12:45:37 +03:00
|
|
|
.\"
|
2011-02-08 12:35:32 +03:00
|
|
|
.Dd February 8, 2011
|
1993-03-21 12:45:37 +03:00
|
|
|
.Dt INTRO 3
|
1999-03-15 11:22:20 +03:00
|
|
|
.Os
|
1993-03-21 12:45:37 +03:00
|
|
|
.Sh NAME
|
|
|
|
.Nm intro
|
2001-11-06 03:06:21 +03:00
|
|
|
.Nd introduction to the system libraries
|
1993-03-21 12:45:37 +03:00
|
|
|
.Sh DESCRIPTION
|
2001-11-06 03:06:21 +03:00
|
|
|
This section provides an overview of the system libraries, their
|
|
|
|
functions, error returns and other common definitions and concepts.
|
|
|
|
Most of these functions are available from the standard C library,
|
1995-05-11 02:46:24 +04:00
|
|
|
.Em libc .
|
1993-03-21 12:45:37 +03:00
|
|
|
Other libraries, such as the math library,
|
|
|
|
.Em libm ,
|
|
|
|
must be indicated at compile time with the
|
|
|
|
.Fl l
|
|
|
|
option of the compiler.
|
1995-05-11 02:46:24 +04:00
|
|
|
.\" .Pp
|
|
|
|
.\" A subset of the
|
|
|
|
.\" .Xr libc functions
|
|
|
|
.\" are available from Fortran;
|
|
|
|
.\" they are described separately in
|
|
|
|
.\" .Xr intro 3f .
|
1993-03-21 12:45:37 +03:00
|
|
|
.Pp
|
2001-11-06 03:06:21 +03:00
|
|
|
The various system libraries supplied in
|
|
|
|
.Nx
|
|
|
|
(followed by the linker flags) are:
|
1993-03-21 12:45:37 +03:00
|
|
|
.Bl -tag -width "libc (-lc)"
|
2001-11-06 03:06:21 +03:00
|
|
|
.It Em libasn1 Pq Fl l Ns Ar asn1
|
|
|
|
The abstract syntax notation (ASN) library provides routines for the
|
|
|
|
specification of abstract data types.
|
|
|
|
.It Em libbz2 Pq Fl l Ns Ar bz2
|
|
|
|
Block-sorting compressor library providing routines for fast and
|
|
|
|
efficient compression.
|
1998-04-29 14:06:40 +04:00
|
|
|
.It Em libc Pq Fl l Ns Ar c
|
2011-02-08 12:35:32 +03:00
|
|
|
The standard C library.
|
|
|
|
When using the C compiler
|
1993-03-21 12:45:37 +03:00
|
|
|
.Xr cc 1 ,
|
2001-11-06 03:06:21 +03:00
|
|
|
it is not necessary to supply the linker flag
|
1993-03-21 12:45:37 +03:00
|
|
|
.Fl l Ns Ar c
|
2011-02-08 12:35:32 +03:00
|
|
|
for these functions.
|
|
|
|
There are several subsystems included inside
|
1998-04-29 14:06:40 +04:00
|
|
|
.Em libc :
|
2001-11-06 03:06:21 +03:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width "XXXXXX"
|
|
|
|
.It standard I/O routines
|
|
|
|
see
|
|
|
|
.Xr stdio 3
|
|
|
|
.It database routines
|
|
|
|
see
|
|
|
|
.Xr db 3
|
|
|
|
.It bit operators
|
|
|
|
see
|
2004-10-16 10:01:52 +04:00
|
|
|
.Xr bitstring 3
|
2001-11-06 03:06:21 +03:00
|
|
|
.It string operators
|
|
|
|
see
|
|
|
|
.Xr string 3
|
|
|
|
.It character tests and character operators
|
|
|
|
.It Tn encryption and hash routines
|
|
|
|
see
|
|
|
|
.Xr md4 3
|
|
|
|
and
|
|
|
|
.Xr md5 3 .
|
|
|
|
.It storage allocation
|
|
|
|
see
|
|
|
|
.Xr mpool 3
|
|
|
|
and
|
|
|
|
.Xr malloc 3
|
|
|
|
.It time functions
|
|
|
|
see
|
|
|
|
.Xr time 3
|
|
|
|
.It signal handling
|
|
|
|
see
|
|
|
|
.Xr signal 3
|
|
|
|
.El
|
|
|
|
.It Em libcom_err Pq Fl l Ns Ar com_err
|
2011-02-08 12:35:32 +03:00
|
|
|
The common error description library.
|
|
|
|
See
|
2001-11-21 08:45:10 +03:00
|
|
|
.Xr com_err 3 .
|
2001-11-06 03:06:21 +03:00
|
|
|
.It Em libcompat Pq Fl l Ns Ar compat
|
|
|
|
Functions which are obsolete but are available for compatibility with
|
|
|
|
.Bx 4.3 .
|
|
|
|
In particular, a number of system call interfaces provided in previous
|
|
|
|
releases of
|
|
|
|
.Bx
|
2011-02-08 12:35:32 +03:00
|
|
|
have been included for source code compatibility.
|
|
|
|
Use of these routines should, for the most part, be avoided.
|
|
|
|
The manual page entry
|
2001-11-06 03:06:21 +03:00
|
|
|
for each compatibility routine indicates the proper interface to use.
|
|
|
|
.It Em libcrypt Pq Fl l Ns Ar crypt
|
2011-02-08 12:35:32 +03:00
|
|
|
The crypt library.
|
|
|
|
See
|
2001-11-06 03:06:21 +03:00
|
|
|
.Xr crypt 3 .
|
|
|
|
.It Em libcrypto Pq Fl l Ns Ar crypto
|
2011-02-08 12:35:32 +03:00
|
|
|
The OpenSSL cryptographic library.
|
|
|
|
See
|
2001-11-06 03:06:21 +03:00
|
|
|
.Xr crypto 3 .
|
|
|
|
.It Em libcrypto_idea Pq Fl l Ns Ar crypto_idea
|
|
|
|
The OpenSSL cryptographic library routines for the IDEA algorithm.
|
|
|
|
This algorithm is separated from libcrypto since the IDEA algorithm is
|
|
|
|
protected by patents and its use is restricted.
|
|
|
|
.It Em libcrypto_rc5 Pq Fl l Ns Ar crypto_rc5
|
|
|
|
The OpenSSL cryptographic library routines for the RC5 algorithm.
|
|
|
|
This algorithm is separated from libcrypto since the RC5 algorithm is
|
|
|
|
protected by patents and its use is restricted.
|
2009-03-11 02:42:45 +03:00
|
|
|
.It Em libcurses Pq Fl l Ns Ar curses Fl l Ns Ar termcap
|
1993-03-21 12:45:37 +03:00
|
|
|
Terminal independent screen management routines
|
2011-02-08 12:35:32 +03:00
|
|
|
for two dimensional non-bitmap display terminals.
|
|
|
|
See
|
2001-11-06 03:06:21 +03:00
|
|
|
.Xr curses 3 .
|
|
|
|
.It Em libdes Pq Fl l Ns Ar des
|
2011-02-08 12:35:32 +03:00
|
|
|
The OpenSSL cryptographic library for the DES algorithms.
|
|
|
|
See
|
2001-11-06 03:06:21 +03:00
|
|
|
.Xr des 3 .
|
2011-02-08 06:20:13 +03:00
|
|
|
.It Em libdm Pq Fl l Ns Ar dm
|
|
|
|
The device-mapper driver access library used for communication with
|
|
|
|
kernel driver
|
|
|
|
.Xr dm 4
|
|
|
|
and for
|
|
|
|
.Xr lvm 8
|
|
|
|
subsystem.
|
2001-11-06 03:06:21 +03:00
|
|
|
.It Em libedit Pq Fl l Ns Ar edit
|
2011-02-08 12:35:32 +03:00
|
|
|
The command-line editor or editline library.
|
|
|
|
The editline library provides generic editing and history functions.
|
|
|
|
See
|
2001-11-06 03:06:21 +03:00
|
|
|
.Xr editline 3 .
|
|
|
|
.It Em libform Pq Fl l Ns Ar form
|
2001-11-23 10:45:54 +03:00
|
|
|
The curses form library provides a terminal-independent form system
|
2011-02-08 12:35:32 +03:00
|
|
|
using the curses library.
|
|
|
|
The form library provides facilities for defining forms on terminals.
|
|
|
|
See
|
2001-11-06 03:06:21 +03:00
|
|
|
.Xr forms 3 .
|
|
|
|
.It Em libgssapi Pq Fl l Ns Ar gssapi
|
2011-02-08 12:35:32 +03:00
|
|
|
The Generic Security Services (GSS) API library.
|
|
|
|
This library provides
|
2001-11-06 03:06:21 +03:00
|
|
|
verification services to applications and usually sits above the
|
|
|
|
cryptographic libraries.
|
|
|
|
.It Em libhesiod Pq Fl l Ns Ar hesiod
|
2011-02-08 12:35:32 +03:00
|
|
|
The Hesiod library.
|
|
|
|
This library provides routines for performing
|
2001-11-23 10:45:54 +03:00
|
|
|
lookups of Hesiod information, which is stored as text records in the
|
2011-02-08 12:35:32 +03:00
|
|
|
Domain Name Service.
|
|
|
|
See
|
2001-11-06 03:06:21 +03:00
|
|
|
.Xr hesiod 3 .
|
|
|
|
.It Em libhdb Pq Fl l Ns Ar hdb
|
2001-11-23 10:45:54 +03:00
|
|
|
The Heimdal Kerberos 5 authentication/authorisation database access
|
|
|
|
library.
|
2001-11-06 03:06:21 +03:00
|
|
|
.It Em libintl Pq Fl l Ns Ar intl
|
2011-02-08 12:35:32 +03:00
|
|
|
The internationalized message handling library.
|
|
|
|
See
|
2001-11-06 03:06:21 +03:00
|
|
|
.Xr gettext 3 .
|
|
|
|
.It Em libipsec Pq Fl l Ns Ar ipsec
|
2011-02-08 12:35:32 +03:00
|
|
|
The IPsec policy control library.
|
|
|
|
See
|
2001-11-06 03:06:21 +03:00
|
|
|
.Xr ipsec_set_policy 3
|
|
|
|
and
|
|
|
|
.Xr ipsec_strerror 3 .
|
|
|
|
.It Em libkadm Pq Fl l Ns Ar kadm
|
2001-11-23 10:45:54 +03:00
|
|
|
The Kerberos IV administration server and client library.
|
2001-11-06 03:06:21 +03:00
|
|
|
.It Em libkadm5clnt Pq Fl l Ns Ar kadm5clnt
|
|
|
|
The Kerberos 5 administration client library.
|
|
|
|
.It Em libkadm5srv Pq Fl l Ns Ar kadm5srv
|
|
|
|
The Kerberos 5 administration server library.
|
|
|
|
.It Em libkafs Pq Fl l Ns Ar kafs
|
2011-02-08 12:35:32 +03:00
|
|
|
The Kerberos IV AFS library.
|
|
|
|
See
|
2001-11-23 10:45:54 +03:00
|
|
|
.Xr kafs 3 .
|
2001-11-06 03:06:21 +03:00
|
|
|
.It Em libkdb Pq Fl l Ns Ar kdb
|
2001-11-23 10:45:54 +03:00
|
|
|
The Kerberos IV authentication/authorisation database access library.
|
2001-11-06 03:06:21 +03:00
|
|
|
.It Em libkrb Pq Fl l Ns Ar krb
|
2001-11-23 10:45:54 +03:00
|
|
|
The Kerberos IV library.
|
2001-11-06 03:06:21 +03:00
|
|
|
.It Em libkrb5 Pq Fl l Ns Ar krb5
|
2011-02-08 12:35:32 +03:00
|
|
|
The Kerberos 5 library.
|
|
|
|
See
|
2001-11-08 22:52:51 +03:00
|
|
|
.Xr krb5 3 .
|
2001-11-06 03:06:21 +03:00
|
|
|
.It Em libkstream Pq Fl l Ns Ar kstream
|
2001-11-23 10:45:54 +03:00
|
|
|
Kerberos IV encrypted stream library.
|
2001-11-06 03:06:21 +03:00
|
|
|
.It Em libkvm Pq Fl l Ns Ar kvm
|
2011-02-08 12:35:32 +03:00
|
|
|
Kernel data access library.
|
|
|
|
See
|
2001-11-06 03:06:21 +03:00
|
|
|
.Xr kvm 3 .
|
1998-04-29 14:06:40 +04:00
|
|
|
.It Em libl Pq Fl l Ns Ar l
|
1993-03-21 12:45:37 +03:00
|
|
|
The library for
|
|
|
|
.Xr lex 1 .
|
1998-04-29 14:06:40 +04:00
|
|
|
.It Em libm Pq Fl l Ns Ar m
|
2011-02-08 12:35:32 +03:00
|
|
|
The math library.
|
|
|
|
See
|
2001-11-06 03:06:21 +03:00
|
|
|
.Xr math 3 .
|
1995-05-11 02:46:24 +04:00
|
|
|
.\" The math library is loaded as needed by the Pascal compiler
|
|
|
|
.\" .Xr pc 1 ,
|
|
|
|
.\" but not by the C compiler which requires the
|
|
|
|
.\" .Fl l Ns Ar m
|
1998-04-29 14:06:40 +04:00
|
|
|
.\" flag (see
|
|
|
|
.\" .Xr math 3 ) .
|
|
|
|
.\" .It Em libmp Pq Fl l Ns Ar mp
|
|
|
|
.\" .It Em libom
|
1993-03-21 12:45:37 +03:00
|
|
|
.\" Old math library.
|
1998-04-29 14:06:40 +04:00
|
|
|
.\" .It Em libplot Pq Fl l Ns Ar plot
|
|
|
|
.\" Device independent plotting functions (see
|
|
|
|
.\" .Xr plot 3 ) .
|
|
|
|
.\" .It Em libplotf77 Pq Fl l Ns Ar plotf77
|
2011-02-08 12:35:32 +03:00
|
|
|
.\" The device independent plotting functions for fortran (see
|
1998-04-29 14:06:40 +04:00
|
|
|
.\" .Xr plot 3 ) .
|
|
|
|
.\" .It Em libresolv Pq Fl l Ns Ar resolv
|
1993-03-21 12:45:37 +03:00
|
|
|
.\" Routines for network address resolution.
|
2001-11-06 03:06:21 +03:00
|
|
|
.It Em libmenu Pq Fl l Ns Ar menu
|
2011-02-08 12:35:32 +03:00
|
|
|
The curses menu library.
|
|
|
|
See
|
2001-11-06 03:06:21 +03:00
|
|
|
.Xr menus 3 .
|
|
|
|
.It Em libpcap Pq Fl l Ns Ar pcap
|
2011-02-08 12:35:32 +03:00
|
|
|
The packet capture library.
|
|
|
|
See
|
2001-11-06 03:06:21 +03:00
|
|
|
.Xr pcap 3 .
|
|
|
|
.It Em libpci Pq Fl l Ns Ar pci
|
2011-02-08 12:35:32 +03:00
|
|
|
The PCI bus access library.
|
|
|
|
See
|
2001-11-06 03:06:21 +03:00
|
|
|
.Xr pci 3 .
|
|
|
|
.It Em libposix Pq Fl l Ns Ar posix
|
2001-11-23 10:18:52 +03:00
|
|
|
The POSIX compatibility library provides a compatibility interface for
|
2011-02-08 12:35:32 +03:00
|
|
|
POSIX functions which differ from the standard BSD interfaces.
|
|
|
|
See
|
2001-11-23 10:18:52 +03:00
|
|
|
.Xr chown 2
|
|
|
|
and
|
|
|
|
.Xr rename 2 .
|
2001-11-06 03:06:21 +03:00
|
|
|
.It Em libresolv Pq Fl l Ns Ar resolv
|
|
|
|
The DNS resolver library.
|
|
|
|
.It Em librmt Pq Fl l Ns Ar rmt
|
2011-02-08 12:35:32 +03:00
|
|
|
Remote magnetic tape library.
|
|
|
|
See
|
2001-11-06 03:06:21 +03:00
|
|
|
.Xr rmtops 3 .
|
|
|
|
.It Em libroken Pq Fl l Ns Ar roken
|
2011-02-08 12:35:32 +03:00
|
|
|
A library containing compatibility functions used by Kerberos.
|
|
|
|
It implements functionality required by the Kerberos implementation not
|
2001-11-06 03:06:21 +03:00
|
|
|
implemented in the standard
|
|
|
|
.Nx
|
|
|
|
libraries.
|
|
|
|
.It Em librpcsvc Pq Fl l Ns Ar rpcsvc
|
2011-02-08 12:35:32 +03:00
|
|
|
The Remote Procedure Call (RPC) services library.
|
|
|
|
See
|
2001-11-06 03:06:21 +03:00
|
|
|
.Xr rpc 3 .
|
|
|
|
.It Em libskey Pq Fl l Ns Ar skey
|
2011-02-08 12:35:32 +03:00
|
|
|
The S/Key one-time password library.
|
|
|
|
See
|
2001-11-10 09:32:37 +03:00
|
|
|
.Xr skey 3 .
|
2001-11-06 03:06:21 +03:00
|
|
|
.It Em libsl Pq Fl l Ns Ar sl
|
|
|
|
.It Em libss Pq Fl l Ns Ar ss
|
|
|
|
.It Em libssl Pq Fl l Ns Ar ssl
|
2011-02-08 12:35:32 +03:00
|
|
|
The secure sockets layer (SSL) library.
|
|
|
|
See
|
2001-11-06 03:06:21 +03:00
|
|
|
.Xr ssl 3 .
|
|
|
|
.It Em libtelnet Pq Fl l Ns Ar telnet
|
|
|
|
The telnet library.
|
1998-04-29 14:06:40 +04:00
|
|
|
.It Em libtermcap Pq Fl l Ns Ar termcap
|
2011-02-08 12:35:32 +03:00
|
|
|
The terminal-independent operation library.
|
|
|
|
See
|
2001-11-06 03:06:21 +03:00
|
|
|
.Xr termcap 3 .
|
|
|
|
.It Em libusb Pq Fl l Ns Ar usb
|
2004-11-10 19:38:29 +03:00
|
|
|
The Universal Serial Bus (USB) access library.
|
|
|
|
.\" See
|
|
|
|
.\" .Xr usb 3 .
|
2001-11-06 03:06:21 +03:00
|
|
|
.It Em libutil Pq Fl l Ns Ar util
|
2011-02-08 12:35:32 +03:00
|
|
|
The system utilities library.
|
|
|
|
See
|
2001-11-23 09:22:24 +03:00
|
|
|
.Xr util 3 .
|
2001-11-06 03:06:21 +03:00
|
|
|
.It Em libwrap Pq Fl l Ns Ar wrap
|
2011-02-08 12:35:32 +03:00
|
|
|
The TCP wrappers library.
|
|
|
|
See
|
2004-10-16 10:01:52 +04:00
|
|
|
.Xr hosts_access 3 .
|
1998-04-29 14:06:40 +04:00
|
|
|
.It Em liby Pq Fl l Ns Ar y
|
1993-03-21 12:45:37 +03:00
|
|
|
The library for
|
|
|
|
.Xr yacc 1 .
|
2001-11-06 03:06:21 +03:00
|
|
|
.It Em libz Pq Fl l Ns Ar z
|
|
|
|
General-purpose compression library.
|
1993-03-21 12:45:37 +03:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr cc 1 ,
|
|
|
|
.Xr ld 1 ,
|
1998-08-30 09:06:11 +04:00
|
|
|
.Xr nm 1 ,
|
2001-11-06 03:06:21 +03:00
|
|
|
.Xr rtld 1 ,
|
|
|
|
.Xr intro 2
|
1993-03-21 12:45:37 +03:00
|
|
|
.Sh HISTORY
|
|
|
|
An
|
2004-10-16 10:01:52 +04:00
|
|
|
.Nm
|
1993-03-21 12:45:37 +03:00
|
|
|
manual appeared in
|
2001-11-08 22:52:51 +03:00
|
|
|
.At v7 .
|