MKNOD.2
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:13k
源码类别:
操作系统开发
开发平台:
C/C++
- %!PS-Adobe-1.0
- %%Creator: devps (Pipeline Associates, Inc.)
- %%CreationDate: Fri Sep 13 13:05:46 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
- (MKNOD)381 720 A
- 1109(()S
- 1151(2)S
- 1209())S
- 2696(Eighth)S
- (Edition)296 2989 A
- (MKNOD)381 4738 A
- 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
- (mknod,)303 1080 A
- 1408(mk256fo)S
- 10 R-1
- 1701(-)S
- 10 R
- 1783(make)S
- 2026(a)S
- 2096(special)S
- 2401(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(<sys/types.h>)S
- 1488 V
- 1080(#include)S
- 1482(<unistd.h>)S
- 1608 V
- 1080(#include)S
- 1482(<sys/stat.h>)S
- 1848 V
- 1080(int)S
- 1236(mknod(const)S
- 1834(char)S
- 2068(*)S
- 10 I
- 2118(path)S
- 10 B
- 2296(,)S
- 2359(mode_t)S
- 10 I
- 2716(mode)S
- 10 B
- 2934(,)S
- 2997(dev_t)S
- 10 I
- 3270(dev)S
- 10 B
- 3410())S
- 1968 V
- 1080(int)S
- 1236(mk256fo(const)S
- 1812(char)S
- 2046(*)S
- 10 I
- 2096(path)S
- 10 B
- 2274(,)S
- 2337(mode_t)S
- 10 I
- 2694(mode)S
- 10 B
- 2912())S
- 2136 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
- 2256 V
- 10 B
- 1080(Mknod)S
- 10 R
- 1421(creates)S
- 1730(a)S
- 1803(new)S
- 2000(256le)S
- 2158(whose)S
- 2444(name)S
- 2691(is)S
- 10 I
- 2787(path.)S
- 10 R
- 3019(The)S
- 3205(mode)S
- 3457(of)S
- 3570(the)S
- 3722(new)S
- 3919(256le)S
- 4077((including)S
- 4519(special)S
- 4828(256le)S
- 4986(bits))S
- 5194(is)S
- 2376 V
- (initialized)403 1080 A
- 1513(from)S
- 10 I
- 1739(mode)S
- 10 R
- 1965(,)S
- 2020(as)S
- 2134(de256ned)S
- 2460(in)S
- 10 I
- 2568(<sys/stat.h>)S
- 10 R
- 3083(.)S
- 3163((The)S
- 3384(protection)S
- 3822(part)S
- 4009(of)S
- 4123(the)S
- 4275(mode)S
- 4527(is)S
- 4623(modi256ed)S
- 5009(by)S
- 5138(the)S
- 2496 V
- 1080(process's)S
- 1483(mode)S
- 1734(mask)S
- 1974((see)S
- 10 B
- 2165(umask)S
- 10 R
- ((2))).)211 2450 A
- 2714(The)S
- 2899(256rst)S
- 3084(block)S
- 3335(pointer)S
- 3648(of)S
- 3760(the)S
- (i-node)257 3911 A
- 4196(is)S
- (initialized)403 4291 A
- 4722(from)S
- 10 I
- 4947(dev)S
- 10 R
- 5116(and)S
- 2616 V
- 1080(is)S
- 1172(used)S
- 1381(to)S
- 1484(specify)S
- 1800(which)S
- 2071(device)S
- 2359(the)S
- 2507(special)S
- 2812(256le)S
- 2966(refers)S
- 3222(to.)S
- 2784 V
- 1080(If)S
- 1176(mode)S
- 1427(indicates)S
- 1813(a)S
- 1886(block)S
- 2137(or)S
- 2249(character)S
- 2648(special)S
- 2956(256le,)S
- 10 I
- 3138(dev)S
- 10 R
- 3306(is)S
- 3401(the)S
- 3552(device)S
- 3843(number)S
- 4178(of)S
- 4290(a)S
- 4363(character)S
- 4762(or)S
- 4874(block)S
- 5126(I/O)S
- 2904 V
- 1080(device.)S
- 1429(The)S
- 1622(low)S
- 1809(eight)S
- 2045(bits)S
- 2225(of)S
- 2344(the)S
- 2502(device)S
- 2800(number)S
- 3142(hold)S
- 3355(the)S
- 3513(minor)S
- 3788(device)S
- 4086(number)S
- 4428(that)S
- 4614(selects)S
- 4918(a)S
- 4998(device)S
- 3024 V
- (among)273 1080 A
- 1387(the)S
- 1544(devices)S
- (governed)374 1880 A
- 2288(by)S
- 2422(the)S
- 2579(same)S
- 2820(driver.)S
- 3145(The)S
- 3336(driver)S
- 3611(is)S
- 3712(selected)S
- 4071(by)S
- 4205(the)S
- 4362(major)S
- 4631(device)S
- 4929(number,)S
- 3144 V
- 1080(the)S
- 1228(next)S
- 1426(eight)S
- 1652(bits)S
- 1822(of)S
- 1931(the)S
- 2079(device)S
- 2367(number.)S
- 3312 V
- 1080(If)S
- 10 I
- 1184(mode)S
- 10 R
- 1438(does)S
- 1658(not)S
- 1823(indicate)S
- 2179(a)S
- 2261(block)S
- 2521(special)S
- 2838(or)S
- 2959(character)S
- 3367(special)S
- 3684(device,)S
- 10 I
- 4009(dev)S
- 10 R
- 4186(is)S
- (ignored.)332 4290 A
- 4684((For)S
- 4895(example,)S
- 3432 V
- 1080(when)S
- 1323(creating)S
- 1673(a)S
- 1743(``256fo'')S
- 2044(special)S
- 2349(256le.))S
- 3600 V
- 10 B
- 1080(Mknod)S
- 10 R
- 1418(may)S
- 1616(be)S
- (invoked)323 1736 A
- 2084(only)S
- 2287(by)S
- 2412(the)S
- 2560(super-user,)S
- 3030(unless)S
- 3306(it)S
- 3387(is)S
- 3479(being)S
- 3727(used)S
- 3936(to)S
- 4039(create)S
- 4306(a)S
- 4376(256fo.)S
- 3768 V
- 1080(The)S
- 1262(call)S
- 10 B
- 1433(mk256fo()S
- 10 I
- 1747(path)S
- 10 B
- 1933(,)S
- 10 I
- 1983(mode)S
- 10 B
- 2209())S
- 10 R
- 2268(is)S
- 2360(equivalent)S
- 2804(to)S
- 3936 V
- 10 B
- 1440(mknod()S
- 10 I
- 1776(path)S
- 10 B
- 1962(,)S
- 2012(()S
- 10 I
- 2046(mode)S
- 10 B
- 2297(&)S
- (0777))234 2406 A
- 2665(|)S
- 2712(S_IFIFO,)S
- 3148(0))S
- 4104 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
- 4224 V
- 10 R
- (Upon)223 1080 A
- (successful)414 1330 A
- 1771(completion)S
- 2250(a)S
- 2322(value)S
- 2567(of)S
- 2678(0)S
- 2755(is)S
- 2849(returned.)S
- 3262(Otherwise,)S
- 3729(a)S
- 3801(value)S
- 4046(of)S
- 10 R-1
- 4158(-)S
- 10 R
- 4215(1)S
- 4293(is)S
- 4388(returned)S
- 4752(and)S
- 10 B
- (errno)241 4925 A
- 10 R
- 5194(is)S
- 4344 V
- 1080(set)S
- 1217(to)S
- 1320(indicate)S
- 1664(the)S
- 1812(error.)S
- 4512 V
- 9 R
- 720(E)S
- 722(ER)S
- 780(RR)S
- 842(RO)S
- 904(OR)S
- 972(RS)S
- 1034(S)S
- 4632 V
- 10 B
- 1080(Mknod)S
- 10 R
- (will)157 1418 A
- 1600(fail)S
- 1760(and)S
- 1930(the)S
- 2078(256le)S
- 2232(mode)S
- (will)157 2480 A
- 2662(be)S
- 2782(unchanged)S
- 3242(if:)S
- 4800 V
- 1080([ENOTDIR])S
- 1830(A)S
- (component)446 1928 A
- 2399(of)S
- 2508(the)S
- 2656(path)S
- 2854(pre256x)S
- 3114(is)S
- 3206(not)S
- 3359(a)S
- 3429(directory.)S
- 4968 V
- ([ENAMETOOLONG])916 1080 A
- 5088 V
- 1830(The)S
- 2012(path)S
- 2210(name)S
- (exceeds)319 2453 A
- 2797(PATH_MAX)S
- 3371(characters.)S
- 5256 V
- 1080([ENOENT])S
- 1830(A)S
- (component)446 1928 A
- 2399(of)S
- 2508(the)S
- 2656(path)S
- 2854(pre256x)S
- 3114(does)S
- 3323(not)S
- 3476(exist.)S
- 5424 V
- 1080([EACCES])S
- 1830(Search)S
- 2130(permission)S
- 2596(is)S
- 2688(denied)S
- 2981(for)S
- 3124(a)S
- (component)446 3194 A
- 3665(of)S
- 3774(the)S
- 3922(path)S
- 4120(pre256x.)S
- 5592 V
- 1080([ELOOP])S
- 1830(Too)S
- 2033(many)S
- 2297(symbolic)S
- 2706(links)S
- 2942(were)S
- (encountered)492 3180 A
- 3713(in)S
- 3833(translating)S
- 4300(the)S
- 4465(pathname.)S
- 4948((Minix-)S
- 5712 V
- 1830(vmd))S
- 5880 V
- 1080([EPERM])S
- 1830(The)S
- 2012(process's)S
- 2412(effective)S
- 2791(user)S
- 2984(ID)S
- 3116(is)S
- 3208(not)S
- 3361(super-user.)S
- 6048 V
- 1080([EIO])S
- 1830(An)S
- 1978(I/O)S
- 2138(error)S
- 2360(occurred)S
- 2738(while)S
- 2987(making)S
- 3313(the)S
- 3461(directory)S
- 3850(entry)S
- 4082(or)S
- 4191(allocating)S
- 4613(the)S
- (inode.)248 4761 A
- 6216 V
- 1080([ENOSPC])S
- 1830(The)S
- 2039(directory)S
- 2455(in)S
- 2585(which)S
- 2883(the)S
- 3058(entry)S
- 3317(for)S
- 3488(the)S
- 3664(new)S
- (node)195 3885 A
- 4133(is)S
- 4253(being)S
- (placed)263 4529 A
- (cannot)268 4845 A
- 5166(be)S
- 6336 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
- 6504 V
- 1080([ENOSPC])S
- 1830(There)S
- 2091(are)S
- 2240(no)S
- 2365(free)S
- (inodes)262 2548 A
- 2835(on)S
- 2960(the)S
- 3108(256le)S
- 3262(system)S
- 3566(on)S
- 3691(which)S
- 3962(the)S
- (node)195 4110 A
- 4330(is)S
- 4422(being)S
- 4670(created.)S
- 6672 V
- 1080([EROFS])S
- 1830(The)S
- 2012(named)S
- 2305(256le)S
- 2459(resides)S
- 2764(on)S
- 2889(a)S
- 2959(read-only)S
- 3370(256le)S
- 3524(system.)S
- 6840 V
- 1080([EEXIST])S
- 1830(The)S
- 2012(named)S
- 2305(256le)S
- 2459(exists.)S
- 7008 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
- 7176 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
- 7296 V
- 10 B
- 1080(chmod)S
- 10 R
- 1371((2),)S
- 10 B
- 1539(stat)S
- 10 R
- 1696((2),)S
- 10 B
- 1864(umask)S
- 10 R
- 2149((2).)S
- 7903 V
- 720(Page)S
- 941(1)S
- 2669(()S
- 2711(May)S
- 2920(23,)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