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,
libc. Other libraries, such as the math library,
libm, must be indicated at compile time with the
-l option of the compiler.
The various system libraries supplied in
NetBSD (followed by the linker flags) are:
libasn1 (-lasn1)
The abstract syntax notation (ASN) library provides routines for the specification of abstract data types.
libbz2 (-lbz2)
Block-sorting compressor library providing routines for fast and efficient compression.
libc (-lc)
The standard C library. When using the C compiler
cc(1), it is not necessary to supply the linker flag
-lc for these functions. There are several subsystems included inside
libc:
character tests and character operators
encryption and hash routines
libcdk (-lcdk)
Curses development kit (CDK) library. See
cdk(3).
libcom_err (-lcom_err)
The common error description library. See
com_err(3).
libcompat (-lcompat)
Functions which are obsolete but are available for compatibility with 4.3BSD. In particular, a number of system call interfaces provided in previous releases of BSD have been included for source code compatibility. Use of these routines should, for the most part, be avoided. The manual page entry for each compatibility routine indicates the proper interface to use.
libcrypto (-lcrypto)
The OpenSSL cryptographic library. See
crypto(3).
libcrypto_idea (-lcrypto_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.
libcrypto_rc5 (-lcrypto_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.
libcurses (-lcurses -ltermcap)
Terminal independent screen management routines for two dimensional non-bitmap display terminals. See
curses(3).
libdes (-ldes)
The OpenSSL cryptographic library for the DES algorithms. See
des(3).
libedit (-ledit)
The command-line editor or editline library. The editline library provides generic editing and history functions. See
editline(3).
libform (-lform)
The curses form library provides a terminal-independent form system using the curses library. The form library provides facilities for defining forms on terminals. See
forms(3).
libgssapi (-lgssapi)
The Generic Security Services (GSS) API library. This library provides verification services to applications and usually sits above the cryptographic libraries.
libhesiod (-lhesiod)
The Hesiod library. This library provides routines for performing lookups of Hesiod information, which is stored as text records in the Domain Name Service. See
hesiod(3).
libhdb (-lhdb)
The Heimdal Kerberos 5 authentication/authorisation database access library.
libintl (-lintl)
The internationalized message handling library. See
gettext(3).
libkadm (-lkadm)
The Kerberos IV administration server and client library.
libkadm5clnt (-lkadm5clnt)
The Kerberos 5 administration client library.
libkadm5srv (-lkadm5srv)
The Kerberos 5 administration server library.
libkafs (-lkafs)
The Kerberos IV AFS library. See
kafs(3).
libkdb (-lkdb)
The Kerberos IV authentication/authorisation database access library.
libkrb (-lkrb)
The Kerberos IV library.
libkrb5 (-lkrb5)
The Kerberos 5 library. See
krb5(3).
libkstream (-lkstream)
Kerberos IV encrypted stream library.
libkvm (-lkvm)
Kernel data access library. See
kvm(3).
libpcap (-lpcap)
The packet capture library. See
pcap(3).
libpci (-lpci)
The PCI bus access library. See
pci(3).
libposix (-lposix)
The POSIX compatibility library provides a compatibility interface for POSIX functions which differ from the standard BSD interfaces. See
chown(2) and
rename(2).
libresolv (-lresolv)
The DNS resolver library.
libroken (-lroken)
A library containing compatibility functions used by Kerberos. It implements functionality required by the Kerberos implementation not implemented in the standard NetBSD libraries.
librpcsvc (-lrpcsvc)
The Remote Procedure Call (RPC) services library. See
rpc(3).
libskey (-lskey)
The S/Key one-time password library. See
skey(3).
libssl (-lssl)
The secure sockets layer (SSL) library. See
ssl(3).
libtelnet (-ltelnet)
The telnet library.
libtermcap (-ltermcap)
The terminal-independent operation library. See
termcap(3).
libusb (-lusb)
The Universal Serial Bus (USB) access library.
libutil (-lutil)
The system utilities library. See
util(3).
libz (-lz)
General-purpose compression library.