add directory Minix
This commit is contained in:
688
Minix/CD-ROM-2.0/MINIX/MANUALS/PS2/FORK.2
Normal file
688
Minix/CD-ROM-2.0/MINIX/MANUALS/PS2/FORK.2
Normal file
@@ -0,0 +1,688 @@
|
||||
%!PS-Adobe-1.0
|
||||
%%Creator: devps (Pipeline Associates, Inc.)
|
||||
%%CreationDate: Fri Sep 13 13:05:41 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
|
||||
%%EndProlog
|
||||
%%Page: 1 1
|
||||
BP
|
||||
/slant 0 def
|
||||
/height 0 def
|
||||
480 V
|
||||
10 R
|
||||
720(FORK)S
|
||||
997(\()S
|
||||
1039(2)S
|
||||
1097(\))S
|
||||
2696(Eighth)S
|
||||
(Edition)296 2989 A
|
||||
4850(FORK)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(fork)S
|
||||
10 R-1
|
||||
1273(-)S
|
||||
10 R
|
||||
1355(create)S
|
||||
1622(a)S
|
||||
1692(new)S
|
||||
1885(process)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
|
||||
1728 V
|
||||
1080(pid_t)S
|
||||
1342(fork\(void\))S
|
||||
1896 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
|
||||
2016 V
|
||||
10 B
|
||||
1080(Fork)S
|
||||
10 R
|
||||
1319(causes)S
|
||||
1608(creation)S
|
||||
1959(of)S
|
||||
2069(a)S
|
||||
2141(new)S
|
||||
2336(process.)S
|
||||
2715(The)S
|
||||
2899(new)S
|
||||
3094(process)S
|
||||
3423(\(child)S
|
||||
3685(process\))S
|
||||
4048(is)S
|
||||
4142(an)S
|
||||
4264(exact)S
|
||||
(copy)195 4504 A
|
||||
4726(of)S
|
||||
4837(the)S
|
||||
(calling)274 4987 A
|
||||
2136 V
|
||||
1080(process)S
|
||||
1407(except)S
|
||||
1695(for)S
|
||||
1838(the)S
|
||||
1986(following:)S
|
||||
2304 V
|
||||
1440(The)S
|
||||
1622(child)S
|
||||
1848(process)S
|
||||
2175(has)S
|
||||
2334(a)S
|
||||
2404(unique)S
|
||||
2702(process)S
|
||||
3029(ID.)S
|
||||
2472 V
|
||||
1440(The)S
|
||||
1622(child)S
|
||||
1848(process)S
|
||||
2175(has)S
|
||||
2334(a)S
|
||||
2404(different)S
|
||||
2777(parent)S
|
||||
3054(process)S
|
||||
3381(ID)S
|
||||
3513(\(i.e.,)S
|
||||
3720(the)S
|
||||
3868(process)S
|
||||
4195(ID)S
|
||||
4327(of)S
|
||||
4436(the)S
|
||||
4584(parent)S
|
||||
4861(process\).)S
|
||||
2640 V
|
||||
1440(The)S
|
||||
1622(child)S
|
||||
1848(process)S
|
||||
2175(has)S
|
||||
2334(its)S
|
||||
2454(own)S
|
||||
(copy)195 2652 A
|
||||
2872(of)S
|
||||
2982(the)S
|
||||
3131(parent's)S
|
||||
3482(descriptors.)S
|
||||
4000(These)S
|
||||
4267(descriptors)S
|
||||
4735(reference)S
|
||||
5138(the)S
|
||||
2760 V
|
||||
1440(same)S
|
||||
(underlying)435 1681 A
|
||||
2149(objects,)S
|
||||
2492(so)S
|
||||
2614(that,)S
|
||||
2823(for)S
|
||||
2974(instance,)S
|
||||
3362(\256le)S
|
||||
3524(pointers)S
|
||||
3881(in)S
|
||||
3992(\256le)S
|
||||
4154(objects)S
|
||||
4472(are)S
|
||||
4629(shared)S
|
||||
4925(between)S
|
||||
2880 V
|
||||
1440(the)S
|
||||
1597(child)S
|
||||
1832(and)S
|
||||
2011(the)S
|
||||
2168(parent,)S
|
||||
2479(so)S
|
||||
2602(that)S
|
||||
2787(an)S
|
||||
10 B
|
||||
2916(lseek)S
|
||||
10 R
|
||||
3129(\(2\))S
|
||||
3281(on)S
|
||||
3415(a)S
|
||||
3494(descriptor)S
|
||||
3931(in)S
|
||||
4044(the)S
|
||||
4202(child)S
|
||||
4438(process)S
|
||||
4775(can)S
|
||||
4950(affect)S
|
||||
5216(a)S
|
||||
3000 V
|
||||
1440(subsequent)S
|
||||
10 B
|
||||
1920(read)S
|
||||
10 R
|
||||
2150(or)S
|
||||
10 B
|
||||
2268(write)S
|
||||
10 R
|
||||
2527(by)S
|
||||
2661(the)S
|
||||
2818(parent.)S
|
||||
3154(This)S
|
||||
3367(descriptor)S
|
||||
(copying)323 3803 A
|
||||
4159(is)S
|
||||
4259(also)S
|
||||
4454(used)S
|
||||
4671(by)S
|
||||
4804(the)S
|
||||
4960(shell)S
|
||||
5183(to)S
|
||||
3120 V
|
||||
1440(establish)S
|
||||
1817(standard)S
|
||||
(input)206 2183 A
|
||||
2414(and)S
|
||||
2584(output)S
|
||||
2865(for)S
|
||||
3008(newly)S
|
||||
3279(created)S
|
||||
3596(processes)S
|
||||
4007(as)S
|
||||
4116(well)S
|
||||
4315(as)S
|
||||
4424(to)S
|
||||
4527(set)S
|
||||
4664(up)S
|
||||
4789(pipes.)S
|
||||
3288 V
|
||||
1440(The)S
|
||||
1622(child)S
|
||||
1848(starts)S
|
||||
2086(with)S
|
||||
2290(no)S
|
||||
2415(pending)S
|
||||
2763(signals)S
|
||||
3067(and)S
|
||||
3237(an)S
|
||||
3357(inactive)S
|
||||
3701(alarm)S
|
||||
3956(timer.)S
|
||||
3456 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
|
||||
3576 V
|
||||
10 R
|
||||
(Upon)223 1080 A
|
||||
(successful)414 1328 A
|
||||
1767(completion,)S
|
||||
10 B
|
||||
2269(fork)S
|
||||
10 R
|
||||
2479(returns)S
|
||||
2784(a)S
|
||||
2854(value)S
|
||||
3097(of)S
|
||||
3206(0)S
|
||||
3282(to)S
|
||||
3386(the)S
|
||||
3535(child)S
|
||||
3762(process)S
|
||||
4090(and)S
|
||||
4261(returns)S
|
||||
4567(the)S
|
||||
4716(process)S
|
||||
5044(ID)S
|
||||
5177(of)S
|
||||
3696 V
|
||||
1080(the)S
|
||||
1235(child)S
|
||||
1468(process)S
|
||||
1802(to)S
|
||||
1912(the)S
|
||||
2067(parent)S
|
||||
2351(process.)S
|
||||
2735(Otherwise,)S
|
||||
3207(a)S
|
||||
3284(value)S
|
||||
3534(of)S
|
||||
10 R-1
|
||||
3650(-)S
|
||||
10 R
|
||||
3707(1)S
|
||||
3789(is)S
|
||||
3888(returned)S
|
||||
4256(to)S
|
||||
4366(the)S
|
||||
4520(parent)S
|
||||
4803(process,)S
|
||||
5161(no)S
|
||||
3816 V
|
||||
1080(child)S
|
||||
1306(process)S
|
||||
1633(is)S
|
||||
1725(created,)S
|
||||
2067(and)S
|
||||
2237(the)S
|
||||
2385(global)S
|
||||
2661(variable)S
|
||||
10 B
|
||||
(errno)241 3011 A
|
||||
10 R
|
||||
3277(is)S
|
||||
3369(set)S
|
||||
3506(to)S
|
||||
3609(indicate)S
|
||||
3953(the)S
|
||||
4101(error.)S
|
||||
3984 V
|
||||
9 R
|
||||
720(E)S
|
||||
722(ER)S
|
||||
780(RR)S
|
||||
842(RO)S
|
||||
904(OR)S
|
||||
972(RS)S
|
||||
1034(S)S
|
||||
4104 V
|
||||
10 B
|
||||
1080(Fork)S
|
||||
10 R
|
||||
(will)157 1318 A
|
||||
1500(fail)S
|
||||
1660(and)S
|
||||
1830(no)S
|
||||
1955(child)S
|
||||
2181(process)S
|
||||
(will)157 2508 A
|
||||
2690(be)S
|
||||
2810(created)S
|
||||
3127(if)S
|
||||
3214(one)S
|
||||
3384(or)S
|
||||
3493(more)S
|
||||
3725(of)S
|
||||
3834(the)S
|
||||
3982(following)S
|
||||
4398(are)S
|
||||
4547(true:)S
|
||||
4272 V
|
||||
([EAGAIN])456 1080 A
|
||||
1830(The)S
|
||||
2021(system-imposed)S
|
||||
2708(limit)S
|
||||
2932(on)S
|
||||
3066(the)S
|
||||
3224(total)S
|
||||
3438(number)S
|
||||
3780(of)S
|
||||
3899(processes)S
|
||||
(under)229 4320 A
|
||||
4584(execution)S
|
||||
5010(would)S
|
||||
4392 V
|
||||
1830(be)S
|
||||
(exceeded.)400 2010 A
|
||||
2520(This)S
|
||||
2783(limit)S
|
||||
3057(is)S
|
||||
3208(con\256guration-dependent.)S
|
||||
4325(\(The)S
|
||||
4600(kernel)S
|
||||
4936(variable)S
|
||||
4512 V
|
||||
1830(NR_PROCS)S
|
||||
2364(in)S
|
||||
2467(<minix/con\256g.h>)S
|
||||
3194(\(Minix\),)S
|
||||
3557(or)S
|
||||
3666(<minix/const.h>)S
|
||||
4354(\(Minix-vmd\).\))S
|
||||
4680 V
|
||||
1080([ENOMEM])S
|
||||
1830(There)S
|
||||
2091(is)S
|
||||
2183(insuf\256cient)S
|
||||
2661(\(virtual\))S
|
||||
3017(memory)S
|
||||
3377(for)S
|
||||
3520(the)S
|
||||
3668(new)S
|
||||
3861(process.)S
|
||||
4848 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
|
||||
4968 V
|
||||
10 B
|
||||
1080(execve)S
|
||||
10 R
|
||||
1360(\(2\),)S
|
||||
10 B
|
||||
1528(wait)S
|
||||
10 R
|
||||
1713(\(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
|
||||
%%Pages: 1
|
||||
Reference in New Issue
Block a user