⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 patch.1

📁 操作系统设计与实现源码
💻 1
📖 第 1 页 / 共 4 页
字号:
%!PS-Adobe-1.0%%Creator: devps (Pipeline Associates, Inc.)%%CreationDate: Fri Sep 13 13:04:11 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/R{/Times-Roman FF}def/B{/Times-Bold FF}def/I{/Times-Italic FF}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-Bold 1 AEnc-def pop/B-1{/Times-Bold-1 FF}def%%EndProlog%%Page: 1 1BP/slant 0 def/height 0 def480 V10 R720(PATCH)S1059(\()S1101(1)S1159(\))S2696(Eighth)S(Edition)296 2989 A4788(PATCH)S5127(\()S5169(1)S5227(\))S960 V9 R720(N)S722(NA)S790(AM)S858(ME)S940(E)S1080 V10 R1080(patch)S1323(-)S1382(apply)S1630(a)S1700(diff)S1871(\256le)S2025(to)S2128(an)S2248(original)S1248 V9 R720(S)S722(SY)S774(YN)S842(NO)S910(OP)S978(PS)S1030(SI)S1082(IS)S1115(S)S1368 V10 B1080(patch)S10 R1359([options])S1760([orig\256le)S2123([patch\256le]])S2610([+)S2739([options])S([orig\256le]]...)468 3140 A1608 V1080(but)S1246(usually)S1574(just)S1848 V10 B1080(patch)S10 R1359(<patch\256le)S2016 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)S2136 V10 I1080(Patch)S10 R(will)157 1346 A1534(take)S1734(a)S1811(patch)S2061(\256le)S2222(containing)S2678(any)S2855(of)S2971(the)S3126(four)S3326(forms)S3593(of)S3709(difference)S4151(listing)S(produced)374 4434 A4840(by)S4972(the)S10 I(diff)134 5127 A2256 V10 R1080(program)S1456(and)S1636(apply)S1894(those)S2141(differences)S2625(to)S2737(an)S2866(original)S3213(\256le,)S(producing)407 3401 A3842(a)S3921(patched)S4268(version.)S4648(By)S4799(default,)S5138(the)S2376 V1080(patched)S1424(version)S1752(is)S1851(put)S2011(in)S(place)213 2121 A2366(of)S2482(the)S2637(original,)S3007(with)S3218(the)S3373(original)S3718(\256le)S3879(backed)S4196(up)S4328(to)S4438(the)S4593(same)S4832(name)S5082(with)S2496 V1080(the)S1233(extension)S1648(``.orig'')S(\(``\304'')204 2001 A2235(on)S2365(systems)S2712(that)S2892(do)S3021(not)S(support)301 3178 A(long)178 3508 A3715(\256lenames\),)S4189(or)S4302(as)S4415(speci\256ed)S4802(by)S4931(the)S10 B5083(-b)S10 R5173(,)S10 B5227(-)S2616 V1080(B)S10 R1147(,)S1228(or)S10 B1368(-V)S10 R1531(switches.)S1985(The)S2199(extension)S2641(used)S2882(for)S3057(making)S(backup)290 3415 A3762(\256les)S3987(may)S4217(also)S4436(be)S4588(speci\256ed)S5003(in)S5138(the)S2736 V10 B1080(SIMPLE_BACKUP_SUFFIX)S10 R2382(environment)S2915(variable,)S3290(which)S3561(is)S3653(overridden)S4114(by)S(above)240 4239 A4504(switches.)S2904 V1080(If)S1177(the)S(backup)290 1329 A1648(\256le)S1806(already)S2132(exists,)S10 B2415(patch)S10 R2685(creates)S2995(a)S3069(new)S(backup)290 3266 A3585(\256le)S3743(name)S3990(by)S4119(changing)S4517(the)S4670(\256rst)S4857(lowercase)S3024 V1080(letter)S1317(in)S1424(the)S1576(last)S(component)446 1745 A2220(of)S2333(the)S2485(\256le's)S2716(name)S2963(into)S(uppercase.)428 3148 A3630(If)S3727(there)S3958(are)S4111(no)S4240(more)S4476(lowercase)S4908(letters)S5183(in)S3144 V1080(the)S1232(name,)S1504(it)S1589(removes)S1959(the)S2111(\256rst)S2297(character)S2698(from)S2924(the)S3077(name.)S3375(It)S3467(repeats)S3783(this)S3958(process)S(until)184 4290 A4504(it)S4590(comes)S4877(up)S5007(with)S5216(a)S3264 V(backup)290 1080 A1395(\256le)S1549(that)S1725(does)S1934(not)S2087(already)S2409(exist.)S3432 V1080(You)S1282(may)S1484(also)S1675(specify)S1995(where)S(you)150 2271 A2450(want)S2675(the)S2827(output)S3112(to)S3219(go)S3348(with)S3556(a)S10 B3630(-o)S10 R3744(switch;)S4065(if)S4157(that)S4338(\256le)S4497(already)S4824(exists,)S5108(it)S5194(is)S3552 V1080(backed)S1390(up)S1515(\256rst.)S3720 V1080(If)S10 I1173(patch\256le)S10 R1544(is)S(omitted,)332 1636 A1993(or)S2102(is)S2194(a)S(hyphen,)320 2264 A2609(the)S2757(patch)S(will)157 3000 A3182(be)S3302(read)S3501(from)S3722(standard)S(input.)231 4088 A3888 V(Upon)223 1080 A1330(startup,)S1656(patch)S(will)157 1901 A2085(attempt)S2414(to)S2519(determine)S2949(the)S3099(type)S3299(of)S3410(the)S3560(diff)S3733(listing,)S4036(unless)S(over-ruled)420 4314 A4762(by)S4890(a)S10 B4963(-c)S10 R5042(,)S10 B5095(-e)S10 R5174(,)S10 B5227(-)S4008 V1080(n)S10 R1136(,)S1197(or)S10 B1317(-u)S10 R1443(switch.)S1792(Context)S2146(diffs)S2367(\(old-style,)S2813(new-style,)S3265(and)S3445(uni\256ed\))S3793(and)S3973(normal)S4293(diffs)S4513(are)S4672(applied)S5003(by)S5138(the)S4128 V10 I1080(patch)S10 R1328(program)S1694(itself,)S1946(while)S2195(ed)S2315(diffs)S2525(are)S2674(simply)S2972(fed)S3126(to)S3229(the)S10 I3377(ed)S10 R3497(editor)S3757(via)S3905(a)S3975(pipe.)S4296 V10 I1080(Patch)S10 R(will)157 1342 A1526(try)S1665(to)S1770(skip)S1964(any)S2136(leading)S2459(garbage,)S2830(apply)S3080(the)S3230(diff,)S3428(and)S3600(then)S3800(skip)S3994(any)S(trailing)291 4166 A4485(garbage.)S4882(Thus)S(you)150 5111 A4416 V1080(could)S1331(feed)S1533(an)S1656(article)S1937(or)S2049(message)S2418(containing)S2869(a)S2941(diff)S3114(listing)S3392(to)S10 I3497(patch)S10 R3728(,)S3780(and)S3952(it)S(should)267 4035 A4329(work.)S4613(If)S4708(the)S4858(entire)S5115(diff)S4536 V1080(is)S1172(indented)S1543(by)S1668(a)S1738(consistent)S(amount,)326 2165 A2516(this)S(will)157 2686 A2868(be)S2988(taken)S3231(into)S(account.)338 3412 A4704 V1080(With)S1317(context)S1649(diffs,)S1895(and)S2076(to)S2190(a)S2271(lesser)S2537(extent)S2819(with)S3034(normal)S3355(diffs,)S10 I3601(patch)S10 R3860(can)S4036(detect)S4313(when)S4567(the)S4727(line)S4915(numbers)S4824 V1080(mentioned)S1530(in)S1634(the)S1783(patch)S2027(are)S2177(incorrect,)S2587(and)S(will)157 2758 A2940(attempt)S3267(to)S3370(\256nd)S3551(the)S3699(correct)S(place)213 4005 A4243(to)S4346(apply)S(each)185 4594 A(hunk)200 4804 A5029(of)S5138(the)S4944 V1080(patch.)S1377(As)S1518(a)S1592(\256rst)S1778(guess,)S2055(it)S2140(takes)S2376(the)S2528(line)S2709(number)S3046(mentioned)S3500(for)S3648(the)S(hunk,)225 3801 A4056(plus)S4253(or)S4367(minus)S4642(any)S4817(offset)S5077(used)S5064 V1080(in)S1187(applying)S1567(the)S1719(previous)S(hunk.)225 2094 A2373(If)S2470(that)S2650(is)S2746(not)S2902(the)S3053(correct)S(place,)238 3362 A10 I3628(patch)S10 R(will)157 3879 A4064(scan)S4271(both)S4477(forwards)S4864(and)S5037(back-)S5184 V1080(wards)S1349(for)S1495(a)S1568(set)S1708(of)S1820(lines)S2039(matching)S2442(the)S2594(context)S2919(given)S3171(in)S3278(the)S(hunk.)225 3430 A3709(First)S10 I3923(patch)S10 R(looks)217 4175 A4421(for)S4568(a)S(place)213 4642 A4884(where)S5160(all)S5304 V1080(lines)S1296(of)S1406(the)S1555(context)S1877(match.)S2199(If)S2293(no)S2419(such)S(place)213 2629 A2867(is)S(found,)259 2959 A3243(and)S3413(it's)S3567(a)S3637(context)S3958(diff,)S4154(and)S4324(the)S4472(maximum)S4904(fuzz)S5103(fac-)S5424 V1080(tor)S1223(is)S1321(set)S1464(to)S1573(1)S1654(or)S1770(more,)S2034(then)S2239(another)S2573(scan)S2784(takes)S(place)213 3023 A(ignoring)340 3268 A3640(the)S3795(\256rst)S3984(and)S4161(last)S4333(line)S4516(of)S4632(context.)S5010(If)S5110(that)S5544 V1080(fails,)S1313(and)S1492(the)S1649(maximum)S2090(fuzz)S2298(factor)S2568(is)S2669(set)S2815(to)S2927(2)S3011(or)S3129(more,)S3395(the)S3552(\256rst)S3743(two)S3928(and)S4107(last)S4281(two)S4466(lines)S4690(of)S4808(context)S5137(are)S5664 V(ignored,)332 1080 A1449(and)S1631(another)S1970(scan)S2186(is)S2290(made.)S2595(\(The)S2823(default)S3141(maximum)S3586(fuzz)S3798(factor)S4072(is)S4177(2.\))S4349(If)S10 I4455(patch)S10 R(cannot)268 4716 A5022(\256nd)S5216(a)S5784 V(place)213 1080 A

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -