1*49086Scael.\" Copyright (c) 1980, 1991 Regents of the University of California. 2*49086Scael.\" All rights reserved. 320397Smckusick.\" 4*49086Scael.\" %sccs.include.redist.man% 520397Smckusick.\" 6*49086Scael.\" @(#)intro.3 6.10 (Berkeley) 05/04/91 7*49086Scael.\" 8*49086Scael.Dd 9*49086Scael.Dt INTRO 3 10*49086Scael.Os BSD 4 11*49086Scael.Sh NAME 12*49086Scael.Nm intro 13*49086Scael.Nd introduction to the C libraries 14*49086Scael.Sh DESCRIPTION 15*49086ScaelThis section provides an overview of the C 16*49086Scaellibrary functions, their error returns and other 17*49086Scaelcommon definitions and concepts. 18*49086ScaelMost of these functions are available from the C library, 19*49086Scael.Em libc 20*49086Scael(see 21*49086Scael.Xr libc 3 ) . 22*49086ScaelOther libraries, such as the math library, 23*49086Scael.Em libm , 24*49086Scaelmust be indicated at compile time with the 25*49086Scael.Fl l 26*49086Scaeloption of the compiler. 27*49086Scael.Pp 28*49086ScaelA subset of the 29*49086Scael.Xr libc functions 30*49086Scaelare available from Fortran; 3128047Smckusickthey are described separately in 32*49086Scael.Xr intro 3f . 33*49086Scael.Pp 34*49086ScaelThe various libraries (followed by the loader flag): 35*49086Scael.Bl -hang -width indent 36*49086Scael.It Xr libc Pq Fl l Ns Ar c 37*49086ScaelStandard C library functions. (See 38*49086Scael.Xr libc 3 . ) When using the C compiler 39*49086Scael.Xr cc 1 , 40*49086Scaelit is not necessary 41*49086Scaelto supply the loader flag 42*49086Scael.Fl l Ns Ar c 43*49086Scaelfor these functions. 44*49086ScaelThere are several `libraries' or groups of functions included inside of 45*49086Scael.Xr libc : the standard 46*49086Scael.Tn I/O 47*49086Scaelroutines, 48*49086Scaeldatabase routines, 49*49086Scaelbit operators, 50*49086Scaelstring operators, 51*49086Scaelcharacter tests and character operators, 52*49086Scaeldes encryption routines, 53*49086Scaelstorage allocation, time functions, signal handling and more. 54*49086Scael.It Xo 55*49086Scael.Xr libcurses 56*49086Scael.Pf ( Fl l Ns Ar curses 57*49086Scael.Fl l Ns Ar termcap ) 58*49086Scael.Xc 59*49086ScaelTerminal independent screen management routines 60*49086Scaelfor two dimensional non-bitmap display terminals. 61*49086Scael(See 62*49086Scael.Xr curses 3 . ) 63*49086Scael.It Xr libcompat Pq Fl l Ns Ar compat 64*49086ScaelFunctions which are obsolete but are available for compatibility with 65*49086Scael.Bx 4.3 . 6628047SmckusickIn particular, 6720398Smckusicka number of system call interfaces provided in previous releases of 68*49086Scael.Bx 69*49086Scaelhave been included for source code compatibility. 7028047SmckusickUse of these routines should, for the most part, be avoided. 7128047SmckusickThe manual page entry for each compatibility routine 7228047Smckusickindicates the proper interface to use. 73*49086Scael.\" .It Xr libkvm 74*49086Scael.It Xr libl Pq Fl l Ns Ar l 75*49086ScaelThe library for 76*49086Scael.Xr lex 1 . 77*49086Scael.\" .It Xr libln 78*49086Scael.It Xr libm Pq Fl l Ns Ar m 79*49086ScaelThe math library, 80*49086Scael.Em libm . 8128047SmckusickThe math library is loaded as needed by the Pascal compiler 82*49086Scael.Xr pc 1 , 83*49086Scaelbut not by the C compiler which requires the 84*49086Scael.Fl l Ns Ar m 85*49086Scaelflag. 86*49086Scael(See 87*49086Scael.Xr math 3 . ) 88*49086Scael.It Xr libmp Pq Fl l Ns Ar mp 89*49086Scael.\" .It Xr libom 90*49086Scael.\" Old math library. 91*49086Scael.It Xr libplot Pq Fl l Ns Ar plot 92*49086ScaelDevice independent plotting functions. 93*49086Scael(See 94*49086Scael.Xr plot 3 . ) 95*49086Scael.It Xr libplotf77 Pq Fl l Ns Ar plotf77 96*49086ScaelThe device independent plotting functions for fortran. 97*49086Scael(See 98*49086Scael.Xr plot 3 . ) 99*49086Scael.\" .It Xr libresolv Pq Fl l Ns Ar resolv 100*49086Scael.\" Routines for network address resolution. 101*49086Scael.It Xr libtermcap Fl l Ns Ar termcap 102*49086ScaelThe terminal independent operation library package. (See 103*49086Scael.Xr termcap 3 . ) 104*49086Scael.\" .It libvt0.a 105*49086Scael.It Xr liby Pq Fl l Ns Ar y 106*49086ScaelThe library for 107*49086Scael.Xr yacc 1 . 108*49086Scael.El 109*49086Scael.Sh FILES 110*49086Scael.Bl -tag -width /usr/lib/libm_p.a -compact 111*49086Scael.It Pa /usr/lib/libc.a 112*49086Scaelthe C library 113*49086Scael.It Pa /usr/lib/libm.a 114*49086Scaelthe math library 115*49086Scael.It Pa /usr/lib/libc_p.a 116*49086Scaelthe C library compiled for profiling 117*49086Scael.It Pa /usr/lib/libm_p.a 118*49086Scaelthe math library compiled for profiling 119*49086Scael.El 120*49086Scael.Sh SEE ALSO 121*49086Scael.\" .Xr libc 3 , 122*49086Scael.Xr stdio 3 , 123*49086Scael.Xr math 3 , 124*49086Scael.Xr intro 2 , 125*49086Scael.Xr cc 1 , 126*49086Scael.Xr ld 1 , 127*49086Scael.Xr nm 1 128*49086Scael.\" .Sh LIST OF FUNCTIONS 129*49086Scael.\" .Bl -column "strncasecmpxxx" "system" 130*49086Scael.\" .Sy Name Description 131*49086Scael.\" .El 132*49086Scael.Sh HISTORY 133*49086ScaelAn 134*49086Scael.Nm intro 135*49086Scaelmanual appeared in 136*49086Scael.At v7 . 137