%!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 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(RENAME)S 1154(\()S 1196(2)S 1254(\))S 2696(Eighth)S (Edition)296 2989 A 4693(RENAME)S 5127(\()S 5169(2)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(rename)S 10 R-1 1402(-)S 10 R 1484(change)S 1794(the)S 1942(name)S 2185(of)S 2294(a)S 2364(\256le)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 1608 V 1080(int)S 1236(rename\(const)S 1857(char)S 2091(*)S 10 I 2141(from)S 10 B 2331(,)S 2394(const)S 2656(char)S 2890(*)S 10 I 2940(to)S 10 B 3018(\))S 1776 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 1896 V 10 B 1080(Rename)S 10 R 1466(causes)S 1762(the)S 1918(link)S 2107(named)S 10 I 2408(from)S 10 R 2631(to)S 2742(be)S 2870(renamed)S 3251(as)S 10 I 3369(to)S 10 R 3455(.)S 3539(If)S 10 I 3641(to)S 10 R 3753(exists,)S 4041(then)S 4248(it)S 4338(is)S 4439(\256rst)S 4630(removed.)S 5066(Both)S 2016 V 10 I 1080(from)S 10 R 1298(and)S 10 I 1471(to)S 10 R 1577(must)S 1800(be)S 1923(of)S 2035(the)S 2186(same)S 2421(type)S 2622(\(that)S 2835(is,)S 2955(both)S 3161(directories)S 3614(or)S 3725(both)S (non-directories\),)669 3930 A 4626(and)S 4798(must)S 5020(reside)S 2136 V 1080(on)S 1205(the)S 1353(same)S 1585(\256le)S 1739(system.)S 2304 V 10 B 1080(Rename)S 10 R 1459(guarantees)S 1916(that)S 2093(an)S 2214(instance)S 2571(of)S 10 I 2682(to)S 10 R (will)157 2787 A 2971(always)S 3278(exist,)S 3520(even)S 3737(if)S 3826(the)S 3976(system)S (should)267 4282 A 4576(crash)S 4816(in)S 4921(the)S 5071(mid-)S 2424 V 1080(dle)S 1228(of)S 1337(the)S 1485(operation.)S 2592 V 1080(If)S 1175(the)S 1325(\256nal)S (component)446 1531 A 2004(of)S 10 I 2115(from)S 10 R 2332(is)S 2426(a)S 2498(symbolic)S 2893(link,)S 3101(the)S 3251(symbolic)S 3646(link)S 3829(is)S 3923(renamed,)S 4322(not)S 4477(the)S 4628(\256le)S 4785(or)S 4897(directory)S 2712 V 1080(to)S 1183(which)S 1454(it)S 1535(points.)S 2880 V 9 R 720(R)S 722(RE)S 784(ET)S 842(TU)S 900(UR)S 968(RN)S 1030(N)S 1121(V)S 1123(VA)S 1191(AL)S 1259(LU)S 1317(UE)S 1385(E)S 3000 V 10 R 1080(A)S 1186(0)S 1269(value)S 1520(is)S 1621(returned)S 1991(if)S 2087(the)S 2244(operation)S (succeeds,)383 2658 A 3075(otherwise)S 10 B 3501(rename)S 10 R 3860(returns)S 10 R-1 4174(-)S 10 R 4231(1)S 4315(and)S 4494(the)S 4651(global)S 4936(variable)S 3120 V 10 B (errno)241 1080 A 10 R 1346(indicates)S 1729(the)S 1877(reason)S 2165(for)S 2308(the)S 2456(failure.)S 3288 V 9 R 720(E)S 722(ER)S 780(RR)S 842(RO)S 904(OR)S 972(RS)S 1034(S)S 3408 V 10 B 1080(Rename)S 10 R (will)157 1458 A 1640(fail)S 1800(and)S 1970(neither)S 2275(of)S 2384(the)S 2532(argument)S 2937(\256les)S (will)157 3130 A 3312(be)S 3432(affected)S 3783(if)S 3870(any)S 4040(of)S 4149(the)S 4297(following)S 4713(are)S 4862(true:)S 3576 V ([ENAMETOOLONG])916 1080 A 3696 V 1830(A)S 1928(path)S 2126(name)S (exceeds)319 2369 A 2713(PATH_MAX)S 3287(characters.)S 3864 V 1080([ENOENT])S 1830(A)S (component)446 1928 A 2399(of)S 2508(the)S 10 I 2656(from)S 10 R 2871(path)S 3069(does)S 3278(not)S 3431(exist,)S 3671(or)S 3780(a)S 3850(path)S 4048(pre\256x)S 4308(of)S 10 I 4417(to)S 10 R 4520(does)S 4729(not)S 4882(exist.)S 4032 V 1080([EACCES])S 1830(A)S (component)446 1928 A 2399(of)S 2508(either)S 2763(path)S 2961(pre\256x)S 3221(denies)S 3503(search)S 3786(permission.)S 4200 V 1080([EACCES])S 1830(The)S 2015(requested)S 2429(link)S 2613(requires)S (writing)291 2967 A 3287(in)S 3394(a)S 3468(directory)S 3861(with)S 4069(a)S 4143(mode)S 4395(that)S 4575(denies)S 4861(write)S 5098(per-)S 4320 V 1830(mission.)S 4488 V 1080([EPERM])S 1830(The)S 2016(directory)S 2409(containing)S 10 I 2862(from)S 10 R 3081(is)S 3178(marked)S 3510(sticky,)S 3805(and)S 3980(neither)S 4290(the)S 4443(containing)S 4897(directory)S 4608 V 1830(nor)S 10 I 1989(from)S 10 R 2204(are)S 2353(owned)S 2646(by)S 2771(the)S 2919(effective)S 3298(user)S 3491(ID.)S 4776 V 1080([EPERM])S 1830(The)S 10 I 2020(to)S 10 R 2131(\256le)S 2293(exists,)S 2580(the)S 2736(directory)S 3133(containing)S 10 I 3590(to)S 10 R 3701(is)S 3801(marked)S 4136(sticky,)S 4434(and)S 4612(neither)S 4925(the)S 5082(con-)S 4896 V 1830(taining)S 2134(directory)S 2523(nor)S 10 I 2682(to)S 10 R 2785(are)S 2934(owned)S 3227(by)S 3352(the)S 3500(effective)S 3879(user)S 4072(ID.)S 5064 V 1080([ELOOP])S 1830(Too)S 2022(many)S 2275(symbolic)S 2673(links)S 2899(were)S (encountered)492 3127 A 3650(in)S 3759(translating)S 4215(either)S 4476(pathname.)S 4948(\(Minix-)S 5184 V 1830(vmd\))S 5352 V 1080([ENOTDIR])S 1830(A)S (component)446 1928 A 2399(of)S 2508(either)S 2763(path)S 2961(pre\256x)S 3221(is)S 3313(not)S 3466(a)S 3536(directory.)S 5520 V 1080([ENOTDIR])S 10 I 1830(From)S 10 R 2079(is)S 2171(a)S 2241(directory,)S 2655(but)S 10 I 2808(to)S 10 R 2911(is)S 3003(not)S 3156(a)S 3226(directory.)S 5688 V 1080([EISDIR])S 10 I 1830(To)S 10 R 1961(is)S 2053(a)S 2123(directory,)S 2537(but)S 10 I 2690(from)S 10 R 2905(is)S 2997(not)S 3150(a)S 3220(directory.)S 5856 V 1080([EXDEV])S 1830(The)S 2012(link)S 2193(named)S 2486(by)S 10 I 2611(to)S 10 R 2714(and)S 2884(the)S 3032(\256le)S 3186(named)S 3479(by)S 10 I 3604(from)S 10 R 3820(are)S 3970(on)S 4096(different)S 4470(logical)S 4770(devices)S 5098(\(\256le)S 5976 V 1830(systems\).)S 6144 V 1080([ENOSPC])S 1830(The)S 2037(directory)S 2452(in)S 2581(which)S 2878(the)S 3052(entry)S 3310(for)S 3479(the)S 3653(new)S 3872(name)S 4141(is)S 4259(being)S (placed)263 4533 A (cannot)268 4847 A 5166(be)S 6264 V 1830(extended)S (because)319 2218 A 2562(there)S 2789(is)S 2881(no)S (space)224 3006 A 3255(left)S 3415(on)S 3540(the)S 3688(\256le)S 3842(system)S 4146(containing)S 4595(the)S 4743(directory.)S 6432 V 1080([EIO])S 1830(An)S 1978(I/O)S 2138(error)S 2360(occurred)S 2738(while)S 2987(making)S 3313(or)S (updating)351 3422 A 3798(a)S 3868(directory)S 4257(entry.)S 6600 V 1080([EROFS])S 1830(The)S 2012(requested)S 2423(link)S 2604(requires)S (writing)291 2954 A 3270(in)S 3373(a)S 3443(directory)S 3832(on)S 3957(a)S 4027(read-only)S 4438(\256le)S 4592(system.)S 6768 V 1080([EFAULT])S 10 I 1830(Path)S 10 R 2045(points)S 2315(outside)S 2630(the)S 2778(process's)S 3178(allocated)S 3567(address)S (space.)249 3894 A 6936 V ([EINVAL])445 1080 A 10 I 1830(From)S 10 R 2079(is)S 2171(a)S 2241(parent)S 2518(directory)S 2907(of)S 10 I 3016(to)S 10 R 3102(,)S 3152(or)S 3261(an)S 3381(attempt)S 3708(is)S 3800(made)S 4043(to)S 4146(rename)S 4468(``.'')S 4654(or)S 4763(``..''.)S 7104 V 1080([ENOTEMPTY])S 10 I 1830(To)S 10 R 1961(is)S 2053(a)S 2123(directory)S 2512(and)S 2682(is)S 2774(not)S 2927(empty.)S 7272 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 7392 V 10 B 1080(open)S 10 R 1287(\(2\))S 7903 V 720(Page)S 941(1)S 2669(\()S 2711(May)S 2920(22,)S (1986)200 3070 A 3278(\))S 4455(September)S 4911(13,)S (1996)200 5061 A 8143 V EP %%Trailer %%DocumentFonts: Times-Roman Times-Bold Times-Italic %%Pages: 1