%!PS-Adobe-1.0 %%Creator: devps (Pipeline Associates, Inc.) %%CreationDate: Mon May 7 15:16:42 2001 %%Pages: (atend) %%DocumentFonts: (atend) /devps 180 dict def devps begin /res 10.000000 def /y_offset 843 def /X{exch}bind def /mm {transform round X round X itransform} bind def /r{rmoveto}bind def /m{moveto}bind def /l{lineto}bind def /rl{rlineto}bind def /st{stroke}bind def /gs{gsave}bind def /gr{grestore}bind def /cp{currentpoint}bind def /np{newpath}bind def /ct{curveto}bind def systemdict /setpacking known { /savepacking currentpacking def true setpacking } if /m0{0 0 moveto}bind def /xc{//res div}bind def /yc{//res neg div //y_offset add}bind def /lc{yc X xc X l st}bind def /mc{yc X xc X m}bind def /el{gs /a X def a div 1 X scale cp np a xc 2 div 0 360 arc st gr}bind def /ar{cp 7 2 roll np xc 5 1 roll atan 3 1 roll atan X arc st}bind def /sp{yc X xc X 6 2 roll yc X xc X 6 2 roll yc X xc X 6 2 roll ct}bind def /V{//res neg div //y_offset add currentpoint pop X m}bind def /H{//res div 0 transform X round X itransform pop currentpoint X pop moveto}bind def /h{//res div 0 r}bind def /v{//res neg div 0 X r}bind def /S{X H show}bind def /A{H //res div 1 index stringwidth pop sub 1 index length div 0 3 2 roll ashow}bind def /psize 10 def /height 0 def /cheight { height 0 ne { height } { psize } ifelse } bind def /slant 0 def /FF{findfont X dup 30 div 0 mm pop setlinewidth /psize X def [psize 0 cheight slant sin slant cos div mul cheight 0 0] makefont setfont}bind def /shade{gs /dy X def /dx X def np m 0 /dy rl /dx 0 rl 0 /dy neg rl /dx neg 0 rl closepath .9 setgray fill gr}bind def 1 setlinecap /resolution res 72 mul def /startFig { /SavedState save def userdict maxlength dict begin currentpoint transform DocumentInitState setmiterlimit setgray setdash setlinejoin setlinecap setlinewidth setmatrix itransform moveto /ury exch def /urx exch def /lly exch def /llx exch def /y exch 72 mul resolution div def /x exch 72 mul resolution div def currentpoint /cy exch def /cx exch def /sx x urx llx sub div def /sy y ury lly sub div def sx sy scale cx sx div llx sub cy sy div ury sub translate /DefFigCTM matrix currentmatrix def /initmatrix { DefFigCTM setmatrix } def /defaultmatrix { DefFigCTM exch copy } def /initgraphics { DocumentInitState setmiterlimit setgray setdash setlinejoin setlinecap setlinewidth setmatrix DefFigCTM setmatrix } def /showpage { initgraphics } def }bind def /clipFig { currentpoint 6 2 roll newpath 4 copy 4 2 roll moveto 6 -1 roll exch lineto exch lineto exch lineto closepath clip newpath moveto }bind def /doclip { llx lly urx ury clipFig } def /endFig { end SavedState restore }bind def /globalstart { fontnum psize slant height resolution currentpoint pagesave restore gsave }bind def /globalend { grestore moveto /resolution exch def /height exch def /slant exch def /psize exch def /fontnum exch def F /pagesave save def }bind def /fontnum 1 def systemdict /setpacking known { savepacking setpacking} if end /BP{ save mark devps begin m0 /DocumentInitState [ matrix currentmatrix currentlinewidth currentlinecap currentlinejoin currentdash currentgray currentmiterlimit ] cvx def }bind def /EP{ end cleartomark restore showpage}def /Encoding-1 256 array def 0 1 255 {Encoding-1 exch /.notdef put} for Encoding-1 8#301 StandardEncoding 8#101 26 getinterval putinterval %A-B Encoding-1 8#341 StandardEncoding 8#141 26 getinterval putinterval %a-b Encoding-1 8#241 StandardEncoding 8#301 16 getinterval putinterval %accents Encoding-1 8#373 StandardEncoding 8#365 1 getinterval putinterval %dotlessi Encoding-1 dup 8#41 /copyright put dup 8#42 /registered put dup 8#43 /trademark put dup 8#44 /logicalnot put dup 8#45 /Eth put dup 8#46 /eth put dup 8#47 /Thorn put dup 8#50 /thorn put dup 8#51 /brokenbar put dup 8#52 /degree put dup 8#53 /divide put dup 8#54 /multiply put dup 8#55 /minus put dup 8#56 /onehalf put dup 8#57 /onequarter put dup 8#60 /threequarters put dup 8#101 /Aacute put dup 8#102 /Acircumflex put dup 8#103 /Adieresis put dup 8#104 /Agrave put dup 8#105 /Aring put dup 8#106 /Atilde put dup 8#107 /Ccedilla put dup 8#110 /Eacute put dup 8#111 /Ecircumflex put dup 8#112 /Edieresis put dup 8#113 /Egrave put dup 8#114 /Iacute put dup 8#115 /Icircumflex put dup 8#116 /Idieresis put dup 8#117 /Igrave put dup 8#120 /Ntilde put dup 8#121 /Oacute put dup 8#122 /Ocircumflex put dup 8#123 /Odieresis put dup 8#124 /Ograve put dup 8#125 /Otilde put dup 8#126 /Scaron put dup 8#127 /Uacute put dup 8#130 /Ucircumflex put dup 8#131 /Udieresis put dup 8#132 /Ugrave put dup 8#133 /Ydieresis put dup 8#134 /Zcaron put dup 8#135 /aacute put dup 8#136 /acircumflex put dup 8#137 /adieresis put dup 8#140 /agrave put dup 8#141 /aring put dup 8#142 /atilde put dup 8#143 /ccedilla put dup 8#144 /eacute put dup 8#145 /ecircumflex put dup 8#146 /edieresis put dup 8#147 /egrave put dup 8#150 /iacute put dup 8#151 /icircumflex put dup 8#152 /idieresis put dup 8#153 /igrave put dup 8#154 /ntilde put dup 8#155 /oacute put dup 8#156 /ocircumflex put dup 8#157 /odieresis put dup 8#160 /ograve put dup 8#161 /otilde put dup 8#162 /scaron put dup 8#163 /uacute put dup 8#164 /ucircumflex put dup 8#165 /udieresis put dup 8#166 /ugrave put dup 8#167 /ydieresis put dup 8#170 /zcaron put pop /Enc-dict 30 dict def Enc-dict /tmpstr1 50 string put Enc-dict /tmpstr2 50 string put Enc-dict /tmpstr3 50 string dup (Encoding-) exch cvs pop put /AEnc-def { % arguments: the original font's name, encoding nr Enc-dict begin tmpstr2 cvs /Enc-no exch def % Remember the number in a string dup /OrigName exch def % remember the name findfont dup maxlength dict /newdict exch def % get dictionary for new font { exch dup /FID ne { exch newdict 3 1 roll put } { pop pop } % Ignore FID ifelse } forall newdict begin /Encoding tmpstr3 9 Enc-no putinterval tmpstr3 0 9 Enc-no length add getinterval cvn load def % Replace encoding currentdict /UniqueID known { /UniqueID UniqueID Enc-no cvi 49999 mul add def } if % Derive New UniqueID end % newdict /FNlength OrigName tmpstr1 cvs length def % convert name, remember length FNlength 1 add Enc-no length add string dup 0 OrigName tmpstr1 cvs putinterval dup FNlength (-) putinterval dup FNlength 1 add Enc-no putinterval dup 0 tmpstr1 0 FNlength getinterval putinterval % Add old name cvn dup newdict /FontName 3 2 roll put newdict definefont end % Enc-dict } def /Times-Roman 1 AEnc-def pop /R-1{/Times-Roman-1 FF}def /R{/Times-Roman FF}def /B{/Times-Bold FF}def /I{/Times-Italic FF}def %%EndProlog %%Page: 1 1 BP /slant 0 def /height 0 def 480 V 10 R 720(GETSERVENT)S 1380(\()S 1422(3)S 1480(\))S 2696(Eighth)S (Edition)296 2989 A 4467(GETSERVENT)S 5127(\()S 5169(3)S 5227(\))S 960 V 9 R 720(N)S 722(NA)S 790(AM)S 858(ME)S 940(E)S 1080 V 10 R 1080(getservent,)S (getservbyport,)578 1544 A (getservbyname,)634 2147 A 2806(setservent,)S 3259(endservent)S 10 R-1 3720(-)S 10 R 3802(get)S 3950(service)S 4261(entry)S 1248 V 9 R 720(S)S 722(SY)S 774(YN)S 842(NO)S 910(OP)S 978(PS)S 1030(SI)S 1082(IS)S 1115(S)S 1368 V 10 B 1080(#include)S 1482()S 1536 V 1080(struct)S 1371(servent)S (*getservent\(\))561 1723 A 1704 V 1080(struct)S 1371(servent)S 1723(*getservbyname\(name,)S 2754(proto\))S 1824 V 1080(char)S 1314(*name,)S 1662(*proto;)S 1992 V 1080(struct)S 1371(servent)S 1723(*getservbyport\(port,)S 2654(proto\))S 2112 V 1080(int)S 1236(port;)S 1493(char)S 1727(*proto;)S 2280 V (setservent\(stayopen\))880 1080 A 2400 V 1080(int)S (stayopen)380 1236 A 2568 V (endservent\(\))539 1080 A 2736 V 9 R 720(D)S 722(DE)S 790(ES)S 848(SC)S 900(CR)S 962(RI)S 1024(IP)S 1057(PT)S 1109(TI)S 1167(IO)S 1200(ON)S 1268(N)S 2856 V 10 I 1080(Getservent)S 10 R 1525(,)S 10 I 1589(getservbyname)S 10 R 2201(,)S 2265(and)S 10 I 2449(getservbyport)S 10 R (each)185 3041 A 3265(return)S 3545(a)S 3629(pointer)S 3953(to)S 4070(an)S 4204(object)S 4489(with)S 4707(the)S 4870(following)S 2976 V 1080(structure)S 1458(containing)S 1907(the)S 2055(broken-out)S 2521(\256elds)S 2764(of)S 2873(a)S 2943(line)S 3119(in)S 3222(the)S 3370(network)S 3725(services)S 4075(data)S 4268(base,)S 10 I 4497(/etc/services)S 10 R 5004(.)S 3144 V 1440(struct)S 1800(servent)S 2116({)S 3264 V 1800(char)S 2160(*s_name;)S 2880(/*)S 2983(of\256cial)S 3294(name)S 3537(of)S 3646(service)S 3957(*/)S 3384 V 1800(char)S 2160(**s_aliases;)S 2880(/*)S 2983(alias)S 3193(list)S 3341(*/)S 3504 V 1800(int)S (s_port;)279 2160 A 2880(/*)S 2983(port)S 3170(service)S 3481(resides)S 3786(at)S 3884(*/)S 3624 V 1800(char)S 2160(*s_proto;)S 2880(/*)S 2983(protocol)S 3343(to)S 3446(use)S 3605(*/)S 3744 V 1440(};)S 3912 V 1080(The)S 1262(members)S 1656(of)S 1765(this)S 1935(structure)S 2313(are:)S 4080 V 1080(s_name)S 1538(The)S 1720(of\256cial)S 2031(name)S 2274(of)S 2383(the)S 2531(service.)S 4248 V 1080(s_aliases)S 1538(A)S 1636(zero)S 1835(terminated)S 2291(list)S 2439(of)S 2548(alternate)S 2921(names)S 3203(for)S 3346(the)S 3494(service.)S 4416 V (s_port)251 1080 A 1538(The)S 1729(port)S 1925(number)S 2266(at)S 2373(which)S 2653(the)S 2810(service)S 3131(resides.)S 3496(Port)S 3699(numbers)S 4080(are)S 4239(returned)S 4610(in)S 4723(network)S 5088(byte)S 4536 V 1538(order.)S 4704 V 1080(s_proto)S 1538(The)S 1720(name)S 1963(of)S 2072(the)S 2220(protocol)S 2580(to)S 2683(use)S 2842(when)S 3085(contacting)S 3529(the)S 3677(service.)S 4872 V 10 I 1080(Getservent)S 10 R 1542(reads)S 1780(the)S 1928(next)S 2126(line)S 2302(of)S 2411(the)S 2559(\256le,)S 2738(opening)S 3086(the)S 3234(\256le)S 3388(if)S (necessary.)417 3475 A 5040 V 10 I 1080(Setservent)S 10 R 1529(opens)S 1798(and)S 1978(rewinds)S 2333(the)S 2492(\256le.)S 2707(If)S 2811(the)S 10 I 2970(stayopen)S 10 R 3363(\257ag)S 3550(is)S (non-zero,)383 3653 A 4072(the)S 4231(net)S 4390(data)S 4594(base)S (will)157 4809 A 5002(not)S 5166(be)S 5160 V 1080(closed)S 1362(after)S (each)185 1573 A 1783(call)S 1954(to)S 10 I 2057(getservbyname)S 10 R 2686(or)S 10 I 2795(getservbyport)S 10 R 3356(.)S 5328 V 10 I 1080(Endservent)S 10 R 1558(closes)S 1829(the)S 1977(\256le.)S 5496 V 10 I 1080(Getservbyname)S 10 R 1741(and)S 10 I 1920(getservbyport)S 10 R 2508(sequentially)S 3029(search)S 3322(from)S 3553(the)S 3711(beginning)S 4147(of)S 4266(the)S 4424(\256le)S (until)184 4588 A 4807(a)S 4887(matching)S 5616 V 1080(protocol)S 1450(name)S 1702(or)S 1820(port)S 2016(number)S 2357(is)S (found,)259 2458 A 2751(or)S (until)184 2869 A 3087(EOF)S 3312(is)S (encountered.)517 3413 A 3989(If)S 4091(a)S 4170(protocol)S 4539(name)S 4791(is)S 4892(also)S 5088(sup-)S 5736 V 1080(plied)S (\(non-NULL\),)547 1306 A 1878(searches)S 2245(must)S 2465(also)S 2652(match)S 2923(the)S 3071(protocol.)S 5904 V 9 R 720(F)S 722(FI)S 774(IL)S 807(LE)S 865(ES)S 923(S)S 6024 V 10 R 1080(/etc/services)S 6192 V 9 R 720(S)S 722(SE)S 774(EE)S 832(E)S 913(A)S 915(AL)S 983(LS)S 1041(SO)S 1093(O)S 6312 V 10 R 1080(getprotoent\(3\),)S 1706(services\(5\))S 6480 V 9 R 720(D)S 722(DI)S 790(IA)S 823(AG)S 891(GN)S 959(NO)S 1027(OS)S 1095(ST)S 1147(TI)S 1205(IC)S 1238(CS)S 1300(S)S 6600 V 10 R 1080(Null)S 1284(pointer)S 1594(\(0\))S 1737(returned)S 2098(on)S 2223(EOF)S 2439(or)S 2548(error.)S 6768 V 9 R 720(B)S 722(BU)S 784(UG)S 852(GS)S 920(S)S 6888 V 10 R 1080(All)S 1244(information)S 1754(is)S 1856(contained)S 2282(in)S 2395(a)S 2475(static)S 2723(area)S 2927(so)S 3051(it)S 3142(must)S 3372(be)S 3502(copied)S 3805(if)S 3902(it)S 3993(is)S 4095(to)S 4209(be)S 4340(saved.)S 4655(Expecting)S 5099(port)S 7008 V 1080(numbers)S 1451(to)S 1554(\256t)S 1663(in)S 1766(a)S 1836(32)S 1961(bit)S (quantity)329 2092 A 2446(is)S 2538(probably)S 2920(naive.)S 7903 V 720(Page)S 941(1)S 2669(\()S 2711(May)S 2920(19,)S (1986)200 3070 A 3278(\))S 4752(May)S 4961(7,)S (2001)200 5061 A 8143 V EP %%Trailer %%DocumentFonts: Times-Roman Times-Bold Times-Italic %%Pages: 1