📄 resolver.3
字号:
%!PS-Adobe-1.0%%Creator: devps (Pipeline Associates, Inc.)%%CreationDate: Fri Sep 13 13:06:56 1996%%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 defsystemdict /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 addcurrentpoint pop Xm}bind def/H{//res div0 transform X round X itransform popcurrentpoint X popmoveto}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 fillgr}bind def1 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} ifend/BP{save mark devps begin m0/DocumentInitState [ matrix currentmatrix currentlinewidth currentlinecapcurrentlinejoin currentdash currentgray currentmiterlimit ] cvx def}bind def/EP{end cleartomark restore showpage}def/Encoding-1 256 array def0 1 255 {Encoding-1 exch /.notdef put} forEncoding-1 8#301 StandardEncoding 8#101 26 getinterval putinterval %A-BEncoding-1 8#341 StandardEncoding 8#141 26 getinterval putinterval %a-bEncoding-1 8#241 StandardEncoding 8#301 16 getinterval putinterval %accentsEncoding-1 8#373 StandardEncoding 8#365 1 getinterval putinterval %dotlessiEncoding-1dup 8#41 /copyright putdup 8#42 /registered putdup 8#43 /trademark putdup 8#44 /logicalnot putdup 8#45 /Eth putdup 8#46 /eth putdup 8#47 /Thorn putdup 8#50 /thorn putdup 8#51 /brokenbar putdup 8#52 /degree putdup 8#53 /divide putdup 8#54 /multiply putdup 8#55 /minus putdup 8#56 /onehalf putdup 8#57 /onequarter putdup 8#60 /threequarters putdup 8#101 /Aacute putdup 8#102 /Acircumflex putdup 8#103 /Adieresis putdup 8#104 /Agrave putdup 8#105 /Aring putdup 8#106 /Atilde putdup 8#107 /Ccedilla putdup 8#110 /Eacute putdup 8#111 /Ecircumflex putdup 8#112 /Edieresis putdup 8#113 /Egrave putdup 8#114 /Iacute putdup 8#115 /Icircumflex putdup 8#116 /Idieresis putdup 8#117 /Igrave putdup 8#120 /Ntilde putdup 8#121 /Oacute putdup 8#122 /Ocircumflex putdup 8#123 /Odieresis putdup 8#124 /Ograve putdup 8#125 /Otilde putdup 8#126 /Scaron putdup 8#127 /Uacute putdup 8#130 /Ucircumflex putdup 8#131 /Udieresis putdup 8#132 /Ugrave putdup 8#133 /Ydieresis putdup 8#134 /Zcaron putdup 8#135 /aacute putdup 8#136 /acircumflex putdup 8#137 /adieresis putdup 8#140 /agrave putdup 8#141 /aring putdup 8#142 /atilde putdup 8#143 /ccedilla putdup 8#144 /eacute putdup 8#145 /ecircumflex putdup 8#146 /edieresis putdup 8#147 /egrave putdup 8#150 /iacute putdup 8#151 /icircumflex putdup 8#152 /idieresis putdup 8#153 /igrave putdup 8#154 /ntilde putdup 8#155 /oacute putdup 8#156 /ocircumflex putdup 8#157 /odieresis putdup 8#160 /ograve putdup 8#161 /otilde putdup 8#162 /scaron putdup 8#163 /uacute putdup 8#164 /ucircumflex putdup 8#165 /udieresis putdup 8#166 /ugrave putdup 8#167 /ydieresis putdup 8#170 /zcaron putpop/Enc-dict 30 dict defEnc-dict /tmpstr1 50 string putEnc-dict /tmpstr2 50 string putEnc-dict /tmpstr3 50 string dup (Encoding-) exch cvs pop put/AEnc-def { % arguments: the original font's name, encoding nrEnc-dict begintmpstr2 cvs /Enc-no exch def % Remember the number in a stringdup /OrigName exch def % remember the namefindfont 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} forallnewdict begin/Encoding tmpstr3 9 Enc-no putinterval tmpstr3 0 9 Enc-no length add getinterval cvn load def % Replace encodingcurrentdict /UniqueID known{ /UniqueID UniqueID Enc-no cvi 49999 mul add def } if % Derive New UniqueIDend % newdict/FNlength OrigName tmpstr1 cvs length def % convert name, remember lengthFNlength 1 add Enc-no length add stringdup 0 OrigName tmpstr1 cvs putintervaldup FNlength (-) putintervaldup FNlength 1 add Enc-no putintervaldup 0 tmpstr1 0 FNlength getinterval putinterval % Add old namecvn dup newdict /FontName 3 2 roll put newdict definefontend % 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 1BP/slant 0 def/height 0 def480 V10 R720(RESOLVER)S1250(\()S1292(3)S1350(\))S2696(Eighth)S(Edition)296 2989 A4597(RESOLVER)S5127(\()S5169(3)S5227(\))S960 V9 R720(N)S722(NA)S790(AM)S858(ME)S940(E)S1080 V10 R1080(resolver,)S(res_query,)422 1461 A1914(res_search,)S(res_mkquery,)550 2396 A2977(res_send,)S3386(res_init,)S(dn_comp,)398 3745 A(dn_expand)440 4175 A10 R-14647(-)S10 R4736(resolver)S5093(rou-)S1200 V1080(tines)S1368 V9 R720(S)S722(SY)S774(YN)S842(NO)S910(OP)S978(PS)S1030(SI)S1082(IS)S1115(S)S1488 V10 B1080(#include)S1482(<sys/types.h>)S1608 V1080(#include)S1482(<net/gen/in.h>)S1728 V1080(#include)S1482(<net/gen/nameser.h>)S1848 V1080(#include)S1482(<net/gen/resolv.h>)S2016 V1080(res_query\(dname,)S1899(class,)S2163(type,)S2411(answer,)S2782(anslen\))S2136 V1080(char)S1314(*dname;)S2256 V1080(int)S1236(class,)S1500(type;)S2376 V1080(u_char)S1420(*answer;)S2496 V1080(int)S1236(anslen;)S2664 V1080(res_search\(dname,)S1927(class,)S2191(type,)S2439(answer,)S2810(anslen\))S2784 V1080(char)S1314(*dname;)S2904 V1080(int)S1236(class,)S1500(type;)S3024 V1080(u_char)S1420(*answer;)S3144 V1080(int)S1236(anslen;)S3312 V(res_mkquery\(op,)736 1080 A1854(dname,)S2208(class,)S2472(type,)S2720(data,)S2973(datalen,)S3355(newrr,)S3682(buf,)S(bu\257en\))303 3891 A3432 V1080(int)S1236(op;)S3552 V1080(char)S1314(*dname;)S3672 V1080(int)S1236(class,)S1500(type;)S3792 V1080(char)S1314(*data;)S3912 V1080(int)S1236(datalen;)S4032 V1080(struct)S(rrec)180 1371 A1589(*newrr;)S4152 V1080(char)S1314(*buf;)S4272 V1080(int)S(bu\257en;)303 1236 A4440 V1080(res_send\(msg,)S1725(msglen,)S2090(answer,)S2461(anslen\))S4560 V1080(char)S1314(*msg;)S4680 V1080(int)S1236(msglen;)S4800 V1080(char)S1314(*answer;)S4920 V1080(int)S1236(anslen;)S5088 V(res_init\(\))393 1080 A5256 V1080(dn_comp\(exp_dn,)S1887(comp_dn,)S2347(length,)S(dnptrs,)311 2679 A(lastdnptr\))432 3028 A5376 V1080(char)S1314(*exp_dn,)S1740(*comp_dn;)S5496 V1080(int)S1236(length;)S5616 V1080(char)S(**dnptrs,)411 1314 A(**lastdnptr;)532 1763 A5784 V1080(dn_expand\(msg,)S1825(eomorig,)S2240(comp_dn,)S2700(exp_dn,)S3076(length\))S5904 V1080(char)S1314(*msg,)S1600(*eomorig,)S2065(*comp_dn,)S2575(exp_dn;)S6024 V1080(int)S1236(length;)S6192 V9 R720(D)S722(DE)S790(ES)S848(SC)S900(CR)S962(RI)S1024(IP)S1057(PT)S1109(TI)S1167(IO)S1200(ON)S1268(N)S6312 V10 R1080(These)S1355(routines)S1713(are)S1871(used)S2089(for)S2241(making,)S2601(sending)S2947(and)S3127(interpreting)S3632(query)S3896(and)S4076(reply)S4318(messages)S4733(with)S4947(Internet)S6432 V1080(domain)S1406(name)S1649(servers.)S6600 V1080(Global)S1385(con\256guration)S1952(and)S2128(state)S2344(information)S2850(that)S3032(is)S3130(used)S3345(by)S3476(the)S3630(resolver)S3986(routines)S4341(is)S4439(kept)S4643(in)S4753(the)S4908(structure)S6720 V10 I1080(_res)S10 R1261(.)S1343(Most)S1581(of)S1697(the)S1851(values)S2139(have)S2360(reasonable)S2822(defaults)S3172(and)S3348(can)S3519(be)S(ignored.)332 3645 A4033(Options)S4382(stored)S4659(in)S10 I4768(_res.options)S6840 V10 R1080(are)S1235(de\256ned)S1562(in)S10 I1671(resolv.h)S10 R2023(and)S2199(are)S2354(as)S2469(follows.)S2852(Options)S3201(are)S3357(stored)S3635(as)S3751(a)S3828(simple)S4128(bit)S4266(mask)S4510(containing)S4966(the)S5121(bit-)S6960 V1080(wise)S(``or'')220 1290 A1535(of)S1644(the)S1792(options)S2112(enabled.)S7128 V1080(RES_INIT)S7248 V1440(True)S1665(if)S1761(the)S(initial)235 1918 A2187(name)S2439(server)S2720(address)S3056(and)S3236(default)S3551(domain)S3887(name)S4140(are)S(initialized)403 4299 A4737(\(i.e.,)S10 I4954(res_init)S7368 V10 R1440(has)S1599(been)S1814(called\).)S7903 V720(Page)S941(1)S2669(\()S2711(June)S2920(23,)S(1990)200 3070 A3278(\))S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Page: 2 2BP/slant 0 def/height 0 def480 V10 R720(RESOLVER)S1250(\()S1292(3)S1350(\))S2696(Eighth)S(Edition)296 2989 A4597(RESOLVER)S5127(\()S5169(3)S5227(\))S960 V1080(RES_DEBUG)S1080 V1440(Print)S(debugging)423 1661 A2109(messages.)S1248 V(RES_AAONLY)662 1080 A1368 V(Accept)286 1440 A1752(authoritative)S2287(answers)S2638(only.)S2892(With)S3119(this)S3291(option,)S10 I3599(res_send)S10 R(should)267 3983 A4277(continue)S(until)184 4650 A4861(it)S4944(\256nds)S5166(an)S1488 V1440(authoritative)S1974(answer)S2285(or)S2394(\256nds)S2614(an)S2734(error.)S3006(Currently)S3417(this)S3587(is)S3679(not)S3832(implemented.)S1656 V1080(RES_USEVC)S1776 V1440(Use)S1622(TCP)S(connections)480 1832 A2337(for)S2480(queries)S2796(instead)S3106(of)S3215(UDP)S3442(datagrams.)S1944 V(RES_STAYOPEN)763 1080 A2064 V1440(Used)S1684(with)S1900(RES_USEVC)S2503(to)S2618(keep)S2845(the)S3005(TCP)S(connection)441 3228 A3707(open)S3940(between)S4314(queries.)S4693(This)S4910(is)S5015(useful)S2184 V1440(only)S1643(in)S1746(programs)S2151(that)S2327(regularly)S2716(do)S2841(many)S3089(queries.)S3455(UDP)S(should)267 3682 A3974(be)S4094(the)S4242(normal)S4552(mode)S4800(used.)S2352 V1080(RES_IGNTC)S2472 V1440(Unused)S1772(currently)S(\(ignore)291 2161 A2477(truncation)S2910(errors,)S3196(i.e.,)S(don't)212 3369 A3606(retry)S3822(with)S4026(TCP\).)S2640 V1080(RES_RECURSE)S2760 V1440(Set)S1605(the)S1764(recursion-desired)S2500(bit)S2642(in)S2756(queries.)S3133(This)S3348(is)S3452(the)S3612(default.)S3979(\()S10 I4013(res_send)S10 R4407(does)S4628(not)S4793(do)S4930(iterative)S2880 V1440(queries)S1756(and)S1926(expects)S2253(the)S2401(name)S2644(server)S2916(to)S3019(handle)S3312(recursion.\))S3048 V1080(RES_DEFNAMES)S3168 V1440(If)S1535(set,)S10 I1699(res_search)S10 R(will)157 2167 A2351(append)S2668(the)S2818(default)S3125(domain)S3453(name)S3698(to)S(single-component)720 3803 A4551(names)S4836(\(those)S5110(that)S3288 V1440(do)S1565(not)S1718(contain)S2039(a)S
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -