%!PS-Adobe-3.0 %%Creator: groff version 1.16.1 %%CreationDate: Sun Sep 29 13:26:03 2002 %%DocumentNeededResources: font Times-Roman %%+ font Times-Bold %%+ font Symbol %%+ font Times-Italic %%DocumentSuppliedResources: procset grops 1.16 1 %%+ font Symbol-Slanted %%Pages: 39 %%PageOrder: Ascend %%Orientation: Portrait %%EndComments %%BeginProlog %%BeginResource: procset grops 1.16 1 /setpacking where{ pop currentpacking true setpacking }if /grops 120 dict dup begin /SC 32 def /A/show load def /B{0 SC 3 -1 roll widthshow}bind def /C{0 exch ashow}bind def /D{0 exch 0 SC 5 2 roll awidthshow}bind def /E{0 rmoveto show}bind def /F{0 rmoveto 0 SC 3 -1 roll widthshow}bind def /G{0 rmoveto 0 exch ashow}bind def /H{0 rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def /I{0 exch rmoveto show}bind def /J{0 exch rmoveto 0 SC 3 -1 roll widthshow}bind def /K{0 exch rmoveto 0 exch ashow}bind def /L{0 exch rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def /M{rmoveto show}bind def /N{rmoveto 0 SC 3 -1 roll widthshow}bind def /O{rmoveto 0 exch ashow}bind def /P{rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def /Q{moveto show}bind def /R{moveto 0 SC 3 -1 roll widthshow}bind def /S{moveto 0 exch ashow}bind def /T{moveto 0 exch 0 SC 5 2 roll awidthshow}bind def /SF{ findfont exch [exch dup 0 exch 0 exch neg 0 0]makefont dup setfont [exch/setfont cvx]cvx bind def }bind def /MF{ findfont [5 2 roll 0 3 1 roll neg 0 0]makefont dup setfont [exch/setfont cvx]cvx bind def }bind def /level0 0 def /RES 0 def /PL 0 def /LS 0 def /MANUAL{ statusdict begin/manualfeed true store end }bind def /PLG{ gsave newpath clippath pathbbox grestore exch pop add exch pop }bind def /BP{ /level0 save def 1 setlinecap 1 setlinejoin 72 RES div dup scale LS{ 90 rotate }{ 0 PL translate }ifelse 1 -1 scale }bind def /EP{ level0 restore showpage }bind def /DA{ newpath arcn stroke }bind def /SN{ transform .25 sub exch .25 sub exch round .25 add exch round .25 add exch itransform }bind def /DL{ SN moveto SN lineto stroke }bind def /DC{ newpath 0 360 arc closepath }bind def /TM matrix def /DE{ TM currentmatrix pop translate scale newpath 0 0 .5 0 360 arc closepath TM setmatrix }bind def /RC/rcurveto load def /RL/rlineto load def /ST/stroke load def /MT/moveto load def /CL/closepath load def /FL{ currentgray exch setgray fill setgray }bind def /BL/fill load def /LW/setlinewidth load def /RE{ findfont dup maxlength 1 index/FontName known not{1 add}if dict begin { 1 index/FID ne{def}{pop pop}ifelse }forall /Encoding exch def dup/FontName exch def currentdict end definefont pop }bind def /DEFS 0 def /EBEGIN{ moveto DEFS begin }bind def /EEND/end load def /CNT 0 def /level1 0 def /PBEGIN{ /level1 save def translate div 3 1 roll div exch scale neg exch neg exch translate 0 setgray 0 setlinecap 1 setlinewidth 0 setlinejoin 10 setmiterlimit []0 setdash /setstrokeadjust where{ pop false setstrokeadjust }if /setoverprint where{ pop false setoverprint }if newpath /CNT countdictstack def userdict begin /showpage{}def }bind def /PEND{ clear countdictstack CNT sub{end}repeat level1 restore }bind def end def /setpacking where{ pop setpacking }if %%EndResource %%IncludeResource: font Symbol %%IncludeResource: font Times-Roman %%IncludeResource: font Times-Bold %%IncludeResource: font Times-Italic %%BeginResource: font Symbol-Slanted %%DocumentNeededResources: font Symbol /MakeTransformedFont{ findfont dup maxlength dict begin { exch dup dup/FID ne exch/UniqueID ne and{ exch def }{ pop pop }ifelse }forall /FontBBox currentdict/FontBBox get 4 array copy def FontBBox aload pop 4 index transform 4 2 roll 4 index transform 4 2 roll FontBBox astore pop FontMatrix exch matrix concatmatrix /FontMatrix exch def dup/FontName exch def currentdict end definefont pop }bind def /Symbol-Slanted [.89 0.0 15.5 dup sin exch cos div .89 0.0 0.0] /Symbol MakeTransformedFont %%EndResource grops begin/DEFS 1 dict def DEFS begin/u{.001 mul}bind def end/RES 72 def/PL 792 def/LS false def/ENC0[/asciicircum/asciitilde/Scaron/Zcaron /scaron/zcaron/Ydieresis/trademark/quotesingle/.notdef/.notdef/.notdef /.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef /.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef /.notdef/.notdef/space/exclam/quotedbl/numbersign/dollar/percent /ampersand/quoteright/parenleft/parenright/asterisk/plus/comma/hyphen /period/slash/zero/one/two/three/four/five/six/seven/eight/nine/colon /semicolon/less/equal/greater/question/at/A/B/C/D/E/F/G/H/I/J/K/L/M/N/O /P/Q/R/S/T/U/V/W/X/Y/Z/bracketleft/backslash/bracketright/circumflex /underscore/quoteleft/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y /z/braceleft/bar/braceright/tilde/.notdef/quotesinglbase/guillemotleft /guillemotright/bullet/florin/fraction/perthousand/dagger/daggerdbl /endash/emdash/ff/fi/fl/ffi/ffl/dotlessi/dotlessj/grave/hungarumlaut /dotaccent/breve/caron/ring/ogonek/quotedblleft/quotedblright/oe/lslash /quotedblbase/OE/Lslash/.notdef/exclamdown/cent/sterling/currency/yen /brokenbar/section/dieresis/copyright/ordfeminine/guilsinglleft /logicalnot/minus/registered/macron/degree/plusminus/twosuperior /threesuperior/acute/mu/paragraph/periodcentered/cedilla/onesuperior /ordmasculine/guilsinglright/onequarter/onehalf/threequarters /questiondown/Agrave/Aacute/Acircumflex/Atilde/Adieresis/Aring/AE /Ccedilla/Egrave/Eacute/Ecircumflex/Edieresis/Igrave/Iacute/Icircumflex /Idieresis/Eth/Ntilde/Ograve/Oacute/Ocircumflex/Otilde/Odieresis /multiply/Oslash/Ugrave/Uacute/Ucircumflex/Udieresis/Yacute/Thorn /germandbls/agrave/aacute/acircumflex/atilde/adieresis/aring/ae/ccedilla /egrave/eacute/ecircumflex/edieresis/igrave/iacute/icircumflex/idieresis /eth/ntilde/ograve/oacute/ocircumflex/otilde/odieresis/divide/oslash /ugrave/uacute/ucircumflex/udieresis/yacute/thorn/ydieresis]def /Times-Italic@0 ENC0/Times-Italic RE/Times-Bold@0 ENC0/Times-Bold RE /Times-Roman@0 ENC0/Times-Roman RE %%EndProlog %%Page: 1 1 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q(ABOR)72 58 Q 1.666(T\(I)-.6 G -.834 (II \))-1.666 F 161.282(4/10/75 ABOR)163.782 F 1.666(T\(I)-.6 G -.834 (II \))-1.666 F/F1 8/Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0 (abort)108 134.2 Q/F2 10/Symbol SF(-)5 E F0(generate an IO)5 E 2.5(Tf) -.4 G(ault)-2.6 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF (abort\(\))108 163.4 Q F1(DESCRIPTION)72 181.6 Q/F4 10/Times-Italic@0 SF (Abort)108 192.6 Q F0 -.15(exe)2.782 G .282(cutes the IO).15 F 2.782(Ti) -.4 G 2.782(nstruction. This)-2.782 F .282 (is usually considered a program f)2.782 F .281 (ault by the system and results in)-.1 F(termination with a core dump.) 108 203.6 Q(It is used to generate a core image for deb)5 E(ugging.)-.2 E F1(SEE ALSO)72 221.8 Q F0(db \(I\), cdb \(I\), signal \(II\))108 232.8 Q F1(DIA)72 251 Q(GNOSTICS)-.44 E F0(usually `)108 262 Q(`IO)-.74 E 2.5 (Tt)-.4 G(rap -- core dumped')-2.5 E 2.5('f)-.74 G(rom the Shell.)-2.5 E F1 -.08(BU)72 280.2 S(GS).08 E F0 2.5(-1-)297.67 767 S EP %%Page: 2 2 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(ABS \( III \))72 58 R 177.622 (2/9/75 ABS)180.122 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(abs, f)108 134.2 Q(abs) -.1 E/F2 10/Symbol SF(-)2.5 E F0(absolute v)2.5 E(alue)-.25 E F1 (SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF(abs\(i\))108 163.4 Q(int i;) 108 174.4 Q(double fabs\(x\))108 190.44 Q(double x;)108 201.44 Q F1 (DESCRIPTION)72 224.68 Q/F4 10/Times-Italic@0 SF(Abs)108 235.68 Q F0 (returns the absolute v)2.5 E(alue of its inte)-.25 E(ger operand;)-.15 E F4(fabs)2.5 E F0(is the)2.5 E F4(double)2.5 E F0 -.15(ve)2.5 G(rsion.) .15 E 2.5(-2-)297.67 767 S EP %%Page: 3 3 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(ALLOC \( III \))72 58 R 163.742 (3/1/74 ALLOC)166.242 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(alloc, free)108 134.2 Q /F2 10/Symbol SF(-)2.5 E F0(core allocator)2.5 E F1(SYNOPSIS)72 152.4 Q /F3 10/Times-Bold@0 SF(char *alloc\(size\))108 163.4 Q(fr)108 179.44 Q (ee\(ptr\))-.18 E(char *ptr;)108 190.44 Q F1(DESCRIPTION)72 208.64 Q/F4 10/Times-Italic@0 SF(Alloc)108 219.64 Q F0(and)3 E F4(fr)3 E(ee)-.37 E F0(pro)3 E .5(vide a simple general-purpose core management package.) -.15 F F4(Alloc)5.501 E F0 .501(is gi)3.001 F -.15(ve)-.25 G 3.001(nas) .15 G .501(ize in bytes;)-3.001 F .224 (it returns a pointer to an area at least that size which is e)108 230.64 R -.15(ve)-.25 G 2.724(na).15 G .224 (nd hence can hold an object of an)-2.724 F 2.723(yt)-.15 G 2.723 (ype. The)-2.723 F(ar)108 241.64 Q .639(gument to)-.18 F F4(fr)3.139 E (ee)-.37 E F0 .639(is a pointer to an area pre)3.139 F .639 (viously allocated by)-.25 F F4(alloc;)3.14 E F0 .64 (this space is made a)3.14 F -.25(va)-.2 G .64(ilable for fur).25 F(-) -.2 E(ther allocation.)108 252.64 Q .178(Needless to say)108 268.68 R 2.678(,g)-.65 G(ra)-2.678 E .478 -.15(ve d)-.2 H .177 (isorder will result if the space assigned by).15 F F4(alloc)2.677 E F0 .177(is o)2.677 F -.15(ve)-.15 G .177(rrun or if some random num-).15 F (ber is handed to)108 279.68 Q F4(fr)2.5 E(ee)-.37 E(.)-.15 E F0 .503 (The routine uses a f)108 295.72 R(irst-f)-.2 E .503(it algorithm which\ coalesces blocks being freed with other blocks already free.)-.2 F(It) 5.504 E(calls)108 306.72 Q F4(sbrk)2.5 E F0(\(see)2.5 E F4(br)2.5 E (eak \(II\)\))-.37 E F0(to get more core from the system when there is \ no suitable space already free.)2.5 E F1(DIA)72 324.92 Q(GNOSTICS)-.44 E F0(Returns)108 335.92 Q F2(-)2.5 E F0 2.5(1i)C 2.5(ft)-2.5 G (here is no a)-2.5 E -.25(va)-.2 G(ilable core.).25 E F1 -.08(BU)72 354.12 S(GS).08 E F0(Allocated memory contains g)108 365.12 Q (arbage instead of being cleared.)-.05 E 2.5(-3-)297.67 767 S EP %%Page: 4 4 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -1.21 -1.11(AT A)72 58 T 1.666(N\(I) 1.11 G -.834(II \))-1.666 F 168.842(4/30/73 A)171.342 F -.93(TA)-1.11 G 1.666(N\(I).93 G -.834(II \))-1.666 F/F1 8/Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(atan, atan2)108 134.2 Q/F2 10/Symbol SF(-)2.5 E F0 (arc tangent function)2.5 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF 7.5(jsr pc,atan)108 163.4 R F0([)A F3(2)A F0(])A F3(double atan\(x\))108 179.44 Q(double x;)108 190.44 Q(double atan2\(x, y\))108 206.48 Q (double x, y;)108 217.48 Q F1(DESCRIPTION)72 235.68 Q F0(The)108 246.68 Q/F4 10/Times-Italic@0 SF(atan)3.164 E F0 .664(entry returns the arc ta\ ngent of fr0 in fr0; from C, the arc tangent of)3.164 F F4(x)3.163 E F0 .663(is returned.)3.163 F .663(The range is)5.663 F F2(-)108 257.68 Q/F5 10/Symbol-Slanted SF(p)A F0 .726(/2 to)B F5(p)3.226 E F0 3.226(/2. The)B F4(atan2)3.226 E F0 .726(entry returns the arc tangent of fr0/fr1 in fr\ 0; from C, the arc tangent of)3.226 F F4(x/y)3.227 E F0 .727(is re-) 3.227 F 2.5(turned. The)108 268.68 R(range is)2.5 E F2(-)2.5 E F5(p)A F0 (to)2.5 E F5(p)2.5 E F0(.)A F1(DIA)72 286.88 Q(GNOSTIC)-.44 E F0 (There is no error return.)108 297.88 Q F1 -.08(BU)72 316.08 S(GS).08 E F0 2.5(-4-)297.67 767 S EP %%Page: 5 5 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.46 -1.11(AT O)72 58 T 1.666(F\(I) 1.11 G -.834(II \))-1.666 F 169.752(4/30/73 A)172.252 F -.18(TO)-1.11 G 1.666(F\(I).18 G -.834(II \))-1.666 F/F1 8/Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(atof)108 134.2 Q/F2 10/Symbol SF(-)2.5 E F0(con)2.5 E -.15(ve)-.4 G(rt ASCII to floating).15 E F1(SYNOPSIS)72 152.4 Q/F3 10 /Times-Bold@0 SF(double atof\(nptr\))108 163.4 Q(char *nptr;)108 174.4 Q F1(DESCRIPTION)72 192.6 Q/F4 10/Times-Italic@0 SF(Atof)108 203.6 Q F0 (con)3.333 E -.15(ve)-.4 G .833(rts a string to a floating number).15 F (.)-.55 E F4(Nptr)5.832 E F0 .832 (should point to a string containing the number; the f)3.332 F(irst)-.2 E(unrecognized character ends the number)108 214.6 Q(.)-.55 E .195 (The only numbers recognized are:)108 230.64 R .195 (an optional minus sign follo)5.195 F .195 (wed by a string of digits optionally contain-)-.25 F (ing one decimal point, then follo)108 241.64 Q (wed optionally by the letter)-.25 E F3(e)2.5 E F0(follo)2.5 E (wed by a signed inte)-.25 E(ger)-.15 E(.)-.55 E F1(DIA)72 259.84 Q (GNOSTICS)-.44 E F0(There are none; o)108 270.84 Q -.15(ve)-.15 G(rflo) .15 E 2.5(wr)-.25 G(esults in a v)-2.5 E(ery lar)-.15 E(ge number and g) -.18 E(arbage characters terminate the scan.)-.05 E F1 -.08(BU)72 289.04 S(GS).08 E F0(The routine should accept initial)108 300.04 Q F3(+)2.5 E F0 2.5(,i)C(nitial blanks, and)-2.5 E F3(E)2.5 E F0(for)2.5 E F3(e)2.5 E F0 5(.O)C -.15(ve)-5 G(rflo).15 E 2.5(ws)-.25 G(hould be signalled.)-2.5 E 2.5(-5-)297.67 767 S EP %%Page: 6 6 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.46 -1.11(AT O)72 58 T 1.666(I\(I) 1.11 G -.834(II \))-1.666 F 174.482(2/8/75 A)176.982 F -.18(TO)-1.11 G 1.666(I\(I).18 G -.834(II \))-1.666 F/F1 8/Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(atoi)108 134.2 Q/F2 10/Symbol SF(-)2.5 E F0(con)2.5 E -.15(ve)-.4 G(rt ASCII to inte).15 E(ger)-.15 E F1(SYNOPSIS)72 152.4 Q /F3 10/Times-Bold@0 SF(atoi\(nptr\))108 163.4 Q(char *nptr;)108 174.4 Q F1(DESCRIPTION)72 192.6 Q/F4 10/Times-Italic@0 SF(Atoi)108 203.6 Q F0 (con)3.142 E -.15(ve)-.4 G .641(rts the string pointed to by).15 F F4 (nptr)3.141 E F0 .641(to an inte)3.141 F(ger)-.15 E 5.641(.T)-.55 G .641 (he string can contain leading blanks or tabs, an)-5.641 F (optional `\255', and then an unbrok)108 214.6 Q(en string of digits.) -.1 E(Con)5 E -.15(ve)-.4 G(rsion stops at the f).15 E(irst non-digit.) -.2 E F1(SEE ALSO)72 232.8 Q F0(atof \(III\))108 243.8 Q F1 -.08(BU)72 262 S(GS).08 E F0(There is no pro)108 273 Q(vision for o)-.15 E -.15(ve) -.15 G(rflo).15 E -.65(w.)-.25 G 2.5(-6-)297.67 767 S EP %%Page: 7 7 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q(CR)72 58 Q -.834(YPT \( III \))-.65 F 162.992(4/30/73 CR)165.492 F -.834(YPT \( III \))-.65 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(crypt)108 134.2 Q/F2 10 /Symbol SF(-)2.5 E F0(passw)2.5 E(ord encoding)-.1 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF(mo)108 163.4 Q 17.77(v$)-.1 G -.1(ke) -17.77 G -.55(y,).1 G(r0).55 E 21.84(jsr pc,crypt)108 174.4 R (char *crypt\(k)108 190.44 Q(ey\))-.1 E(char *k)108 201.44 Q(ey;)-.1 E F1(DESCRIPTION)72 219.64 Q F0 .383(On entry)108 230.64 R 2.883(,r)-.65 G 2.884(0p)-2.883 G .384 (oints to a string of characters terminated by an ASCII NUL.)-2.884 F .384(The routine performs an opera-)5.384 F .294(tion on the k)108 241.64 R .594 -.15(ey w)-.1 H .294(hich is dif).15 F -.2(fi)-.25 G .294 (cult to in).2 F -.15(ve)-.4 G .293(rt \(i.e. encrypts it\) and lea).15 F -.15(ve)-.2 G 2.793(st).15 G .293 (he resulting eight bytes of ASCII al-)-2.793 F (phanumerics in a global cell called `)108 252.64 Q(`w)-.74 E(ord')-.1 E ('.)-.74 E(From C, the)108 268.68 Q/F4 10/Times-Italic@0 SF -.1(ke)2.5 G (y)-.2 E F0(ar)2.5 E(gument is a string and the v)-.18 E (alue returned is a pointer to the eight-character result.)-.25 E (This routine is used to encrypt all passw)108 284.72 Q(ords.)-.1 E F1 (SEE ALSO)72 302.92 Q F0(passwd\(I\), passwd\(V\), login\(I\))108 313.92 Q F1 -.08(BU)72 332.12 S(GS).08 E F0 .682 (Short or otherwise simple passw)108 343.12 R .683 (ords can be decrypted easily by e)-.1 F(xhausti)-.15 E .983 -.15(ve s) -.25 H 3.183(earch. Six).15 F .683(characters of gib-)3.183 F (berish is reasonably safe.)108 354.12 Q 2.5(-7-)297.67 767 S EP %%Page: 8 8 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(CTIME \( III \))72 58 R 160.962 (10/15/73 CTIME)163.462 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0 (ctime, localtime, gmtime)108 134.2 Q/F2 10/Symbol SF(-)5 E F0(con)5 E -.15(ve)-.4 G(rt date and time to ASCII).15 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF(char *ctime\(tv)108 163.4 Q(ec\))-.1 E(int tv)108 174.4 Q(ec[2];)-.1 E F0([from F)108 190.44 Q(ortran])-.15 E F3 (double pr)108 201.44 Q(ecision ctime)-.18 E(... = ctime\(dummy\))108 212.44 Q(int *localtime\(tv)108 228.48 Q(ec\))-.1 E(int tv)108 239.48 Q (ec[2];)-.1 E(int *gmtime\(tv)108 255.52 Q(ec\))-.1 E(int tv)108 266.52 Q(ec[2];)-.1 E F1(DESCRIPTION)72 284.72 Q/F4 10/Times-Italic@0 SF(Ctime) 108 295.72 Q F0(con)2.937 E -.15(ve)-.4 G .437(rts a time in the v).15 F (ector)-.15 E F4(tvec)2.937 E F0 .436 (such as returned by time \(II\) into ASCII and returns a pointer to a) 2.937 F(character string in the form)108 306.72 Q (Sun Sep 16 01:03:52 1973\\n\\0)118 322.76 Q(All the f)108 338.8 Q (ields ha)-.2 E .3 -.15(ve c)-.2 H(onstant width.).15 E(The)108 354.84 Q F4(localtime)3.17 E F0(and)3.17 E F4(gmtime)3.17 E F0 .67 (entries return pointers to inte)3.17 F .67(ger v)-.15 F .67 (ectors containing the brok)-.15 F(en-do)-.1 E .67(wn time.)-.25 F F4 (Lo-)5.67 E(caltime)108 365.84 Q F0 1.162 (corrects for the time zone and possible daylight sa)3.662 F 1.162 (vings time;)-.2 F F4(gmtime)3.662 E F0(con)3.662 E -.15(ve)-.4 G 1.162 (rts directly to GMT).15 F(,)-.74 E(which is the time UNIX uses.)108 376.84 Q(The v)5 E(alue is a pointer to an array whose components are) -.25 E 20(0s)108 392.88 S(econds)-20 E 20(1m)108 403.88 S(inutes)-20 E 20(2h)108 414.88 S(ours)-20 E 20(3d)108 425.88 S (ay of the month \(1-31\))-20 E 20(4m)108 436.88 S(onth \(0-11\))-20 E 20(5y)108 447.88 S(ear)-20 E F2(-)2.5 E F0(1900)2.5 E 20(6d)108 458.88 S (ay of the week \(Sunday = 0\))-20 E 20(7d)108 469.88 S (ay of the year \(0-365\))-20 E 20(8D)108 480.88 S(aylight Sa)-20 E (ving T)-.2 E(ime flag if non-zero)-.35 E .752(The e)108 496.92 R .752 (xternal v)-.15 F(ariable)-.25 E F4(timezone)3.252 E F0 .752 (contains the dif)3.252 F .752 (ference, in seconds, between GMT and local standard time)-.25 F 1.039 (\(in EST)108 507.92 R 3.539(,i)-.74 G 3.539(s5)-3.539 G 1.039 (*60*60\); the e)-3.539 F 1.039(xternal v)-.15 F(ariable)-.25 E F4 (daylight)3.539 E F0 1.039(is non-zero if)3.539 F 3.538(ft)-.25 G 1.038 (he standard U.S.A. Daylight Sa)-3.538 F(vings)-.2 E -.35(Ti)108 518.92 S .49(me con).35 F -.15(ve)-.4 G .49(rsion should be applied.).15 F .491 (The program kno)5.49 F .491(ws about the peculiarities of this con)-.25 F -.15(ve)-.4 G .491(rsion in 1974).15 F(and 1975; if necessary)108 529.92 Q 2.5(,at)-.65 G(able for these years can be e)-2.5 E(xtended.) -.15 E 2.609(Ar)108 545.96 S .109(outine named)-2.609 F F4(ctime)2.609 E F0 .108(is also a)2.609 F -.25(va)-.2 G .108(ilable from F).25 F 2.608 (ortran. Actually)-.15 F .108(it more resembles the)2.608 F F4(time) 2.608 E F0 .108(\(II\) system entry)2.608 F .591(in that it returns the\ number of seconds since the epoch 0000 GMT Jan. 1, 1970 \(as a floatin\ g-point num-)108 556.96 R(ber\).)108 567.96 Q F1(SEE ALSO)72 586.16 Q F0 (time\(II\))108 597.16 Q F1 -.08(BU)72 615.36 S(GS).08 E F0 2.5(-8-) 297.67 767 S EP %%Page: 9 9 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(ECVT \( III \))72 58 R 168.462 (4/30/73 ECVT)170.962 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(ecvt, fcvt)108 134.2 Q /F2 10/Symbol SF(-)2.5 E F0(output con)2.5 E -.15(ve)-.4 G(rsion).15 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF 21.84(jsr pc,ecvt)108 163.4 R 21.84(jsr pc,fcvt)108 179.44 R(char *ecvt\(v)108 195.48 Q (alue, ndigit, decpt, sign\))-.1 E(double v)108 206.48 Q(alue;)-.1 E (int ndigit, *decpt, *sign;)108 217.48 Q(char *fcvt\(v)108 233.52 Q (alue, ndigit, decpt, sign\))-.1 E(...)108 244.52 Q F1(DESCRIPTION)72 262.72 Q/F4 10/Times-Italic@0 SF(Ecvt)108 273.72 Q F0 (is called with a floating point number in fr0.)2.5 E .048(On e)108 289.76 R .047(xit, the number has been con)-.15 F -.15(ve)-.4 G .047 (rted into a string of ascii digits in a b).15 F(uf)-.2 E .047 (fer pointed to by r0.)-.25 F .047(The number)5.047 F (of digits produced is controlled by a global v)108 300.76 Q .4 LW 321.89 303.26 316.89 303.26 DL(ariable)287.18 300.76 Q F4(ndigits)7.5 E F0(.)A(Moreo)108 316.8 Q -.15(ve)-.15 G .953 -.4(r, t).15 H .153(he pos\ ition of the decimal point is contained in r2: r2=0 means the d.p. is a\ t the left hand end of).4 F(the string of digits; r2>0 means the d.p. i\ s within or to the right of the string.)108 327.8 Q (The sign of the number is indicated by r1 \(0 for +; 1 for)108 343.84 Q F2(-)2.5 E F0(\).)A(The lo)108 359.88 Q 2.5(wo)-.25 G (rder digit has suf)-2.5 E(fered decimal rounding \(i. e. may ha)-.25 E .3 -.15(ve b)-.2 H(een carried into\).).15 E .137(From C, the)108 375.92 R F4(value)2.637 E F0 .137(is con)2.637 F -.15(ve)-.4 G .136 (rted and a pointer to a null-terminated string of).15 F F4(ndigit)2.636 E F0 .136(digits is returned.)2.636 F .136(The po-)5.136 F .24 (sition of the decimal point is stored indirectly through)108 386.92 R F4(decpt)2.74 E F0(\(ne)2.74 E -.05(ga)-.15 G(ti).05 E .54 -.15(ve m) -.25 H .24(eans to the left of the returned dig-).15 F 2.5(its\). If)108 397.92 R(the sign of the result is ne)2.5 E -.05(ga)-.15 G(ti).05 E -.15 (ve)-.25 G 2.5(,t).15 G(he w)-2.5 E(ord pointed to by)-.1 E F4(sign)2.5 E F0(is non-zero, otherwise it is zero.)2.5 E F4(Fcvt)108 413.96 Q F0 .088(is identical to)2.588 F F4(ecvt)2.588 E F0 2.588(,e)C .087(xcept t\ hat the correct digit been rounded for F-style output of the number of \ digits)-2.738 F(specif)108 424.96 Q 163.9 427.46 158.9 427.46 DL(ied by) 131.68 424.96 Q F4(ndigits)7.5 E F0(.)A F1(SEE ALSO)72 443.16 Q F0 (printf \(III\))108 454.16 Q F1 -.08(BU)72 472.36 S(GS).08 E F0 2.5(-9-) 297.67 767 S EP %%Page: 10 10 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(END \( III \))72 58 R 174.022 (4/28/75 END)176.522 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(end, ete)108 134.2 Q (xt, edata)-.15 E/F2 10/Symbol SF(-)2.5 E F0(last locations in program) 2.5 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF(exter)108 163.4 Q 8.94(ne)-.15 G(nd;)-8.94 E(exter)108 174.4 Q 8.94(ne)-.15 G(text;)-8.94 E(exter)108 185.4 Q 8.94(ne)-.15 G(data;)-8.94 E F1(DESCRIPTION)72 203.6 Q F0 .139(These names refer neither to routines nor to locations with i\ nteresting contents.)108 214.6 R .139(Instead, their addresses co-)5.139 F .291(incide with the f)108 225.6 R .291(irst address abo)-.2 F .591 -.15(ve t)-.15 H .291(he program te).15 F .291(xt re)-.15 F(gion)-.15 E /F4 10/Times-Italic@0 SF(\(ete)2.791 E(xt\),)-.2 E F0(abo)2.79 E .59 -.15(ve t)-.15 H .29(he initialized data re).15 F(gion)-.15 E F4 (\(edata\),)2.79 E F0 1.165(or uninitialized data re)108 236.6 R(gion) -.15 E F4(\(end\).)3.665 E F0 1.165 (The last is the same as the program break.)6.165 F -1.11(Va)6.165 G 1.165(lues are gi)1.11 F -.15(ve)-.25 G 3.665(nt).15 G 3.665(ot)-3.665 G (hese)-3.665 E .195(symbols by the link editor)108 247.6 R F4(ld)2.695 E F0 .195(\(I\) when, and only when, the)2.695 F 2.695(ya)-.15 G .195 (re referred to b)-2.695 F .195(ut not def)-.2 F .195 (ined in the set of pro-)-.2 F(grams loaded.)108 258.6 Q (The usage of these symbols is rather specialized, b)108 274.64 Q (ut one plausible possibility is)-.2 E -.15(ex)144 290.68 S(tern end;) .15 E(...)144 301.68 Q(... = brk\(&end+...\);)144 312.68 Q(\(see)108 328.72 Q F4(br)3.212 E(eak)-.37 E F0 3.212(\(II\)\). The)3.212 F .713 (problem with this is that it ignores an)3.212 F 3.213(yo)-.15 G .713 (ther subroutines which may w)-3.213 F .713(ant to e)-.1 F(xtend)-.15 E .685(core for their purposes; these include)108 339.72 R F4(sbrk)3.185 E F0(\(see)3.185 E F4(br)3.185 E(eak)-.37 E F0(\(II\)\),)3.185 E F4(alloc) 3.185 E F0 .685(\(III\), and also secret subroutines in)3.185 F -.2(vo) -.4 G -.1(ke).2 G(d).1 E .343(by the prof)108 350.72 R .343 (ile \(\255p\) option of)-.2 F F4(cc.)2.843 E F0 .343(Of course it w) 5.343 F .343(as for the benef)-.1 F .344 (it of such systems that the symbols were in-)-.2 F -.15(ve)108 361.72 S .391(nted, and user programs, unless the).15 F 2.891(ya)-.15 G .391 (re in f)-2.891 F .391(irm control of their en)-.2 F .391 (vironment, are wise not to refer to the)-.4 F (absolute symbols directly)108 372.72 Q(.)-.65 E .121 (One technique sometimes useful is to call)108 388.76 R F4(sbrk\(0\),) 2.621 E F0 .121(which returns the v)2.621 F .121 (alue of the current program break, in-)-.25 F(stead of referring to)108 399.76 Q F4(&end,)2.5 E F0 (which yields the program break at the instant e)2.5 E -.15(xe)-.15 G (cution started.).15 E .613(These symbols are accessible from assembly \ language if it is remembered that the)108 415.8 R 3.112(ys)-.15 G .612 (hould be pref)-3.112 F(ix)-.2 E .612(ed by)-.15 F .4 LW 116.33 429.3 111.33 429.3 DL 5(`')108 426.8 S F1(SEE ALSO)72 445 Q F0 (break \(II\), alloc \(III\))108 456 Q F1 -.08(BU)72 474.2 S(GS).08 E F0 2.5(-1)295.17 767 S 2.5(0-)-2.5 G EP %%Page: 11 11 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(EXP \( III \))72 58 R 175.682 (4/30/73 EXP)178.182 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0 -.15(ex)108 134.2 S(p) .15 E/F2 10/Symbol SF(-)2.5 E F0 -.15(ex)2.5 G(ponential function).15 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF 21.84(jsr pc,exp)108 163.4 R(double exp\(x\))108 179.44 Q(double x;)108 190.44 Q F1(DESCRIPTION)72 208.64 Q F0(The e)108 219.64 Q(xponential of fr0 is returned in fr0.) -.15 E(From C, the e)5 E(xponential of)-.15 E/F4 10/Times-Italic@0 SF(x) 2.5 E F0(is returned.)2.5 E F1(DIA)72 237.84 Q(GNOSTICS)-.44 E F0 .27 (If the result is not representable, the c-bit is set and the lar)108 248.84 R .271(gest positi)-.18 F .571 -.15(ve n)-.25 H .271 (umber is returned.).15 F .271(From C, no di-)5.271 F(agnostic is a)108 259.84 Q -.25(va)-.2 G(ilable.).25 E(Zero is returned if the result w) 108 275.88 Q(ould underflo)-.1 E -.65(w.)-.25 G F1 -.08(BU)72 294.08 S (GS).08 E F0 2.5(-1)295.17 767 S 2.5(1-)-2.5 G EP %%Page: 12 12 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(FLOOR \( III \))72 58 R 161.792 (5/15/74 FLOOR)164.292 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(floor)108 134.2 Q 2.5 (,c)-.4 G(eil)-2.5 E/F2 10/Symbol SF(-)2.5 E F0 (floor and ceiling functions)2.5 E F1(SYNOPSIS)72 152.4 Q/F3 10 /Times-Bold@0 SF(double floor\(x\))108 163.4 Q(double x;)108 174.4 Q (double ceil\(x\))108 190.44 Q(double x;)108 201.44 Q F1(DESCRIPTION)72 219.64 Q F0(The floor function returns the lar)108 230.64 Q(gest inte) -.18 E(ger \(as a double precision number\) not greater than)-.15 E F3 (x)2.5 E F0(.)A(The ceil function returns the smallest inte)108 246.68 Q (ger not less than)-.15 E F3(x)2.5 E F0(.)A F1 -.08(BU)72 264.88 S(GS) .08 E F0 2.5(-1)295.17 767 S 2.5(2-)-2.5 G EP %%Page: 13 13 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(FMOD \( III \))72 58 R 165.682 (2/13/75 FMOD)168.182 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(fmod)108 134.2 Q/F2 10 /Symbol SF(-)2.5 E F0(floating modulo function)2.5 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF(double fmod\(x, y\))108 163.4 Q (double x, y;)108 174.4 Q F1(DESCRIPTION)72 192.6 Q/F4 10/Times-Italic@0 SF(Fmod)108 203.6 Q F0(returns the number)2.5 E F4(f)2.5 E F0(such that) 2.5 E F4 2.5(x=i)2.5 G 2.5(y+f)-2.5 G 2.5(,i)-2.6 G F0(is an inte)A(ger) -.15 E 2.5(,a)-.4 G(nd 0)-2.5 E F22.5 E F4(f)2.5 E F0(<)2.5 E F4 -.55(y.)2.5 G F1 -.08(BU)72 221.8 S(GS).08 E F0 2.5(-1)295.17 767 S 2.5 (3-)-2.5 G EP %%Page: 14 14 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(FPTRAP \( III \))72 58 R 155.392 (11/18/73 FPTRAP)157.892 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(fptrap)108 134.2 Q/F2 10 /Symbol SF(-)2.5 E F0(floating point interpreter)2.5 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF 20.72(sys signal;)108 163.4 R(4; fptrap) 2.5 E F1(DESCRIPTION)72 181.6 Q/F4 10/Times-Italic@0 SF(Fptr)108 192.6 Q (ap)-.15 E F0 .813 (is a simulator of the 11/45 FP11-B floating point unit.)3.313 F .812 (It w)5.812 F .812(orks by intercepting ille)-.1 F -.05(ga)-.15 G 3.312 (li).05 G(nstruction)-3.312 E(traps and decoding and e)108 203.6 Q -.15 (xe)-.15 G(cuting the floating point operation codes.).15 E F1(FILES)72 221.8 Q F0 .586(In systems with real floating point, there is a f)108 232.8 R(ak)-.1 E 3.086(er)-.1 G .586 (outine in /lib/liba.a with this name; when simulation is)-3.086 F (desired, the real v)108 243.8 Q(ersion should be put in liba.a)-.15 E F1(DIA)72 262 Q(GNOSTICS)-.44 E F0 2.5(Ab)108 273 S (reak point trap is gi)-2.5 E -.15(ve)-.25 G 2.5(nw).15 G (hen a real ille)-2.5 E -.05(ga)-.15 G 2.5(li).05 G (nstruction trap occurs.)-2.5 E F1(SEE ALSO)72 291.2 Q F0 (signal \(II\), cc \(I\) \(`\255f)108 302.2 Q 2.5('o).55 G(ption\))-2.5 E F1 -.08(BU)72 320.4 S(GS).08 E F0(Rounding mode is not interpreted.) 108 331.4 Q(It')5 E 2.5(ss)-.55 G(lo)-2.5 E -.65(w.)-.25 G 2.5(-1)295.17 767 S 2.5(4-)-2.5 G EP %%Page: 15 15 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(GAMMA \( III \))72 58 R 155.132 (5/15/74 GAMMA)157.632 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0 -.05(ga)108 134.2 S(mma) .05 E/F2 10/Symbol SF(-)2.5 E F0(log g)2.5 E(amma function)-.05 E F1 (SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF 21.84(jsr pc,gamma)108 163.4 R(double gamma\(x\))108 179.44 Q(double x;)108 190.44 Q F1(DESCRIPTION) 72 208.64 Q F0(If)108 219.64 Q/F4 10/Times-Italic@0 SF(x)2.71 E F0 .21 (is passed \(in fr0\))2.71 F F4(gamma)2.71 E F0 .21(returns ln |)2.71 F F2(G)1.666 E F0(\()A F4(x)1.666 E F0 -3.122 1.666(\)| \()1.666 H .21 (in fr0\).)-1.666 F .21(The sign of)5.21 F F2(G)2.71 E F0(\()A F4(x) 1.666 E F0 2.709(\)i)1.666 G 2.709(sr)-2.709 G .209(eturned in the e) -2.709 F .209(xternal inte)-.15 F(ger)-.15 E F4(signgam.)108 230.64 Q F0 (The follo)5 E(wing C program might be used to calculate)-.25 E F2(G)2.5 E F0(:)A 2.5(y=g)144 246.68 S(amma\(x\);)-2.55 E(if \(y > 88.\))144 257.68 Q(error\( \);)180 268.68 Q 2.5(y=e)144 279.68 S(xp\(y\);)-2.65 E (if\(signg)144 290.68 Q(am\))-.05 E 2.5(y=)180 301.68 S F2(-)A F0(y;)A F1(DIA)72 319.88 Q(GNOSTICS)-.44 E F0 .181(The c-bit is set on ne)108 330.88 R -.05(ga)-.15 G(ti).05 E .481 -.15(ve i)-.25 H(nte).15 E .181 (gral ar)-.15 F .181(guments and the maximum v)-.18 F .181 (alue is returned.)-.25 F .181(There is no error return)5.181 F (for C programs.)108 341.88 Q F1 -.08(BU)72 360.08 S(GS).08 E F0 (No error return from C.)108 371.08 Q 2.5(-1)295.17 767 S 2.5(5-)-2.5 G EP %%Page: 16 16 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q(GET)72 58 Q -.834(ARG \( III \))-.93 F 152.452(11/24/73 GET)154.952 F -.834(ARG \( III \))-.93 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(getar)108 134.2 Q (g, iar)-.18 E(gc)-.18 E/F2 10/Symbol SF(-)2.5 E F0(get command ar)2.5 E (guments from F)-.18 E(ortran)-.15 E F1(SYNOPSIS)72 152.4 Q/F3 10 /Times-Bold@0 SF(call getar)108 163.4 Q 2.5(g\(i)-.1 G 2.5(,i)-2.5 G (array)-2.5 E F0([)2.5 E F3 2.5(,i)2.5 G(size)-2.5 E F0(])2.5 E F3(\)) 2.5 E(... = iar)108 179.44 Q(gc\(dummy\))-.1 E F1(DESCRIPTION)72 197.64 Q F0(The)108 208.64 Q/F4 10/Times-Italic@0 SF -.1(ge)2.682 G(tar).1 E(g) -.37 E F0 .182(entry f)2.682 F .182(ills in)-.2 F F4(iarr)2.682 E(ay) -.15 E F0 .182(\(which is considered to be)2.682 F F4(inte)2.682 E -.1 (ge)-.4 G(r\)).1 E F0 .181(with the Hollerith string representing the) 2.682 F F4(i)108 219.64 Q F0 .206(th ar)2.706 F .206 (gument to the command in which it it is called.)-.18 F .206(If no)5.206 F F4(isize)2.706 E F0(ar)2.707 E .207(gument is specif)-.18 F .207 (ied, at least one blank is)-.2 F .569(placed after the ar)108 230.64 R .569(gument, and the last w)-.18 F .568(ord af)-.1 F .568 (fected is blank padded.)-.25 F .568(The user should mak)5.568 F 3.068 (es)-.1 G .568(ure that the)-3.068 F(array is big enough.)108 241.64 Q .227(If the)108 257.68 R F4(isize)2.727 E F0(ar)2.727 E .227 (gument is gi)-.18 F -.15(ve)-.25 G .227(n, the ar).15 F .228 (gument will be follo)-.18 F .228(wed by blanks to f)-.25 F .228(ill up) -.2 F F4(isize)2.728 E F0 -.1(wo)2.728 G .228(rds, b).1 F .228(ut e)-.2 F -.15(ve)-.25 G 2.728(ni).15 G 2.728(ft)-2.728 G(he)-2.728 E(ar)108 268.68 Q(gument is long no more than that man)-.18 E 2.5(yw)-.15 G (ords will be f)-2.6 E(illed in.)-.2 E (The blank-padded array is suitable for use as an ar)108 284.72 Q (gument to setf)-.18 E(il \(III\).)-.2 E(The)108 300.76 Q F4(iar)2.5 E (gc)-.37 E F0(entry returns the number of ar)2.5 E (guments to the command, counting the f)-.18 E(irst \(f)-.2 E (ile-name\) ar)-.2 E(gument.)-.18 E F1(SEE ALSO)72 318.96 Q F0 -.15(exe) 108 329.96 S 2.5(c\().15 G(II\), setf)-2.5 E(il \(III\))-.2 E F1 -.08 (BU)72 348.16 S(GS).08 E F0 2.5(-1)295.17 767 S 2.5(6-)-2.5 G EP %%Page: 17 17 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(GETC \( III \))72 58 R 168.462 (4/30/72 GETC)170.962 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(getc, getw)108 134.2 Q 2.5(,f)-.65 G(open)-2.5 E/F2 10/Symbol SF(-)5 E F0 -.2(bu)5 G -.25(ff).2 G(ered input).25 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF(mo)108 163.4 Q 17.77(v$)-.1 G -.25(fi)-17.77 G(lename,r0).25 E 21.84(jsr r5,f) 108 174.4 R(open; iob)-.25 E(uf)-.2 E -.25(fo)108 190.44 S(pen\(f).25 E (ilename, iob)-.25 E(uf\))-.2 E(char *f)108 201.44 Q(ilename;)-.25 E (struct b)108 212.44 Q(uf *iob)-.2 E(uf;)-.2 E 21.84(jsr r5,getc;)108 228.48 R(iob)2.5 E(uf)-.2 E F0(\(character in r0\))108 239.48 Q F3 (getc\(iob)108 255.52 Q(uf\))-.2 E(struct b)108 266.52 Q(uf *iob)-.2 E (uf;)-.2 E 21.84(jsr r5,getw;)108 282.56 R(iob)2.5 E(uf)-.2 E F0(\(w)108 293.56 Q(ord in r0\))-.1 E F3(getw\(iob)108 309.6 Q(uf\))-.2 E(struct b) 108 320.6 Q(uf *iob)-.2 E(uf;)-.2 E F1(DESCRIPTION)72 338.8 Q F0 .846 (These routines pro)108 349.8 R .846(vide a b)-.15 F(uf)-.2 E .846 (fered input f)-.25 F(acility)-.1 E(.)-.65 E/F4 10/Times-Italic@0 SF (Iob)5.846 E(uf)-.2 E F0 .846(is the address of a 518\(10\) byte b)3.346 F(uf)-.2 E .845(fer area whose)-.25 F (contents are maintained by these routines.)108 360.8 Q (Its structure is)5 E F3(struct b)144 376.84 Q(uf {)-.2 E(int f)180 387.84 Q 29.47(ildes; /*)-.25 F(File descriptor */)2.5 E(int nleft;)180 398.84 Q(/* Chars left in b)35.06 E(uffer */)-.2 E(char *nextp;)180 409.84 Q(/* Ptr to next character */)17.84 E(char b)180 420.84 Q 4.99 (uff[512]; /*)-.2 F(The b)2.5 E(uffer */)-.2 E(};)144 431.84 Q F4 -1.05 (Fo)108 447.88 S(pen)1.05 E F0 .956 (may be called initially to open the f)3.456 F 3.457(ile. On)-.2 F .957 (return, the error bit \(c-bit\) is set if the open f)3.457 F 3.457 (ailed. If)-.1 F F4(fopen)108 458.88 Q F0 .681(is ne)3.181 F -.15(ve) -.25 G 3.181(rc).15 G(alled,)-3.181 E F4 -.1(ge)3.181 G(t).1 E F0 .681 (will read from the standard input f)3.181 F 3.18(ile. From)-.2 F .68 (C, the v)3.18 F .68(alue is ne)-.25 F -.05(ga)-.15 G(ti).05 E .98 -.15 (ve i)-.25 H 3.18(ft).15 G .68(he open)-3.18 F -.1(fa)108 469.88 S (iled.).1 E F4(Getc)108 485.92 Q F0 .172(returns the ne)2.672 F .172 (xt byte from the f)-.15 F .172(ile in r0.)-.2 F .172 (The error bit is set on end of f)5.172 F .172(ile or a read error)-.2 F 5.172(.F)-.55 G .172(rom C, the)-5.172 F (character is returned as an inte)108 496.92 Q(ger)-.15 E 2.5(,w)-.4 G (ithout sign e)-2.5 E(xtension; it is)-.15 E F2(-)2.5 E F0 2.5(1o)C 2.5 (ne)-2.5 G(nd-of-f)-2.5 E(ile or error)-.2 E(.)-.55 E F4(Getw)108 512.96 Q F0 .389(returns the ne)2.889 F .389(xt w)-.15 F .389(ord in r0.)-.1 F F4(Getc)5.389 E F0(and)2.889 E F4 -.1(ge)2.889 G(tw).1 E F0 .389 (may be used alternately; there are no odd/e)2.889 F -.15(ve)-.25 G 2.888(np).15 G(roblems.)-2.888 E F4(Getw)108 523.96 Q F0 .066 (is may be called from C;)2.566 F F2(-)2.566 E F0 2.567(1i)C 2.567(sr) -2.567 G .067(eturned on end-of-f)-2.567 F .067(ile or error)-.2 F 2.567 (,b)-.4 G .067(ut of course is also a le)-2.767 F .067(gitimate v)-.15 F (alue.)-.25 E F4(Iob)108 540 Q(uf)-.2 E F0(must be pro)2.5 E (vided by the user; it must be on a w)-.15 E(ord boundary)-.1 E(.)-.65 E 1.6 -.8(To r)108 556.04 T(euse the same b).8 E(uf)-.2 E (fer for another f)-.25 E(ile, it is suf)-.2 E -.2(fi)-.25 G (cient to close the original f).2 E(ile and call)-.2 E F4(fopen)2.5 E F0 (ag)2.5 E(ain.)-.05 E F1(SEE ALSO)72 574.24 Q F0 (open \(II\), read \(II\), getchar \(III\), putc \(III\))108 585.24 Q F1 (DIA)72 603.44 Q(GNOSTICS)-.44 E F0 .936 (c-bit set on EOF or error; from C, ne)108 614.44 R -.05(ga)-.15 G(ti) .05 E 1.236 -.15(ve r)-.25 H .936(eturn indicates error or EOF).15 F 5.936(.M)-.8 G(oreo)-5.936 E -.15(ve)-.15 G -.4(r,).15 G F4(errno)3.836 E F0 .935(is set by this)3.435 F (routine just as it is for a system call \(see introduction \(II\)\).) 108 625.44 Q F1 -.08(BU)72 643.64 S(GS).08 E F0 2.5(-1)295.17 767 S 2.5 (7-)-2.5 G EP %%Page: 18 18 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(GETCHAR \( III \))72 58 R 149.852(4/7/73 GETCHAR)152.352 F 1.666(\(I)1.666 G -.834(II \))-1.666 F /F1 8/Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(getchar)108 134.2 Q /F2 10/Symbol SF(-)2.5 E F0(read character)2.5 E F1(SYNOPSIS)72 152.4 Q /F3 10/Times-Bold@0 SF(getchar\( \))108 163.4 Q F1(DESCRIPTION)72 181.6 Q/F4 10/Times-Italic@0 SF(Getc)108 192.6 Q(har)-.15 E F0(pro)3.17 E .67 (vides the simplest means of reading characters from the standard input\ for C programs.)-.15 F .67(It re-)5.67 F(turns successi)108 203.6 Q .3 -.15(ve c)-.25 H(haracters until end-of-f).15 E(ile, when it returns `) -.2 E(`\\0')-.74 E('.)-.74 E .511(Associated with this routine is an e) 108 219.64 R .511(xternal v)-.15 F .511(ariable called)-.25 F F4 -.2(fi) 3.011 G(n).2 E F0 3.011(,w)C .51(hich is a structure containing a b) -3.011 F(uf)-.2 E .51(fer such)-.25 F(as described under)108 230.64 Q F4 -.1(ge)2.5 G(tc).1 E F0(\(III\).)2.5 E .238(Generally speaking,)108 246.68 R F4 -.1(ge)2.738 G(tc).1 E(har)-.15 E F0 .238 (should be used only for the simplest applications;)2.738 F F4 -.1(ge) 2.738 G(tc).1 E F0 .238(is better when there are)2.738 F (multiple input f)108 257.68 Q(iles.)-.2 E F1(SEE ALSO)72 275.88 Q F0 (getc \(III\))108 286.88 Q F1(DIA)72 305.08 Q(GNOSTICS)-.44 E F0 (Null character returned on EOF or error)108 316.08 Q(.)-.55 E F1 -.08 (BU)72 334.28 S(GS).08 E F2(-)108 345.28 Q F0 2.5(1s)C (hould be returned on EOF; null is a le)-2.5 E(gitimate character)-.15 E (.)-.55 E 2.5(-1)295.17 767 S 2.5(8-)-2.5 G EP %%Page: 19 19 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(GETPW \( III \))72 58 R 162.632 (4/7/73 GETPW)165.132 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(getpw)108 134.2 Q/F2 10 /Symbol SF(-)2.5 E F0(get name from UID)2.5 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF(getpw\(uid, b)108 163.4 Q(uf\))-.2 E(char *b)108 174.4 Q(uf;)-.2 E F1(DESCRIPTION)72 192.6 Q/F4 10/Times-Italic@0 SF (Getpw)108 203.6 Q F0 .355(searches the passw)2.855 F .355(ord f)-.1 F .355(ile for the \(numerical\))-.2 F F4(uid)2.855 E F0 2.854(,a)C .354 (nd f)-2.854 F .354(ills in)-.2 F F4 -.2(bu)2.854 G(f).2 E F0 .354 (with the corresponding line; it re-)2.854 F(turns non-zero if)108 214.6 Q F4(uid)2.5 E F0(could not be found.)2.5 E (The line is null-terminated.)5 E F1(FILES)72 232.8 Q F0(/etc/passwd)108 243.8 Q F1(SEE ALSO)72 262 Q F0(passwd \(V\))108 273 Q F1(DIA)72 291.2 Q (GNOSTICS)-.44 E F0(non-zero return on error)108 302.2 Q(.)-.55 E F1 -.08(BU)72 320.4 S(GS).08 E F0 2.5(-1)295.17 767 S 2.5(9-)-2.5 G EP %%Page: 20 20 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(HMUL \( III \))72 58 R 167.632 (4/7/73 HMUL)170.132 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(hmul)108 134.2 Q/F2 10 /Symbol SF(-)2.5 E F0(high-order product)2.5 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF(hmul\(x, y\))108 163.4 Q F1(DESCRIPTION)72 181.6 Q/F4 10/Times-Italic@0 SF(Hmul)108 192.6 Q F0 .049 (returns the high-order 16 bits of the product of)2.548 F F3(x)2.549 E F0(and)2.549 E F3 -.7(y.)2.549 G F0 .049 (\(The binary multiplication operator generates)5.749 F(the lo)108 203.6 Q(w-order 16 bits of a product.\))-.25 E F1 -.08(BU)72 221.8 S(GS).08 E F0 2.5(-2)295.17 767 S 2.5(0-)-2.5 G EP %%Page: 21 21 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q(IERR)72 58 Q -.834(OR \( III \))-.4 F 155.802(10/29/73 IERR)158.302 F -.834(OR \( III \))-.4 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(ierror)108 134.2 Q/F2 10 /Symbol SF(-)2.5 E F0(catch F)2.5 E(ortran errors)-.15 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF(if \( ierr)108 163.4 Q(or \()-.18 E/F4 10 /Times-Italic@0 SF(errno)2.5 E F3 2.5(\).)2.5 G(ne. 0 \) goto)-2.5 E F4 (label)2.5 E F1(DESCRIPTION)72 181.6 Q F4(Ierr)108 192.6 Q(or)-.45 E F0 (pro)3.26 E .76(vides a w)-.15 F .76 (ay of detecting errors during the running of a F)-.1 F .759 (ortran program.)-.15 F .759(Its ar)5.759 F .759(gument is a run-)-.18 F (time error number such as enumerated in)108 203.6 Q F4(fc)2.5 E F0 (\(I\).)2.5 E(When)108 219.64 Q F4(ierr)2.803 E(or)-.45 E F0 .303 (is called, it returns a 0 v)2.803 F .304(alue; thus the)-.25 F F3(goto) 2.804 E F0 .304(statement in the synopsis is not e)2.804 F -.15(xe)-.15 G 2.804(cuted. Ho).15 F(we)-.25 E(v-)-.25 E(er)108 230.64 Q 2.632(,t)-.4 G .132(he routine stores inside itself the call point and in)-2.632 F -.2(vo)-.4 G .132(cation le).2 F -.15(ve)-.25 G 2.632(l. If).15 F .131 (and when the indicated error occurs,)2.631 F(a)108 241.64 Q F3 -.18(re) 2.576 G(tur).18 E(n)-.15 E F0 .076(is simulated from)2.576 F F4(ierr) 2.576 E(or)-.45 E F0 .076(with a non-zero v)2.576 F .076(alue; thus the) -.25 F F3(goto)2.576 E F0 .077(\(or other statement\) is e)2.576 F -.15 (xe)-.15 G 2.577(cuted. It).15 F(is)2.577 E 2.5(ag)108 252.64 S (hastly error to call)-2.5 E F4(ierr)2.5 E(or)-.45 E F0 (from a subroutine which has already returned when the error occurs.)2.5 E 1.036(This routine is essentially tailored to catching end-of-f)108 268.68 R 1.036(ile situations.)-.2 F -.8(Ty)6.036 G 1.036 (pically it is called just before the).8 F (start of the loop which reads the input f)108 279.68 Q(ile, and the)-.2 E F3(goto)2.5 E F0(jumps to a graceful termination of the program.)2.5 E (There is a limit of 5 on the number of dif)108 295.72 Q (ferent error numbers which can be caught.)-.25 E F1(SEE ALSO)72 313.92 Q F0(fc \(I\))108 324.92 Q F1 -.08(BU)72 343.12 S(GS).08 E F0 (There is no w)108 354.12 Q(ay to ignore errors.)-.1 E 2.5(-2)295.17 767 S 2.5(1-)-2.5 G EP %%Page: 22 22 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(LDIV \( III \))72 58 R 173.192 (5/7/73 LDIV)175.692 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(ldi)108 134.2 Q 1.3 -.65 (v, l)-.25 H(rem).65 E/F2 10/Symbol SF(-)2.5 E F0(long di)2.5 E(vision) -.25 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF(ldi)108 163.4 Q (v\(hidi)-.1 E(vidend, lodi)-.1 E(vidend, di)-.1 E(visor\))-.1 E(lr)108 179.44 Q(em\(hidi)-.18 E(vidend, lodi)-.1 E(vidend, di)-.1 E(visor\))-.1 E F1(DESCRIPTION)72 197.64 Q F0 .337 (The concatenation of the signed 16-bit)108 208.64 R/F4 10 /Times-Italic@0 SF(hidividend)2.837 E F0 .337(and the unsigned 16-bit) 2.837 F F4(lodividend)2.838 E F0 .338(is di)2.838 F .338(vided by)-.25 F F4(divisor)2.838 E F0(.)A .533 (The 16-bit signed quotient is returned by)108 219.64 R F4(ldiv)3.033 E F0 .533(and the 16-bit signed remainder is returned by)3.033 F F4(lr) 3.033 E(em.)-.37 E F0(Di)5.532 E(vide)-.25 E .561 (check and erroneous results will occur unless the magnitude of the di) 108 230.64 R .561(visor is greater than that of the high-)-.25 F (order di)108 241.64 Q(vidend.)-.25 E(An inte)108 257.68 Q(ger di)-.15 E (vision of an unsigned di)-.25 E(vidend by a signed di)-.25 E (visor may be accomplished by)-.25 E(quo = ldi)144 273.72 Q(v\(0, di) -.25 E(vidend, di)-.25 E(visor\);)-.25 E (and similarly for the remainder operation.)108 289.76 Q .013 (Often both the quotient and the remainder are w)108 305.8 R 2.513 (anted. Therefore)-.1 F F4(ldiv)2.513 E F0(lea)2.513 E -.15(ve)-.2 G 2.513(sar).15 G .013(emainder in the e)-2.513 F .012(xternal cell)-.15 F F4(ldivr)108 316.8 Q(.)-1.11 E F1 -.08(BU)72 335 S(GS).08 E F0(No di)108 346 Q(vide check check.)-.25 E 2.5(-2)295.17 767 S 2.5(2-)-2.5 G EP %%Page: 23 23 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(LOCV \( III \))72 58 R 169.852 (3/9/74 LOCV)172.352 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(locv)108 134.2 Q/F2 10 /Symbol SF(-)2.5 E F0(long output con)2.5 E -.15(ve)-.4 G(rsion).15 E F1 (SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF(char *locv\(hi, lo\))108 163.4 Q(int hi, lo;)108 174.4 Q F1(DESCRIPTION)72 192.6 Q/F4 10 /Times-Italic@0 SF(Locv)108 203.6 Q F0(con)3.887 E -.15(ve)-.4 G 1.387 (rts a signed double-precision inte).15 F(ger)-.15 E 3.887(,w)-.4 G 1.387(hose parts are passed as ar)-3.887 F 1.388(guments, to the equi) -.18 F -.25(va)-.25 G(lent).25 E (ASCII character string and returns a pointer to that string.)108 214.6 Q F1 -.08(BU)72 232.8 S(GS).08 E F0(Since)108 243.8 Q F4(locv)2.926 E F0 .426(returns a pointer to a static b)2.926 F(uf)-.2 E .425 (fer containing the con)-.25 F -.15(ve)-.4 G .425 (rted result, it cannot be used twice in the).15 F(same e)108 254.8 Q (xpression; the second result o)-.15 E -.15(ve)-.15 G(rwrites the f).15 E(irst.)-.2 E 2.5(-2)295.17 767 S 2.5(3-)-2.5 G EP %%Page: 24 24 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(LOG \( III \))72 58 R 174.022 (4/30/72 LOG)176.522 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(log)108 134.2 Q/F2 10 /Symbol SF(-)2.5 E F0(natural log)2.5 E(arithm)-.05 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF 21.84(jsr pc,log)108 163.4 R (double log\(x\))108 179.44 Q(double x;)108 190.44 Q F1(DESCRIPTION)72 208.64 Q F0(The natural log)108 219.64 Q (arithm of fr0 is returned in fr0.)-.05 E(From C, the natural log)5 E (arithm of)-.05 E F3(x)2.5 E F0(is returned.)2.5 E F1(DIA)72 237.84 Q (GNOSTICS)-.44 E F0 .063(The error bit \(c-bit\) is set if the input ar) 108 248.84 R .064 (gument is less than or equal to zero and the result is a ne)-.18 F -.05 (ga)-.15 G(ti).05 E .364 -.15(ve n)-.25 H(um-).15 E(ber v)108 259.84 Q (ery lar)-.15 E(ge in magnitude.)-.18 E (From C, there is no error indication.)5 E F1 -.08(BU)72 278.04 S(GS).08 E F0 2.5(-2)295.17 767 S 2.5(4-)-2.5 G EP %%Page: 25 25 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q(MONIT)72 58 Q -.834(OR \( III \))-.18 F 148.092(2/11/74 MONIT)150.592 F -.834(OR \( III \))-.18 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(monitor)108 134.2 Q/F2 10/Symbol SF(-)2.5 E F0(prepare e)2.5 E -.15(xe)-.15 G(cution prof).15 E (ile)-.2 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF(monitor\(lo)108 163.4 Q(wpc, highpc, b)-.1 E(uffer)-.2 E 2.5(,b)-.92 G(ufsize\))-2.7 E (int lo)108 174.4 Q(wpc\( \), highpc\( \), b)-.1 E(uffer[ ], b)-.2 E (ufsize;)-.2 E F1(DESCRIPTION)72 192.6 Q/F4 10/Times-Italic@0 SF (Monitor)108 203.6 Q F0 .107(is an interf)2.607 F .106 (ace to the system')-.1 F 2.606(sp)-.55 G(rof)-2.606 E .106 (ile entry \(II\).)-.2 F F4(Lowpc)5.106 E F0(and)2.606 E F4(highpc)2.606 E F0 .106(are the names of tw)2.606 F 2.606(of)-.1 G(unctions;)-2.606 E F4 -.2(bu)108 214.6 S -.18(ff).2 G(er).18 E F0 .341 (is the address of a \(user supplied\) array of)2.841 F F4 -.2(bu)2.841 G(fsize).2 E F0(inte)2.841 E(gers.)-.15 E F4(Monitor)5.341 E F0 .341 (arranges for the system to sam-)2.841 F .965(ple the user')108 225.6 R 3.465(sp)-.55 G .965(rogram counter periodically and record the e)-3.465 F -.15(xe)-.15 G .964(cution histogram in the b).15 F(uf)-.2 E(fer)-.25 E 5.964(.T)-.55 G .964(he lo)-5.964 F(west)-.25 E .46 (address sampled is that of)108 236.6 R F4(lowpc)2.96 E F0 .46 (and the highest is just belo)2.96 F(w)-.25 E F4(highpc.)2.96 E F0 -.15 (Fo)5.46 G 2.96(rt).15 G .46(he results to be signif)-2.96 F .46 (icant, es-)-.2 F .552(pecially where there are small, hea)108 247.6 R .552(vily used routines, it is suggested that the b)-.2 F(uf)-.2 E .552 (fer be no more than a fe)-.25 F(w)-.25 E (times smaller than the range of locations sampled.)108 258.6 Q 1.6 -.8 (To p)108 274.64 T(rof).8 E(ile the entire program, it is suf)-.2 E -.2 (fi)-.25 G(cient to use).2 E -.15(ex)144 290.68 S(tern ete).15 E(xt;) -.15 E(...)144 301.68 Q(monitor\(2, &ete)144 312.68 Q(xt, b)-.15 E (uf, b)-.2 E(ufsize\);)-.2 E F4(Ete)108 328.72 Q(xt)-.2 E F0 (is a loader)2.5 E(-def)-.2 E(ined symbol which lies just abo)-.2 E .3 -.15(ve a)-.15 H(ll the program te).15 E(xt.)-.15 E 1.6 -.8(To s)108 344.76 T(top e).8 E -.15(xe)-.15 G (cution monitoring and write the results on the f).15 E(ile)-.2 E F4 (mon.out,)2.5 E F0(use)2.5 E(monitor\(0\);)144 360.8 Q (Then, when the program e)108 376.84 Q (xits, prof \(I\) can be used to e)-.15 E(xamine the results.)-.15 E .492(It is seldom necessary to call this routine directly; the)108 392.88 R F2(-)2.992 E F3(p)A F0 .492(option of)2.992 F F4(cc)2.992 E F0 .493(is simpler if one is satisf)2.993 F .493(ied with its)-.2 F(def)108 403.88 Q(ault prof)-.1 E(ile range and resolution.)-.2 E F1(FILES)72 422.08 Q F0(mon.out)108 433.08 Q F1(SEE ALSO)72 451.28 Q F0 (prof \(I\), prof)108 462.28 Q(il \(II\), cc \(I\))-.2 E 2.5(-2)295.17 767 S 2.5(5-)-2.5 G EP %%Page: 26 26 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.35(NA)72 58 S -.834(RGS \( III \)) .35 F 161.032(5/10/73 N)163.532 F -.834(ARGS \( III \))-.35 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(nar)108 134.2 Q(gs)-.18 E/F2 10/Symbol SF(-)2.5 E F0(ar)2.5 E(gument count)-.18 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF(nar)108 163.4 Q(gs\( \))-.1 E F1 (DESCRIPTION)72 181.6 Q/F4 10/Times-Italic@0 SF(Nar)108 192.6 Q(gs)-.37 E F0(returns the number of actual parameters supplied by the caller of \ the routine which calls)2.5 E F4(nar)2.5 E(gs)-.37 E F0(.)A .51(The ar) 108 208.64 R .51 (gument count is accurate only when none of the actual parameters is) -.18 F F4(float)3.009 E F0(or)3.009 E F4(double)3.009 E F0 5.509(.S)C .509(uch parame-)-5.509 F(ters count as four ar)108 219.64 Q (guments instead of one.)-.18 E F1 -.08(BU)72 237.84 S(GS).08 E F0 .388 (As indicated.)108 248.84 R .388(Also, this routine does not w)5.388 F .388(ork \(and cannot be made to w)-.1 F .389 (ork\) in programs with separated I)-.1 F .774(and D space.)108 259.84 R .774(Altogether it is best to a)5.774 F -.2(vo)-.2 G .774 (id using this routine and depend, for e).2 F .773 (xample, on passing an e)-.15 F(x-)-.15 E(plicit ar)108 270.84 Q (gument count.)-.18 E 2.5(-2)295.17 767 S 2.5(6-)-2.5 G EP %%Page: 27 27 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(NLIST \( III \))72 58 R 166.242 (6/12/72 NLIST)168.742 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(nlist)108 134.2 Q/F2 10 /Symbol SF(-)2.5 E F0(get entries from name list)2.5 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF(nlist\(f)108 163.4 Q(ilename, nl\))-.25 E (char *f)108 174.4 Q(ilename;)-.25 E(struct {)108 185.4 Q 14.06 (char name[8];)144 196.4 R 21.83(int type;)144 207.4 R 21.83(int v)144 218.4 R(alue;)-.1 E 2.5(}n)108 229.4 S(l[ ];)-2.5 E F1(DESCRIPTION)72 247.6 Q/F4 10/Times-Italic@0 SF(Nlist)108 258.6 Q F0 -.15(ex)2.655 G .155(amines the name list in the gi).15 F -.15(ve)-.25 G 2.655(ne).15 G -.15(xe)-2.805 G .155(cutable output f).15 F .155(ile and selecti)-.2 F -.15(ve)-.25 G .155(ly e).15 F .155(xtracts a list of v)-.15 F 2.655 (alues. The)-.25 F .421(name list consists of a list of 8-character nam\ es \(null padded\) each follo)108 269.6 R .421(wed by tw)-.25 F 2.921 (ow)-.1 G 2.921(ords. The)-3.021 F .421(list is ter)2.921 F(-)-.2 E .775 (minated with a null name.)108 280.6 R .776(Each name is look)5.776 F .776(ed up in the name list of the f)-.1 F 3.276(ile. If)-.2 F .776 (the name is found, the)3.276 F .53(type and v)108 291.6 R .529 (alue of the name are placed in the tw)-.25 F 3.029(ow)-.1 G .529 (ords follo)-3.129 F .529(wing the name.)-.25 F .529 (If the name is not found, the)5.529 F(type entry is set to)108 302.6 Q F2(-)2.5 E F0(1.)A .79(This subroutine is useful for e)108 318.64 R .79 (xamining the system name list k)-.15 F .791(ept in the f)-.1 F(ile)-.2 E F3(/unix)3.291 E F0 5.791(.I)C 3.291(nt)-5.791 G .791(his w)-3.291 F .791(ay programs)-.1 F(can obtain system addresses that are up to date.) 108 329.64 Q F1(SEE ALSO)72 347.84 Q F0(a.out \(V\))108 358.84 Q F1(DIA) 72 377.04 Q(GNOSTICS)-.44 E F0(All type entries are set to)108 388.04 Q F2(-)2.5 E F0 2.5(1i)C 2.5(ft)-2.5 G(he f)-2.5 E (ile cannot be found or if it is not a v)-.2 E(alid namelist.)-.25 E F1 -.08(BU)72 406.24 S(GS).08 E F0 2.5(-2)295.17 767 S 2.5(7-)-2.5 G EP %%Page: 28 28 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q(PERR)72 58 Q -.834(OR \( III \))-.4 F 156.072(11/5/73 PERR)158.572 F -.834(OR \( III \))-.4 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(perror)108 134.2 Q 2.5 (,s)-.4 G .4 LW 154.81 136.7 149.81 136.7 DL 2.5(ys errlist,)140.92 134.2 R 200.92 136.7 195.92 136.7 DL 2.5(sys nerr)183.14 134.2 R 2.5(,e) -.4 G(rrno)-2.5 E/F2 10/Symbol SF(-)2.5 E F0(system error messages)2.5 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF(perr)108 163.4 Q(or\(s\)) -.18 E(char *s;)108 174.4 Q 139.95 192.94 134.95 192.94 DL(int sys)108 190.44 Q(nerr;)5 E 152.72 203.94 147.72 203.94 DL(char *sys)108 201.44 Q (errlist[];)5 E(int err)108 217.48 Q(no;)-.15 E F1(DESCRIPTION)72 235.68 Q/F4 10/Times-Italic@0 SF -.8(Pe)108 246.68 S(rr).8 E(or)-.45 E F0 .082 (produces a short error message describing the last error encountered d\ uring a call to the system from)2.583 F 3.2(aCp)108 257.68 S 3.2 (rogram. First)-3.2 F .7(the ar)3.2 F .7(gument string)-.18 F F4(s)3.2 E F0 .701(is printed, then a colon, then the message and a ne)3.2 F 3.201 (w-line. Most)-.25 F(usefully)108 268.68 Q 2.709(,t)-.65 G .209(he ar) -2.709 F .208 (gument string is the name of the program which incurred the error)-.18 F 5.208(.T)-.55 G .208(he error number is tak-)-5.208 F 1.193 (en from the e)108 279.68 R 1.193(xternal v)-.15 F(ariable)-.25 E F4 (errno,)3.694 E F0 1.194(which is set when errors occur b)3.694 F 1.194 (ut not cleared when non-erroneous)-.2 F(calls are made.)108 290.68 Q 1.864 -.8(To s)108 306.72 T .264(implify v).8 F .264 (ariant formatting of messages, the v)-.25 F .263 (ector of message strings)-.15 F 423.548 309.22 418.548 309.22 DL F4 2.5 (sys errlist)406.328 306.72 R F0 .263(is pro)2.763 F(vided;)-.15 E F4 (errno)2.763 E F0(can)2.763 E .214(be used as an inde)108 317.72 R 2.714 (xi)-.15 G 2.714(nt)-2.714 G .215 (his table to get the message string without the ne)-2.714 F(wline.)-.25 E 447.11 320.22 442.11 320.22 DL F4 2.5(Sys nerr)428.78 317.72 R F0 .215 (is the lar)2.715 F .215(gest mes-)-.18 F .62(sage number pro)108 328.72 R .62(vided for in the table; it should be check)-.15 F .619 (ed because ne)-.1 F 3.119(we)-.25 G .619 (rror codes may be added to the)-3.119 F(system before the)108 339.72 Q 2.5(ya)-.15 G(re added to the table.)-2.5 E F1(SEE ALSO)72 357.92 Q F0 (Introduction to System Calls)108 368.92 Q F1 -.08(BU)72 387.12 S(GS).08 E F0 2.5(-2)295.17 767 S 2.5(8-)-2.5 G EP %%Page: 29 29 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q(PO)72 58 Q 1.666(W\(I)-.35 G -.834 (II \))-1.666 F 172.702(4/30/73 PO)175.202 F 1.666(W\(I)-.35 G -.834 (II \))-1.666 F/F1 8/Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(po) 108 134.2 Q(w)-.25 E/F2 10/Symbol SF(-)2.5 E F0(floating e)2.5 E (xponentiation)-.15 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF(mo) 108 163.4 Q 11.94(vf x,fr0)-.1 F(mo)108 174.4 Q 11.94(vf y)-.1 F(,fr1) -.55 E 21.84(jsr pc,po)108 185.4 R(w)-.1 E(double po)108 201.44 Q (w\(x,y\))-.1 E(double x, y;)108 212.44 Q F1(DESCRIPTION)72 235.68 Q/F4 10/Times-Italic@0 SF -.8(Po)108 246.68 S(w).8 E F0 .135(returns the v) 2.635 F .135(alue of)-.25 F F4(x)2.635 E/F5 8/Times-Italic@0 SF(y)-5 I F0 .135(\(in fr0\).)2.635 5 N F4 -.8(Po)5.135 G(w\(0.0,|y\)).8 E F0 .136 (is 0 for an)2.635 F(y)-.15 E F4 3.736 -.55(y. P)2.636 H(ow\()-.25 E F2 (-)A F4(x,|y\))A F0 .136(returns a result only if)2.636 F F4(y)2.636 E F0 .136(is an in-)2.636 F(te)108 257.68 Q(ger)-.15 E(.)-.55 E F1 (SEE ALSO)72 275.88 Q F0 -.15(ex)108 286.88 S 2.5(p\().15 G (III\), log \(III\))-2.5 E F1(DIA)72 305.08 Q(GNOSTICS)-.44 E F0 .722 (The carry bit is set on return in case of o)108 316.08 R -.15(ve)-.15 G (rflo).15 E -.65(w,)-.25 G F4(pow\(0.0,|0.0\),)3.872 E F0(or)3.222 E F4 (pow\()3.221 E F2(-)A F4(x,|y\))A F0 .721(for non-inte)3.221 F(gral)-.15 E F4 -.55(y.)3.221 G F0 .721(From C)6.271 F(there is no diagnostic.)108 327.08 Q F1 -.08(BU)72 345.28 S(GS).08 E F0 2.5(-2)295.17 767 S 2.5(9-) -2.5 G EP %%Page: 30 30 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(PRINTF \( III \))72 58 R 160.122 (9/17/73 PRINTF)162.622 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(printf)108 134.2 Q/F2 10 /Symbol SF(-)2.5 E F0(formatted print)2.5 E F1(SYNOPSIS)72 152.4 Q/F3 10 /Times-Bold@0 SF(printf\(f)108 163.4 Q(ormat, ar)-.25 E(g)-.1 E/F4 6 /Times-Bold@0 SF(1)3 I F3 2.5(,.)-3 K(..\);)-2.5 E(char *f)108 174.4 Q (ormat;)-.25 E F1(DESCRIPTION)72 192.6 Q/F5 10/Times-Italic@0 SF(Printf) 108 203.6 Q F0(con)2.562 E -.15(ve)-.4 G .063 (rts, formats, and prints its ar).15 F .063(guments after the f)-.18 F .063(irst under control of the f)-.2 F .063(irst ar)-.2 F 2.563 (gument. The)-.18 F -.2(fi)2.563 G(rst).2 E(ar)108 214.6 Q 1.75 (gument is a character string which contains tw)-.18 F 4.25(ot)-.1 G 1.75(ypes of objects: plain characters, which are simply)-4.25 F .206 (copied to the output stream, and con)108 225.6 R -.15(ve)-.4 G .207 (rsion specif).15 F .207(ications, each of which causes con)-.2 F -.15 (ve)-.4 G .207(rsion and printing of).15 F(the ne)108 236.6 Q (xt successi)-.15 E .3 -.15(ve a)-.25 H -.18(rg).15 G(ument to).18 E F5 (printf)2.5 E(.)-.15 E F0(Each con)108 252.64 Q -.15(ve)-.4 G (rsion specif).15 E(ication is introduced by the character)-.2 E F3(%) 2.5 E F0 5(.F)C(ollo)-5.15 E(wing the)-.25 E F3(%)2.5 E F0 2.5(,t)C (here may be)-2.5 E F2(-)128 268.68 Q F0 .024(an optional minus sign `) 4.51 F(`)-.74 E F2(-)A F0 1.504 -.74('' w)D .024(hich specif).74 F(ies) -.2 E F5 .024(left adjustment)2.524 F F0 .024(of the con)2.524 F -.15 (ve)-.4 G .024(rted ar).15 F .024(gument in the indicat-)-.18 F(ed f)138 279.68 Q(ield;)-.2 E F2(-)128 295.72 Q F0 .235 (an optional digit string specifying a)4.51 F F5 -.2(fi)2.735 G .235 (eld width;).2 F F0 .235(if the con)2.735 F -.15(ve)-.4 G .236(rted ar) .15 F .236(gument has fe)-.18 F .236(wer characters than)-.25 F .362 (the f)138 306.72 R .361(ield width it will be blank-padded on the left\ \(or right, if the left-adjustment indicator has been)-.2 F(gi)138 317.72 Q -.15(ve)-.25 G(n\) to mak).15 E 2.5(eu)-.1 G 2.5(pt)-2.5 G (he f)-2.5 E(ield width;)-.2 E F2(-)128 333.76 Q F0 (an optional period `)4.51 E(`)-.74 E F3(.)A F0 1.48 -.74('' w)D (hich serv).74 E(es to separate the f)-.15 E(ield width from the ne)-.2 E(xt digit string;)-.15 E F2(-)128 349.8 Q F0 .564 (an optional digit string)4.51 F F5(\(pr)3.064 E(ecision\))-.37 E F0 .564(which specif)3.064 F .564 (ies the number of digits to appear after the decimal)-.2 F (point, for e- and f-con)138 360.8 Q -.15(ve)-.4 G(rsion, or the maximu\ m number of characters to be printed from a string;).15 E F2(-)128 376.84 Q F0 2.5(ac)4.51 G(haracter which indicates the type of con)-2.5 E -.15(ve)-.4 G(rsion to be applied.).15 E(The con)108 392.88 Q -.15(ve) -.4 G(rsion characters and their meanings are).15 E(d)123 408.92 Q(o)123 419.92 Q 10(xT)123 430.92 S(he inte)-10 E(ger ar)-.15 E(gument is con) -.18 E -.15(ve)-.4 G(rted to decimal, octal, or he).15 E (xadecimal notation respecti)-.15 E -.15(ve)-.25 G(ly).15 E(.)-.65 E 11.67(fT)123 446.96 S .734(he ar)-11.67 F .734(gument is con)-.18 F -.15 (ve)-.4 G .734(rted to decimal notation in the style `).15 F(`[)-.74 E F2(-)A F0(]ddd.ddd')A 3.234('w)-.74 G .734(here the number of d')-3.234 F(s)-.55 E .917 (after the decimal point is equal to the precision specif)138 457.96 R .917(ication for the ar)-.2 F 3.417(gument. If)-.18 F .917 (the precision is)3.417 F .035(missing, 6 digits are gi)138 468.96 R -.15(ve)-.25 G .035(n; if the precision is e).15 F .034 (xplicitly 0, no digits and no decimal point are printed.)-.15 F(The ar) 138 479.96 Q(gument should be)-.18 E F5(float)2.5 E F0(or)2.5 E F5 (double)2.5 E(.)-.15 E F0 10.56(eT)123 496 S .48(he ar)-10.56 F .48 (gument is con)-.18 F -.15(ve)-.4 G .48(rted in the style `).15 F(`[) -.74 E F2(-)A F0(]d)A F3(.)A F0(ddd)A F3(e)A F2A F0(dd')A 2.981('w) -.74 G .481(here there is one digit before the decimal)-2.981 F .536 (point and the number after is equal to the precision specif)138 507 R .535(ication for the ar)-.2 F .535(gument; when the preci-)-.18 F (sion is missing, 6 digits are produced.)138 518 Q(The ar)5 E (gument should be a)-.18 E F5(float)2.5 E F0(or)2.5 E F5(double)2.5 E F0 (quantity)2.5 E(.)-.65 E 10.56(cT)123 534.04 S(he ar)-10.56 E (gument character is printed.)-.18 E 11.11(sT)123 550.08 S .913(he ar) -11.11 F .913(gument is tak)-.18 F .913(en to be a string \(character p\ ointer\) and characters from the string are printed)-.1 F 1.207(until a\ null character or until the number of characters indicated by the prec\ ision specif)138 561.08 R 1.207(ication is)-.2 F(reached; ho)138 572.08 Q(we)-.25 E -.15(ve)-.25 G 2.5(ri).15 G 2.5(ft)-2.5 G (he precision is 0 or missing all characters up to a null are printed.) -2.5 E 12.22(lT)123 588.12 S .522(he ar)-12.22 F .523(gument is tak)-.18 F .523(en to be an unsigned inte)-.1 F .523(ger which is con)-.15 F -.15 (ve)-.4 G .523(rted to decimal and printed \(the re-).15 F (sult will be in the range 0 to 65535\).)138 599.12 Q .2 (If no recognizable character appears after the)108 615.16 R F3(%)2.7 E F0 2.7(,t)C .199(hat character is printed; thus)-2.7 F F3(%)2.699 E F0 .199(may be printed by use of)2.699 F 1.101(the string)108 626.16 R F3 (%%)3.601 E F0 6.101(.I)C 3.601(nn)-6.101 G 3.601(oc)-3.601 G 1.102 (ase does a non-e)-3.601 F 1.102(xistent or small f)-.15 F 1.102 (ield width cause truncation of a f)-.2 F 1.102(ield; padding)-.2 F(tak) 108 637.16 Q 1.005(es place only if the specif)-.1 F 1.005(ied f)-.2 F 1.005(ield width e)-.2 F 1.005(xceeds the actual width.)-.15 F 1.005 (Characters generated by)6.005 F F5(printf)3.505 E F0(are)3.505 E (printed by calling)108 648.16 Q F5(putc)2.5 E(har)-.15 E(.)-1.11 E F1 (SEE ALSO)72 666.36 Q F0(putchar \(III\))108 677.36 Q F1 -.08(BU)72 695.56 S(GS).08 E F0 -1.11(Ve)108 706.56 S(ry wide f)1.11 E (ields \(>128 characters\) f)-.2 E(ail.)-.1 E 2.5(-3)295.17 767 S 2.5 (0-)-2.5 G EP %%Page: 31 31 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(PUTC \( III \))72 58 R 169.012 (6/12/72 PUTC)171.512 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(putc, putw)108 134.2 Q 2.5(,f)-.65 G(creat, f)-2.5 E(flush)-.25 E/F2 10/Symbol SF(-)5 E F0 -.2 (bu)5 G -.25(ff).2 G(ered output).25 E F1(SYNOPSIS)72 152.4 Q/F3 10 /Times-Bold@0 SF(mo)108 163.4 Q 17.77(v$)-.1 G -.25(fi)-17.77 G (lename,r0).25 E 21.84(jsr r5,fcr)108 174.4 R(eat; iob)-.18 E(uf)-.2 E (fcr)108 190.44 Q(eat\(f)-.18 E(ile, iob)-.25 E(uf\))-.2 E(char *f)108 201.44 Q(ile;)-.25 E(struct b)108 212.44 Q(uf *iob)-.2 E(uf;)-.2 E F0 (\(get byte in r0\))108 228.48 Q F3 21.84(jsr r5,putc;)108 239.48 R(iob) 2.5 E(uf)-.2 E(putc\(c, iob)108 255.52 Q(uf\))-.2 E(int c;)108 266.52 Q (struct b)108 277.52 Q(uf *iob)-.2 E(uf;)-.2 E F0(\(get w)108 293.56 Q (ord in r0\))-.1 E F3 21.84(jsr r5,putw;)108 304.56 R(iob)2.5 E(uf)-.2 E (putw\(w)108 320.6 Q 2.5(,i)-.55 G(ob)-2.5 E(uf\);)-.2 E(int w;)108 331.6 Q(struct b)108 342.6 Q(uf *iob)-.2 E(uf;)-.2 E 21.84 (jsr r5,flush;)108 358.64 R(iob)2.5 E(uf)-.2 E(fflush\(iob)108 374.68 Q (uf\))-.2 E(struct b)108 385.68 Q(uf *iob)-.2 E(uf;)-.2 E F1 (DESCRIPTION)72 403.88 Q/F4 10/Times-Italic@0 SF(Fcr)108 414.88 Q(eat) -.37 E F0 .185(creates the gi)2.685 F -.15(ve)-.25 G 2.685(nf).15 G .185 (ile \(mode 666\) and sets up the b)-2.885 F(uf)-.2 E(fer)-.25 E F4(iob) 2.685 E(uf)-.2 E F0 .185(\(size 518 bytes\);)2.685 F F4(putc)2.685 E F0 (and)2.685 E F4(putw)2.685 E F0 .185(write a)2.685 F .999(byte or w)108 425.88 R .999(ord respecti)-.1 F -.15(ve)-.25 G .999(ly onto the f).15 F (ile;)-.2 E F4(flush)3.499 E F0 .998(forces the contents of the b)3.499 F(uf)-.2 E .998(fer to be written, b)-.25 F .998(ut does not)-.2 F (close the f)108 436.88 Q 2.5(ile. The)-.2 F(structure of the b)2.5 E (uf)-.2 E(fer is:)-.25 E F3(struct b)108 447.88 Q(uf {)-.2 E(int f)144 458.88 Q 29.47(ildes; /*)-.25 F(File descriptor */)2.5 E(int nunused;) 144 469.88 Q(/* Remaining slots */)18.37 E(char *xfr)144 480.88 Q 17.76 (ee; /*)-.18 F(Ptr to next fr)2.5 E(ee slot */)-.18 E(char b)144 491.88 Q 4.99(uff[512]; /*)-.2 F(The b)2.5 E(uffer */)-.2 E(};)108 502.88 Q F0 (Before terminating, a program should call)108 518.92 Q F4(flush)2.5 E F0(to force out the last of the output)2.5 E F4(\(f)2.5 E(flush)-.18 E F0(from C\).)2.5 E(The user must supply)108 534.96 Q F4(iob)2.5 E(uf)-.2 E(,)-.1 E F0(which should be)2.5 E(gin on a w)-.15 E(ord boundary)-.1 E (.)-.65 E 1.6 -.8(To w)108 551 T(rite a ne).8 E 2.5(wf)-.25 G (ile using the same b)-2.7 E(uf)-.2 E(fer)-.25 E 2.5(,i)-.4 G 2.5(ts) -2.5 G(uf)-2.5 E -.2(fi)-.25 G(ces to call).2 E F4([f]flush,)2.5 E F0 (close the f)2.5 E(ile, and call)-.2 E F4(fcr)2.5 E(eat)-.37 E F0(ag)2.5 E(ain.)-.05 E F1(SEE ALSO)72 569.2 Q F0 (creat \(II\), write \(II\), getc \(III\))108 580.2 Q F1(DIA)72 598.4 Q (GNOSTICS)-.44 E F4(Fcr)108 609.4 Q(eat)-.37 E F0 .879 (sets the error bit \(c-bit\) if the f)3.379 F .879(ile creation f)-.2 F .88(ailed \(from C, returns)-.1 F F2(-)3.38 E F0(1\).)A F4(Putc)5.88 E F0(and)3.38 E F4(putw)3.38 E F0 .88(return their)3.38 F .374 (character \(w)108 620.4 R .374(ord\) ar)-.1 F 2.874(gument. In)-.18 F .373(all calls)2.873 F F4(errno)2.873 E F0 .373 (is set appropriately to 0 or to a system error number)2.873 F 5.373(.S) -.55 G .373(ee in-)-5.373 F(troduction \(II\).)108 631.4 Q F1 -.08(BU)72 649.6 S(GS).08 E F0 2.5(-3)295.17 767 S 2.5(1-)-2.5 G EP %%Page: 32 32 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(PUTCHAR \( III \))72 58 R 147.902(5/10/73 PUTCHAR)150.402 F 1.666(\(I)1.666 G -.834(II \))-1.666 F /F1 8/Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(putchar)108 134.2 Q 2.5(,f)-.4 G(lush)-2.5 E/F2 10/Symbol SF(-)2.5 E F0(write character)2.5 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF(putchar\(ch\))108 163.4 Q (flush\( \))108 179.44 Q F1(DESCRIPTION)72 197.64 Q/F4 10/Times-Italic@0 SF(Putc)108 208.64 Q(har)-.15 E F0 .254(writes out its ar)2.753 F .254 (gument and returns it unchanged.)-.18 F .254(Only the lo)5.254 F .254 (w-order byte is written, and only if it)-.25 F .542(is non-null.)108 219.64 R .542(Unless other arrangements ha)5.542 F .842 -.15(ve b)-.2 H .542(een made,).15 F F4(putc)3.042 E(har)-.15 E F0 .542(writes in unb) 3.042 F(uf)-.2 E .542(fered f)-.25 F .542(ashion on the stan-)-.1 F (dard output f)108 230.64 Q(ile.)-.2 E .384 (Associated with this routine is an e)108 246.68 R .385(xternal v)-.15 F (ariable)-.25 E F4(fout)2.885 E F0 .385(which has the structure of a b) 2.885 F(uf)-.2 E .385(fer discussed under)-.25 F 1.197(putc \(III\).)108 257.68 R 1.197(If the f)6.197 F 1.196 (ile descriptor part of this structure \(f)-.2 F 1.196(irst w)-.2 F 1.196(ord\) is greater than 2, output via)-.1 F F4(putc)3.696 E(har)-.15 E F0(is)3.696 E -.2(bu)108 268.68 S -.25(ff).2 G 2.5(ered. T).25 F 2.5 (oa)-.8 G(chie)-2.5 E .3 -.15(ve b)-.25 H(uf)-.05 E (fered output one may say)-.25 E 2.5(,f)-.65 G(or e)-2.5 E(xample,)-.15 E(fout = dup\(1\);)144 284.72 Q(or)51.81 E(fout = creat\(...\);)144 295.72 Q .396(In such a case)108 311.76 R F4(flush)2.896 E F0 .396(must\ be called before the program terminates in order to flush out the b) 2.896 F(uf)-.2 E .397(fered output.)-.25 F F4(Flush)108 322.76 Q F0 (may be called at an)2.5 E 2.5(yt)-.15 G(ime.)-2.5 E F1(SEE ALSO)72 340.96 Q F0(putc \(III\))108 351.96 Q F1 -.08(BU)72 370.16 S(GS).08 E F0 (The)108 381.16 Q F4(fout)2.5 E F0(notion is kludgy)2.5 E(.)-.65 E 2.5 (-3)295.17 767 S 2.5(2-)-2.5 G EP %%Page: 33 33 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q(QSOR)72 58 Q 1.666(T\(I)-.6 G -.834 (II \))-1.666 F 164.892(2/8/75 QSOR)167.392 F 1.666(T\(I)-.6 G -.834 (II \))-1.666 F/F1 8/Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0 (qsort)108 134.2 Q/F2 10/Symbol SF(-)2.5 E F0(quick)2.5 E(er sort)-.1 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF (qsort\(base, nel, width, compar\))108 163.4 Q(char *base;)108 174.4 Q (int \(*compar\)\( \);)108 185.4 Q F1(DESCRIPTION)72 203.6 Q/F4 10 /Times-Italic@0 SF(Qsort)108 214.6 Q F0 .337 (is an implementation of the quick)2.837 F(er)-.1 E .337 (-sort algorithm.)-.2 F .337(The f)5.337 F .337(irst ar)-.2 F .336 (gument is a pointer to the base of the)-.18 F .042(data; the second is\ the number of elements; the third is the width of an element in bytes;\ the last is the name)108 225.6 R .645(of the comparison routine.)108 236.6 R .644(It is called with tw)5.644 F 3.144(oa)-.1 G -.18(rg)-3.144 G .644(uments which are pointers to the elements being com-).18 F 3.091 (pared. The)108 247.6 R .591(routine must return an inte)3.091 F .592 (ger less than, equal to, or greater than 0 according as the f)-.15 F .592(irst ar)-.2 F(gu-)-.18 E(ment is to be considered less than, equal\ to, or greater than the second.)108 258.6 Q F1(SEE ALSO)72 276.8 Q F0 (sort \(I\))108 287.8 Q F1 -.08(BU)72 306 S(GS).08 E F0 2.5(-3)295.17 767 S 2.5(3-)-2.5 G EP %%Page: 34 34 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(RAND \( III \))72 58 R 166.242 (1/15/73 RAND)168.742 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(rand, srand)108 134.2 Q /F2 10/Symbol SF(-)2.5 E F0(random number generator)2.5 E F1(SYNOPSIS)72 152.4 Q F0(\(seed in r0\))108 163.4 Q/F3 10/Times-Bold@0 SF 21.84 (jsr pc,srand)108 174.4 R(/to initialize)35.05 E 21.84(jsr pc,rand)108 190.44 R(/to get a random number)2.94 E(srand\(seed\))108 206.48 Q (int seed;)108 217.48 Q(rand\( \))108 233.52 Q F1(DESCRIPTION)72 256.76 Q/F4 10/Times-Italic@0 SF(Rand)108 267.76 Q F0 2.004 (uses a multiplicati)4.504 F 2.304 -.15(ve c)-.25 H 2.004 (ongruential random number generator to return successi).15 F 2.303 -.15 (ve p)-.25 H(seudo-random).15 E (numbers \(in r0\) in the range from 0 to 2)108 278.76 Q/F5 7 /Times-Roman@0 SF(15)-5 I F2(-)5 I F0(1.)A .231 (The generator is reinitialized by calling)108 294.8 R F4(sr)2.731 E (and)-.15 E F0 .231(with 1 as ar)2.731 F .231(gument \(in r0\).)-.18 F .231(It can be set to a random starting)5.231 F(point by calling)108 305.8 Q F4(sr)2.5 E(and)-.15 E F0(with whate)2.5 E -.15(ve)-.25 G 2.5 (ry).15 G(ou lik)-2.5 E 2.5(ea)-.1 G 2.5(sa)-2.5 G -.18(rg)-2.5 G (ument, for e).18 E(xample the lo)-.15 E(w-order w)-.25 E (ord of the time.)-.1 E F1 -.08(BU)72 324 S(GS).08 E F0(The lo)108 335 Q (w-order bits are not v)-.25 E(ery random.)-.15 E 2.5(-3)295.17 767 S 2.5(4-)-2.5 G EP %%Page: 35 35 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(RESET \( III \))72 58 R 164.012 (5/10/73 RESET)166.512 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(reset, sete)108 134.2 Q (xit)-.15 E/F2 10/Symbol SF(-)2.5 E F0 -.15(exe)2.5 G (cute non-local goto).15 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF (setexit\( \))108 163.4 Q -.18(re)108 179.44 S(set\( \)).18 E F1 (DESCRIPTION)72 197.64 Q F0 .693(These routines are useful for dealing \ with errors and interrupts encountered in a lo)108 208.64 R(w-le)-.25 E -.15(ve)-.25 G 3.192(ls).15 G .692(ubroutine of a)-3.192 F(program.)108 219.64 Q/F4 10/Times-Italic@0 SF(Sete)108 235.68 Q(xit)-.2 E F0(sa)2.5 E -.15(ve)-.2 G 2.5(si).15 G(ts stack en)-2.5 E (vironment in a static place for later use by)-.4 E F4 -.37(re)2.5 G (set.).37 E(Reset)108 251.72 Q F0 .312(restores the en)2.812 F .312 (vironment sa)-.4 F -.15(ve)-.2 G 2.812(db).15 G 2.812(yt)-2.812 G .312 (he last call of)-2.812 F F4(sete)2.812 E(xit.)-.2 E F0 .312 (It then returns in such a w)5.312 F .313(ay that e)-.1 F -.15(xe)-.15 G (cution).15 E .335(continues as if the call of)108 262.72 R F4(sete) 2.835 E(xit)-.2 E F0 .335(had just returned.)2.835 F .334 (All accessible data ha)5.335 F .634 -.15(ve v)-.2 H .334 (alues as of the time)-.1 F F4 -.37(re)2.834 G(set).37 E F0 -.1(wa)2.834 G(s).1 E(called.)108 273.72 Q(The routine that called)108 289.76 Q F4 (sete)2.5 E(xit)-.2 E F0(must still be acti)2.5 E .3 -.15(ve w)-.25 H (hen).15 E F4 -.37(re)2.5 G(set).37 E F0(is called.)2.5 E F1(SEE ALSO)72 307.96 Q F0(signal \(II\))108 318.96 Q F1 -.08(BU)72 337.16 S(GS).08 E F0 2.5(-3)295.17 767 S 2.5(5-)-2.5 G EP %%Page: 36 36 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(SETFIL \( III \))72 58 R 159.292 (10/29/73 SETFIL)161.792 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(setf)108 134.2 Q(il)-.2 E/F2 10/Symbol SF(-)2.5 E F0(specify F)2.5 E(ortran f)-.15 E(ile name) -.2 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF(call setf)108 163.4 Q (il \()-.25 E F0(unit)2.5 E F3(,)A F0(hollerith-string)2.5 E F3(\))2.5 E F1(DESCRIPTION)72 181.6 Q/F4 10/Times-Italic@0 SF(Setf)108 192.6 Q(il) -.2 E F0(pro)3.205 E .705(vides a primiti)-.15 F 1.005 -.15(ve w)-.25 H .705(ay to associate an inte).05 F .705(ger I/O)-.15 F F4(unit)3.205 E F0 .705(number with a f)3.205 F .705(ile named by the)-.2 F F4 (hollerith-)3.205 E(string)108 203.6 Q(.)-.15 E F0 .564 (The end of the f)5.564 F .564(ile name is indicated by a blank.)-.2 F .564(Subsequent I/O on this unit number will refer to)5.564 F(the f)108 214.6 Q(ile whose name is specif)-.2 E(ied by the string.)-.2 E F4(Setf) 108 230.64 Q(il)-.2 E F0 .52(should be called only before an)3.02 F 3.02 (yI)-.15 G .52(/O has been done on the)-3.02 F F4(unit,)3.02 E F0 .52 (or just after doing a)3.02 F F3 -.18(re)3.02 G(wind).18 E F0(or)3.02 E F3(end-)3.02 E -.25(fi)108 241.64 S(le.).25 E F0(It is inef)5 E(fecti) -.25 E .3 -.15(ve f)-.25 H(or unit numbers 5 and 6.).15 E F1(SEE ALSO)72 259.84 Q F0(fc \(I\))108 270.84 Q F1 -.08(BU)72 289.04 S(GS).08 E F0 (The e)108 300.04 Q(xclusion of units 5 and 6 is unw)-.15 E(arranted.) -.1 E 2.5(-3)295.17 767 S 2.5(6-)-2.5 G EP %%Page: 37 37 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(SIN \( III \))72 58 R 178.462 (3/15/72 SIN)180.962 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(sin, cos)108 134.2 Q/F2 10/Symbol SF(-)2.5 E F0(trigonometric functions)2.5 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF 21.84(jsr pc,sin)108 163.4 R(\(cos\))2.5 E (double sin\(x\))108 179.44 Q(double x;)108 190.44 Q(double cos\(x\))108 206.48 Q(double x;)108 217.48 Q F1(DESCRIPTION)72 235.68 Q F0 (The sine \(cosine\) of fr0 \(resp.)108 246.68 Q F3(x)2.5 E F0 (\), measured in radians, is returned \(in fr0\).)A (The magnitude of the ar)108 262.72 Q(gument should be check)-.18 E (ed by the caller to mak)-.1 E 2.5(es)-.1 G (ure the result is meaningful.)-2.5 E F1 -.08(BU)72 280.92 S(GS).08 E F0 2.5(-3)295.17 767 S 2.5(7-)-2.5 G EP %%Page: 38 38 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q(SQR)72 58 Q 1.666(T\(I)-.6 G -.834 (II \))-1.666 F 169.612(3/15/72 SQR)172.112 F 1.666(T\(I)-.6 G -.834 (II \))-1.666 F/F1 8/Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0 (sqrt)108 134.2 Q/F2 10/Symbol SF(-)2.5 E F0(square root function)2.5 E F1(SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF 21.84(jsr pc,sqrt)108 163.4 R(double sqrt\(x\))108 179.44 Q(double x;)108 190.44 Q F1(DESCRIPTION)72 208.64 Q F0(The square root of fr0 \(resp.)108 219.64 Q F3(x)2.5 E F0 2.5(\)i)C 2.5(sr)-2.5 G(eturned \(in fr0\).)-2.5 E F1(DIA)72 237.84 Q (GNOSTICS)-.44 E F0(The c-bit is set on ne)108 248.84 Q -.05(ga)-.15 G (ti).05 E .3 -.15(ve a)-.25 H -.18(rg).15 G(uments and 0 is returned.) .18 E(There is no error return for C programs.)5 E F1 -.08(BU)72 267.04 S(GS).08 E F0(No error return from C.)108 278.04 Q 2.5(-3)295.17 767 S 2.5(8-)-2.5 G EP %%Page: 39 39 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF(-)72 11 Q -.834(TTYN \( III \))72 58 R 167.912 (1/15/73 TTYN)170.412 F 1.666(\(I)1.666 G -.834(II \))-1.666 F/F1 8 /Times-Bold@0 SF -.16(NA)72 123.2 S(ME).16 E F0(ttyn)108 134.2 Q/F2 10 /Symbol SF(-)2.5 E F0(return name of current type)2.5 E(writer)-.25 E F1 (SYNOPSIS)72 152.4 Q/F3 10/Times-Bold@0 SF 21.84(jsr pc,ttyn)108 163.4 R (ttyn\(f)108 179.44 Q(ile\))-.25 E F1(DESCRIPTION)72 202.68 Q/F4 10 /Times-Italic@0 SF(Ttyn)108 213.68 Q F0 .922 (hunts up the last character of the name of the type)3.422 F .921 (writer which is the standard input \(from)-.25 F F4(as)3.421 E F0 3.421 (\)o)C 3.421(ri)-3.421 G(s)-3.421 E(specif)108 224.68 Q .06 (ied by the ar)-.2 F(gument)-.18 E F4 -.2(fi)2.56 G(le).2 E F0 .06 (descriptor \(from C\).)2.56 F(If)5.061 E F4(n)2.561 E F0 .061 (is returned, the type)2.561 F .061(writer name is then `)-.25 F(`/de) -.74 E(v/tty)-.25 E F4(n)A F0 -.74('')C(.).74 E F3(x)108 240.72 Q F0 (is returned if the indicated f)2.5 E(ile does not correspond to a type) -.2 E(writer)-.25 E(.)-.55 E F1 -.08(BU)72 258.92 S(GS).08 E F0 2.5(-3) 295.17 767 S 2.5(9-)-2.5 G EP %%Trailer end %%EOF