📄 wait.2
字号:
%!PS-Adobe-1.0%%Creator: devps (Pipeline Associates, Inc.)%%CreationDate: Fri Sep 13 13:06:01 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/Times-Bold 1 AEnc-def pop/B-1{/Times-Bold-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(WAIT)S992(\()S1034(2)S1092(\))S2696(Eighth)S(Edition)296 2989 A4855(WAIT)S5127(\()S5169(2)S5227(\))S960 V9 R720(N)S722(NA)S790(AM)S858(ME)S940(E)S1080 V10 R1080(wait,)S1304(waitpid)S10 R-11631(-)S10 R1713(wait)S1912(for)S2055(process)S2382(to)S2485(terminate)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(<sys/types.h>)S1488 V1080(#include)S1482(<sys/wait.h>)S1728 V1080(pid_t)S1342(wait\(int)S1717(*)S10 I1767(status)S10 B2001(\))S1848 V1080(pid_t)S1342(waitpid\(pid_t)S10 I1963(pid)S10 B2091(,)S2154(int)S2310(*)S10 I2360(status)S10 B2594(,)S2657(int)S10 I2813(options)S10 B3108(\))S2016 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)S2136 V10 B1080(Wait)S10 R1320(causes)S1611(its)S1734(caller)S1987(to)S2093(delay)S(until)184 2339 A2551(a)S2624(signal)S2892(is)S(received)342 2987 A3357(or)S3469(one)S3642(of)S3754(its)S3877(child)S4106(processes)S4520(terminates.)S5019(If)S5116(any)S2256 V1080(child)S1309(has)S1471(died)S1672(since)S1907(the)S2058(last)S10 B2226(wait)S10 R2411(,)S2464(return)S2733(is)S2828(immediate,)S3306(returning)S3703(the)S3854(process)S4183(id)S4288(and)S4460(exit)S4638(status)S4894(of)S5005(one)S5177(of)S2376 V1080(the)S1228(terminated)S1684(children.)S2089(If)S2182(there)S2409(are)S2558(no)S2683(children,)S3063(return)S3329(is)S3421(immediate)S3871(with)S4075(the)S4223(value)S10 R-14466(-)S10 R4523(1)S4598(returned.)S2544 V1080(On)S1236(return)S1510(from)S1740(a)S(successful)414 1819 A10 B2267(wait)S10 R2486(call,)S10 I2691(status)S10 R2959(is)S(nonzero,)349 3060 A3443(and)S3622(the)S3779(high)S3991(byte)S4198(of)S10 I4316(status)S10 R4584(contains)S4953(the)S5110(low)S2664 V1080(byte)S1283(of)S1397(the)S1550(argument)S1960(to)S10 B2068(exit)S10 R(supplied)340 2254 A2623(by)S2752(the)S2904(child)S3134(process;)S3493(the)S3645(low)S3825(byte)S4027(of)S10 I4140(status)S10 R4403(contains)S4767(the)S4919(termina-)S2784 V1080(tion)S1273(status)S1539(of)S1660(the)S1820(process.)S2209(A)S2319(more)S2563(precise)S(de\256nition)385 2886 A3308(of)S3429(the)S10 I3589(status)S10 R3860(word)S4104(is)S4208(given)S4468(in)S4584(<)S10 I4641(sys/wait.h)S10 R5048(>.)S5193(If)S2904 V10 B1080(wait)S10 R1290(can)S1455(called)S1721(with)S1925(a)S1995(null)S2176(pointer)S2486(argument)S2891(to)S2994(indicate)S3338(that)S3514(no)S3639(status)S3893(need)S4108(be)S4228(returned.)S3072 V10 B1080(Waitpid)S10 R1461(provides)S1836(an)S1960(alternate)S(interface)354 2337 A2720(for)S2867(programs)S3276(that)S3456(must)S3680(not)S3837(block)S4090(when)S4338(collecting)S4765(the)S4918(status)S5177(of)S3192 V1080(child)S1308(processes,)S1746(or)S1856(that)S2033(wish)S2249(to)S2353(wait)S2553(for)S2697(one)S2868(particular)S3281(child.)S3558(The)S3741(pid)S3895(parameter)S4325(is)S4418(the)S4567(process)S4895(ID)S5028(of)S5138(the)S3312 V1080(child)S1309(to)S1415(wait)S1617(for,)S10 R-11788(-)S10 R1845(1)S1923(for)S2069(any)S2242(child.)S2521(The)S10 I2706(status)S10 R2968(parameter)S3400(is)S3495(de\256ned)S3819(as)S(above.)265 3932 A4251(The)S10 I4437(options)S10 R4761(parameter)S5194(is)S3432 V1080(used)S1320(to)S1454(indicate)S
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -