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

📄 patch.1

📁 操作系统设计与实现源码
💻 1
📖 第 1 页 / 共 4 页
字号:
2136(that.)S5952 V10 B-11080(-)S10 B1137(t)S10 R1330(similar)S1638(to)S10 B-11744(-)S10 B1801(f)S10 R1835(,)S1888(in)S1994(that)S2173(it)S(suppresses)430 2257 A2716(questions,)S3149(but)S3306(makes)S3592(some)S3833(different)S4210(assumptions:)S4763(skip)S4959(patches)S6072 V1330(for)S1480(which)S1758(a)S1835(\256le)S1995(to)S2104(patch)S2353(can't)S2586(be)S(found)234 2712 A2977(\(the)S3165(same)S3403(as)S10 B-13518(-)S10 B3575(f)S10 R3609(\);)S3702(skip)S3900(patches)S4233(for)S4382(which)S4659(the)S4813(\256le)S4973(has)S5138(the)S6192 V(wrong)257 1330 A1619(version)S1947(for)S2097(the)S2252(``Prereq:'')S2712(line)S2895(in)S3005(the)S3160(patch;)S3438(and)S3615(assume)S3943(that)S4126(patches)S4461(are)S4618(reversed)S4993(if)S5088(they)S6312 V(look)178 1330 A1533(like)S1709(they)S1907(are.)S6480 V10 B-11080(-)S10 B1137(F<number>)S6600 V10 R1330(sets)S1520(the)S1682(maximum)S2128(fuzz)S2341(factor.)S2666(This)S2884(switch)S3186(only)S3403(applies)S3728(to)S3846(context)S4182(diffs,)S4432(and)S4617(causes)S10 I4920(patch)S10 R5183(to)S6720 V(ignore)257 1330 A1615(up)S1743(to)S1849(that)S2028(many)S2279(lines)S2497(in)S(looking)306 2603 A2937(for)S(places)252 3082 A3361(to)S3466(install)S3739(a)S(hunk.)225 3811 A4088(Note)S4311(that)S4489(a)S4561(larger)S4824(fuzz)S5025(factor)S6840 V1330(increases)S1731(the)S(odds)189 1885 A2105(of)S2220(a)S2296(faulty)S2562(patch.)S2862(The)S3051(default)S3363(fuzz)S3569(factor)S3837(is)S3936(2,)S4043(and)S4220(it)S4308(may)S4513(not)S4673(be)S4800(set)S4944(to)S5054(more)S6960 V1330(than)S1528(the)S1676(number)S2008(of)S2117(lines)S2332(of)S2441(context)S2762(in)S2865(the)S3013(context)S3334(diff,)S3530(ordinarily)S3952(3.)S7128 V10 B-11080(-)S10 B1137(l)S10 R1330(causes)S1621(the)S1772(pattern)S2080(matching)S2482(to)S2588(be)S(done)195 2711 A2934(loosely,)S3277(in)S3383(case)S3585(the)S3736(tabs)S3927(and)S(spaces)263 4101 A4393(have)S4612(been)S(munged)323 4831 A5183(in)S7248 V(your)184 1330 A(input)206 1548 A1788(\256le.)S2001(Any)S2208(sequence)S2611(of)S(whitespace)448 2729 A3211(in)S3323(the)S3480(pattern)S3794(line)S(will)157 3978 A4168(match)S4447(any)S4625(sequence)S5027(in)S5138(the)S7368 V(input)206 1330 A1561(\256le.)S1765(Normal)S2098(characters)S2533(must)S(still)151 2753 A2929(match)S3200(exactly.)S3566(Each)S3793(line)S3969(of)S4078(the)S4226(context)S4547(must)S(still)151 4767 A4944(match)S5216(a)S7488 V1330(line)S1506(in)S1609(the)S(input)206 1757 A1988(\256le.)S7903 V720(September)S1176(13,)S(1996)200 1326 A2780(\()S2822(LOCAL)S3167(\))S4990(Page)S5211(2)S8143 VEP%%Page: 3 3BP/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 V10 B-11080(-)S10 B1137(n)S10 R1330(forces)S10 I1602(patch)S10 R1850(to)S1953(interpret)S2320(the)S2468(patch)S2711(\256le)S2865(as)S2974(a)S3044(normal)S3354(diff.)S1128 V10 B-11080(-)S10 B1137(N)S10 R1330(causes)S10 I1618(patch)S10 R1866(to)S(ignore)257 1969 A2251(patches)S2578(that)S2754(it)S2835(thinks)S3105(are)S3254(reversed)S3621(or)S3730(already)S4052(applied.)S4423(See)S4594(also)S10 B-14781(-)S10 B4838(R)S4936(.)S1296 V10 B-11080(-)S10 B1137(o)S10 R1330(causes)S1618(the)S1766(next)S1964(argument)S2369(to)S2472(be)S2592(interpreted)S3054(as)S3163(the)S3311(output)S3592(\256le)S3746(name.)S1464 V10 B-11080(-)S10 B1137(p<number>)S1584 V10 R1330(sets)S1511(the)S1664(pathname)S2085(strip)S(count,)248 2294 A2572(which)S2849(controls)S3204(how)S3408(pathnames)S(found)234 3869 A4134(in)S4243(the)S4397(patch)S4646(\256le)S4806(are)S4961(treated,)S1704 V1330(in)S1444(case)S1654(the)S(you)150 1813 A1999(keep)S(your)184 2225 A2445(\256les)S2648(in)S2761(a)S2841(different)S3224(directory)S3623(than)S3831(the)S3989(person)S4292(who)S4500(sent)S4697(out)S4860(the)S5018(patch.)S1824 V1330(The)S1523(strip)S(count)223 1738 A1997(speci\256es)S2380(how)S2589(many)S2848(slashes)S3169(are)S3330(to)S3445(be)S3577(stripped)S3938(from)S4171(the)S4331(front)S4564(of)S4685(the)S4845(pathname.)S1944 V1330(\(Any)S1576(intervening)S2073(directory)S2476(names)S2772(also)S2973(go)S3112(away.\))S3448(For)S3627(example,)S(supposing)406 4032 A4476(the)S4637(\256lename)S5022(in)S5138(the)S2064 V1330(patch)S1573(\256le)S1727(was)S2304 V1690(/u/howard/src/blur\257/blur\257.c)S2544 V(setting)268 1330 A10 B-11623(-)S10 B1680(p)S10 R1761(or)S10 B-11870(-)S10 B1927(p0)S10 R2058(gives)S2295(the)S2443(entire)S2698(pathname)S3114(unmodi\256ed,)S10 B-13621(-)S10 B3678(p1)S10 R3809(gives)S2784 V1690(u/howard/src/blur\257/blur\257.c)S3024 V(without)307 1330 A1662(the)S1810(leading)S2131(slash,)S10 B-12382(-)S10 B2439(p4)S10 R2570(gives)S3264 V1690(blur\257/blur\257.c)S3504 V1330(and)S1508(not)S1669(specifying)S10 B-12121(-)S10 B2178(p)S10 R2267(at)S2373(all)S2507(just)S2685(gives)S(you)150 2930 A3113("blur\257.c",)S3541(unless)S3826(all)S3961(of)S4079(the)S4236(directories)S4696(in)S4808(the)S4965(leading)S3624 V1330(path)S1539(\(u/howard/src/blur\257\))S2415(exist)S2641(and)S2822(that)S3009(path)S3218(is)S3321(relative,)S3685(in)S3798(which)S4079(case)S(you)150 4288 A4473(get)S4631(the)S4789(entire)S5054(path-)S3744 V1330(name)S1577(unmodi\256ed.)S2113(Whatever)S(you)150 2534 A2713(end)S2887(up)S3016(with)S3224(is)S(looked)273 3320 A3622(for)S3769(either)S4028(in)S4136(the)S4289(current)S4605(directory,)S5024(or)S5138(the)S3864 V1330(directory)S1719(speci\256ed)S2102(by)S2227(the)S10 B-12375(-)S10 B2432(d)S10 R2513(switch.)S4032 V10 B-11080(-)S10 B1137(r)S10 R1330(causes)S1618(the)S1766(next)S1964(argument)S2369(to)S2472(be)S2592(interpreted)S3054(as)S3163(the)S3311(reject)S3561(\256le)S3715(name.)S4200 V10 B-11080(-)S10 B1137(R)S10 R1330(tells)S10 I1528(patch)S10 R1781(that)S1962(this)S2137(patch)S2385(was)S2572(created)S2894(with)S3103(the)S3256(old)S3414(and)S3589(new)S3787(\256les)S3986(swapped.)S4419(\(Yes,)S4666(I'm)S4843(afraid)S5110(that)S4320 V1330(does)S1542(happen)S(occasionally,)528 1860 A2416(human)S2717(nature)S2997(being)S3248(what)S3472(it)S3556(is.\))S10 I3735(Patch)S10 R(will)157 3997 A4181(attempt)S4510(to)S4615(swap)S(each)185 4849 A(hunk)200 5061 A4440 V(around)279 1330 A1635(before)S1919(applying)S2297(it.)S2430(Rejects)S(will)157 2754 A2938(come)S3183(out)S3338(in)S3443(the)S3593(swapped)S3972(format.)S4318(The)S10 B-14502(-)S10 B4559(R)S10 R4659(switch)S(will)157 4949 A5133(not)S4560 V1330(work)S1569(with)S1779(ed)S1905(diff)S2082(scripts)S(because)319 2376 A2726(there)S2959(is)S3057(too)S(little)185 3216 A3432(information)S3938(to)S4047(reconstruct)S4526(the)S4680(reverse)S5003(opera-)S4680 V1330(tion.)S4860 V1330(If)S1428(the)S1581(\256rst)S(hunk)200 1768 A1998(of)S2112(a)S2187(patch)S2435(fails,)S10 I2664(patch)S10 R(will)157 2917 A3105(reverse)S3428(the)S(hunk)200 3582 A3813(to)S3922(see)S4082(if)S4175(it)S4262(can)S4433(be)S4559(applied)S4886(that)S5068(way.)S4980 V1330(If)S1427(it)S1512(can,)S(you)150 1706 A(will)157 1885 A2071(be)S2195(asked)S2453(if)S(you)150 2544 A2723(want)S2948(to)S3055(have)S3274(the)S10 B-13426(-)S10 B3483(R)S10 R3584(switch)S3875(set.)S4065(If)S4161(it)S4245(can't,)S4500(the)S4651(patch)S(will)157 4897 A5082(con-)S5100 V1330(tinue)S1561(to)S1669(be)S1794(applied)S2120(normally.)S2563(\(Note:)S2851(this)S(method)301 3026 A(cannot)268 3357 A3655(detect)S3926(a)S4001(reversed)S4373(patch)S4622(if)S4715(it)S4802(is)S4900(a)S4976(normal)S5220 V1330(diff)S1502(and)S1673(if)S1761(the)S1910(\256rst)S2092(command)S2513(is)S2605(an)S2725(append)S3040(\(i.e.)S3222(it)S(should)267 3303 A3595(have)S3810(been)S4025(a)S4095(delete\))S4395(since)S4627(appends)S4981(always)S5340 V(succeed,)344 1330 A1707(due)S1885(to)S1996(the)S2152(fact)S2337(that)S2521(a)S2599(null)S2788(context)S(will)157 3117 A3307(match)S3586(anywhere.)S4061(Luckily,)S4433(most)S4662(patches)S4998(add)S5177(or)S5460 V1330(change)S1656(lines)S1887(rather)S2164(than)S2378(delete)S2660(them,)S2927(so)S3057(most)S3293(reversed)S3676(normal)S4002(diffs)S(will)157 4228 A4426(begin)S4690(with)S4910(a)S4995(delete,)S5580 V1330(which)S(will)157 1601 A1783(fail,)S1968(triggering)S2390(the)S2538(heuristic.\))S5748 V10 B-11080(-)S10 B1137(s)S10 R1330(makes)S10 I1612(patch)S10 R1860(do)S1985(its)S2105(work)S2337(silently,)S2683(unless)S2959(an)S3079(error)S3301(occurs.)S5916 V10 B-11080(-)S10 B1137(S)S10 R1330(causes)S10 I1618(patch)S10 R1866(to)S(ignore)257 1970 A2253(this)S2424(patch)S2668(from)S2890(the)S3039(patch)S3283(\256le,)S3463(but)S3617(continue)S3989(on)S(looking)306 4115 A4447(for)S4591(the)S4740(next)S4939(patch)S5183(in)S6036 V1330(the)S1478(\256le.)S1682(Thus)S6276 V1690(patch)S1933(-S)S2048(+)S2130(-S)S2245(+)S2327(<patch\256le)S6516 V(will)157 1330 A(ignore)257 1512 A1794(the)S1942(\256rst)S2124(and)S(second)279 2294 A2598(of)S2707(three)S2934(patches.)S6684 V10 B-11080(-)S10 B1137(u)S10 R1330(forces)S10 I1602(patch)S10 R1850(to)S1953(interpret)S2320(the)S2468(patch)S2711(\256le)S2865(as)S2974(a)S3044(uni\256ed)S3348(context)S3669(diff)S3840(\(a)S(unidiff\).)333 3944 A6852 V10 B-11080(-)S10 B1137(v)S10 R1330(causes)S10 I1618(patch)S10 R1866(to)S1969(print)S2184(out)S2337(its)S2457(revision)S2806(header)S3100(and)S3270(patch)S3513(level.)S7020 V10 B-11080(-)S10 B1137(V)S10 R1330(causes)S1621(the)S1772(next)S1973(argument)S2381(to)S2487(be)S2610(interpreted)S3075(as)S3187(a)S(method)301 3260 A3589(for)S3735(creating)S(backup)290 4089 A4408(\256le)S4566(names.)S4902(The)S5088(type)S7140 V1330(of)S(backups)329 1444 A1803(made)S2051(can)S2221(also)S2413(be)S2538(given)S2791(in)S2899(the)S10 B3052(VERSION_CONTROL)S10 R4099(environment)S4636(variable,)S5015(which)S7260 V1330(is)S1424(overridden)S1887(by)S2014(this)S2186(option.)S2520(The)S10 B2705(-B)S10 R2834(option)S3118(overrides)S3521(this)S3694(option,)S4003(causing)S4338(the)S4489(pre\256x)S4752(to)S4858(always)S5166(be)S7380 V1330(used)S1540(for)S1684(making)S(backup)290 2011 A

⌨️ 快捷键说明

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