📄 rename.2
字号:
%!PS-Adobe-1.0%%Creator: devps (Pipeline Associates, Inc.)%%CreationDate: Fri Sep 13 13:05:52 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(RENAME)S1154(\()S1196(2)S1254(\))S2696(Eighth)S(Edition)296 2989 A4693(RENAME)S5127(\()S5169(2)S5227(\))S960 V9 R720(N)S722(NA)S790(AM)S858(ME)S940(E)S1080 V10 R1080(rename)S10 R-11402(-)S10 R1484(change)S1794(the)S1942(name)S2185(of)S2294(a)S2364(\256le)S1248 V9 R720(S)S722(SY)S774(YN)S842(NO)S910(OP)S978(PS)S1030(SI)S1082(IS)S1115(S)S1368 V10 B1080(#include)S1482(<stdio.h>)S1608 V1080(int)S1236(rename\(const)S1857(char)S2091(*)S10 I2141(from)S10 B2331(,)S2394(const)S2656(char)S2890(*)S10 I2940(to)S10 B3018(\))S1776 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)S1896 V10 B1080(Rename)S10 R1466(causes)S1762(the)S1918(link)S2107(named)S10 I2408(from)S10 R2631(to)S2742(be)S2870(renamed)S3251(as)S10 I3369(to)S10 R3455(.)S3539(If)S10 I3641(to)S10 R3753(exists,)S4041(then)S4248(it)S4338(is)S4439(\256rst)S4630(removed.)S5066(Both)S2016 V10 I1080(from)S10 R1298(and)S10 I1471(to)S10 R1577(must)S1800(be)S1923(of)S2035(the)S2186(same)S2421(type)S2622(\(that)S2835(is,)S2955(both)S3161(directories)S3614(or)S3725(both)S(non-directories\),)669 3930 A4626(and)S4798(must)S5020(reside)S2136 V1080(on)S1205(the)S1353(same)S1585(\256le)S1739(system.)S2304 V10 B1080(Rename)S10 R1459(guarantees)S1916(that)S2093(an)S2214(instance)S2571(of)S10 I2682(to)S10 R(will)157 2787 A2971(always)S3278(exist,)S3520(even)S3737(if)S3826(the)S3976(system)S(should)267 4282 A4576(crash)S4816(in)S4921(the)S5071(mid-)S2424 V1080(dle)S1228(of)S1337(the)S1485(operation.)S2592 V1080(If)S1175(the)S1325(\256nal)S(component)446 1531 A2004(of)S10 I2115(from)S10 R2332(is)S2426(a)S2498(symbolic)S2893(link,)S3101(the)S3251(symbolic)S3646(link)S3829(is)S3923(renamed,)S4322(not)S4477(the)S4628(\256le)S4785(or)S4897(directory)S2712 V1080(to)S1183(which)S1454(it)S1535(points.)S2880 V9 R720(R)S722(RE)S784(ET)S842(TU)S900(UR)S968(RN)S1030(N)S1121(V)S1123(VA)S1191(AL)S1259(LU)S1317(UE)S1385(E)S3000 V10 R1080(A)S1186(0)S1269(value)S1520(is)S1621(returned)S1991(if)S2087(the)S2244(operation)S(succeeds,)383 2658 A3075(otherwise)S10 B3501(rename)S10 R3860(returns)S10 R-14174(-)S10 R4231(1)S4315(and)S4494(the)S4651(global)S4936(variable)S3120 V10 B(errno)241 1080 A10 R1346(indicates)S1729(the)S1877(reason)S2165(for)S2308(the)S2456(failure.)S3288 V9 R720(E)S722(ER)S780(RR)S842(RO)S904(OR)S972(RS)S1034(S)S3408 V10 B1080(Rename)S10 R(will)157 1458 A1640(fail)S1800(and)S1970(neither)S2275(of)S2384(the)S2532(argument)S2937(\256les)S(will)157 3130 A3312(be)S3432(affected)S3783(if)S3870(any)S4040(of)S4149(the)S4297(following)S4713(are)S4862(true:)S3576 V([ENAMETOOLONG])916 1080 A3696 V1830(A)S1928(path)S2126(name)S(exceeds)319 2369 A2713(PATH_MAX)S3287(characters.)S3864 V1080([ENOENT])S1830(A)S(component)446 1928 A2399(of)S2508(the)S10 I2656(from)S10 R2871(path)S3069(does)S3278(not)S3431(exist,)S3671(or)S3780(a)S3850(path)S4048(pre\256x)S4308(of)S10 I4417(to)S10 R4520(does)S4729(not)S4882(exist.)S4032 V1080([EACCES])S1830(A)S(component)446 1928 A2399(of)S2508(either)S2763(path)S2961(pre\256x)S3221(denies)S3503(search)S3786(permission.)S4200 V1080([EACCES])S1830(The)S2015(requested)S2429(link)S2613(requires)S(writing)291 2967 A3287(in)S3394(a)S3468(directory)S3861(with)S4069(a)S4143(mode)S4395(that)S4575(denies)S4861(write)S5098(per-)S4320 V1830(mission.)S4488 V1080([EPERM])S1830(The)S2016(directory)S2409(containing)S10 I2862(from)S10 R3081(is)S3178(marked)S3510(sticky,)S3805(and)S3980(neither)S4290(the)S4443(containing)S4897(directory)S4608 V1830(nor)S10 I1989(from)S10 R2204(are)S2353(owned)S2646(by)S2771(the)S2919(effective)S3298(user)S3491(ID.)S4776 V1080([EPERM])S1830(The)S10 I2020(to)S10 R2131(\256le)S2293(exists,)S2580(the)S2736(directory)S3133(containing)S10 I3590(to)S10 R3701(is)S3801(marked)S4136(sticky,)S4434(and)S4612(neither)S4925(the)S5082(con-)S4896 V1830(taining)S2134(directory)S2523(nor)S10 I2682(to)S10 R2785(are)S2934(owned)S3227(by)S3352(the)S3500(effective)S3879(user)S4072(ID.)S5064 V1080([ELOOP])S1830(Too)S2022(many)S2275(symbolic)S2673(links)S2899(were)S(encountered)492 3127 A3650(in)S3759(translating)S4215(either)S4476(pathname.)S4948(\(Minix-)S5184 V1830(vmd\))S5352 V1080([ENOTDIR])S1830(A)S(component)446 1928 A2399(of)S2508(either)S2763(path)S2961(pre\256x)S3221(is)S3313(not)S3466(a)S3536(directory.)S5520 V1080([ENOTDIR])S10 I1830(From)S10 R2079(is)S2171(a)S2241(directory,)S2655(but)S10 I2808(to)S10 R2911(is)S3003(not)S3156(a)S3226(directory.)S5688 V1080([EISDIR])S10 I1830(To)S10 R1961(is)S2053(a)S2123(directory,)S2537(but)S10 I2690(from)S10 R2905(is)S2997(not)S3150(a)S3220(directory.)S5856 V1080([EXDEV])S1830(The)S2012(link)S2193(named)S2486(by)S10 I2611(to)S10 R2714(and)S2884(the)S3032(\256le)S3186(named)S3479(by)S10 I3604(from)S10 R3820(are)S3970(on)S4096(different)S4470(logical)S4770(devices)S5098(\(\256le)S5976 V1830(systems\).)S6144 V1080([ENOSPC])S1830(The)S2037(directory)S2452(in)S2581(which)S2878(the)S3052(entry)S3310(for)S3479(the)S3653(new)S3872(name)S4141(is)S4259(being)S(placed)263 4533 A(cannot)268 4847 A5166(be)S6264 V1830(extended)S(because)319 2218 A2562(there)S2789(is)S2881(no)S(space)224 3006 A3255(left)S3415(on)S3540(the)S3688(\256le)S3842(system)S4146(containing)S4595(the)S4743(directory.)S6432 V1080([EIO])S1830(An)S1978(I/O)S2138(error)S2360(occurred)S2738(while)S2987(making)S3313(or)S(updating)351 3422 A3798(a)S3868(directory)S4257(entry.)S6600 V1080([EROFS])S1830(The)S2012(requested)S2423(link)S2604(requires)S(writing)291 2954 A3270(in)S3373(a)S3443(directory)S3832(on)S3957(a)S4027(read-only)S4438(\256le)S4592(system.)S6768 V1080([EFAULT])S10 I1830(Path)S10 R2045(points)S2315(outside)S2630(the)S2778(process's)S3178(allocated)S3567(address)S(space.)249 3894 A6936 V([EINVAL])445 1080 A10 I1830(From)S10 R2079(is)S2171(a)S2241(parent)S2518(directory)S2907(of)S10 I3016(to)S10 R3102(,)S3152(or)S3261(an)S3381(attempt)S3708(is)S3800(made)S4043(to)S4146(rename)S4468(``.'')S4654(or)S4763(``..''.)S7104 V1080([ENOTEMPTY])S10 I1830(To)S10 R1961(is)S2053(a)S2123(directory)S2512(and)S2682(is)S2774(not)S2927(empty.)S7272 V9 R720(S)S722(SE)S774(EE)S832(E)S913(A)S915(AL)S983(LS)S1041(SO)S1093(O)S7392 V10 B1080(open)S10 R1287(\(2\))S7903 V720(Page)S941(1)S2669(\()S2711(May)S2920(22,)S(1986)200 3070 A3278(\))S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Trailer%%DocumentFonts: Times-Roman Times-Bold Times-Italic%%Pages: 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -