POPEN.3
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:10k
源码类别:
操作系统开发
开发平台:
C/C++
- %!PS-Adobe-1.0
- %%Creator: devps (Pipeline Associates, Inc.)
- %%CreationDate: Fri Sep 13 13:06:51 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(POPEN)S
- 1048(()S
- 1090(3)S
- 1148())S
- 2696(Eighth)S
- (Edition)296 2989 A
- 4799(POPEN)S
- 5127(()S
- 5169(3)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
- (popen,)270 1080 A
- 1375(pclose)S
- 10 R-1
- 1657(-)S
- 10 R
- (initiate)280 1739 A
- 2044(I/O)S
- 2204(to/from)S
- 2531(a)S
- 2601(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(<stdio.h>)S
- 1608 V
- 1080(FILE)S
- 1353(*popen(const)S
- 1962(char)S
- 2196(*command,)S
- 2734(const)S
- 2996(char)S
- 3230(*type))S
- 1728 V
- 1080(int)S
- 1236(pclose(FILE)S
- 1806(*stream))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 R
- 1080(The)S
- 1275(arguments)S
- 1732(to)S
- 10 B
- 1848(popen)S
- 10 R
- 2149(are)S
- 2311(pointers)S
- 2673(to)S
- 2789(null-terminated)S
- 3448(strings)S
- 3754(containing)S
- 4216(respectively)S
- 4741(a)S
- 4825(shell)S
- 5054(com-)S
- 2136 V
- 1080(mand)S
- 1331(line)S
- 1510(and)S
- 1683(an)S
- 1806(I/O)S
- 1969(mode,)S
- 2245(either)S
- 2503("r")S
- 2647(for)S
- 2792(reading)S
- 3121(or)S
- 3232("w")S
- 3414(for)S
- (writing.)316 3559 A
- 3927(It)S
- 4016(creates)S
- 4324(a)S
- 4396(pipe)S
- 4596(between)S
- 4959(the)S
- 5109(cal-)S
- 2256 V
- 1080(ling)S
- 1265(process)S
- 1596(and)S
- 1770(the)S
- 1922(command)S
- 2347(to)S
- 2454(be)S
- 2578(executed.)S
- 3015(The)S
- 3201(value)S
- 3449(returned)S
- 3815(is)S
- 3912(a)S
- 3987(stream)S
- 4286(pointer)S
- 4601(that)S
- 4782(can)S
- 4952(be)S
- 5077(used)S
- 2376 V
- 1080((as)S
- 1223(appropriate))S
- 1741(to)S
- 1844(write)S
- 2077(to)S
- 2180(the)S
- 2328(standard)S
- (input)206 2694 A
- 2925(of)S
- 3034(the)S
- 3182(command)S
- 3603(or)S
- 3712(read)S
- 3911(from)S
- 4132(its)S
- 4252(standard)S
- 4618(output.)S
- 2544 V
- 1080(A)S
- 1185(stream)S
- 1486(opened)S
- 1808(by)S
- 10 B
- 1940(popen)S
- 10 R
- (should)267 2235 A
- 2534(be)S
- 2661(closed)S
- 2950(by)S
- 10 B
- 3082(pclose)S
- 10 R
- 3345(,)S
- 3402(which)S
- 3680(waits)S
- 3925(for)S
- 4075(the)S
- 4230(associated)S
- 4676(process)S
- 5010(to)S
- 5120(ter-)S
- 2664 V
- 1080(minate)S
- 1379(and)S
- 1549(returns)S
- 1854(the)S
- 2002(exit)S
- 2178(status)S
- 2432(of)S
- 2541(the)S
- 2689(command.)S
- 2832 V
- (Because)336 1080 A
- 1444(open)S
- 1667(256les)S
- 1863(are)S
- 2015(shared,)S
- 2331(a)S
- 2404(type)S
- 2605("r")S
- 2749(command)S
- 3173(may)S
- 3374(be)S
- 3497(used)S
- 3709(as)S
- 3821(an)S
- (input)206 3944 A
- 4178(256lter,)S
- 4422(and)S
- 4595(a)S
- 4668(type)S
- 4869("w")S
- 5053(as)S
- 5166(an)S
- 2952 V
- 1080(output)S
- 1361(256lter.)S
- 3120 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
- 3240 V
- 10 B
- 1080(pipe)S
- 10 R
- 1265((2),)S
- 10 B
- 1433(fopen)S
- 10 R
- 1674((3),)S
- 10 B
- 1842(fclose)S
- 10 R
- 2083((3),)S
- 10 B
- 2251(system)S
- 10 R
- 2542((3),)S
- 10 B
- 2710(wait)S
- 10 R
- 2895((2),)S
- 10 B
- 3063(sh)S
- 10 R
- 3158((1).)S
- 3408 V
- 9 R
- 720(D)S
- 722(DI)S
- 790(IA)S
- 823(AG)S
- 891(GN)S
- 959(NO)S
- 1027(OS)S
- 1095(ST)S
- 1147(TI)S
- 1205(IC)S
- 1238(CS)S
- 1300(S)S
- 3528 V
- 10 B
- 1080(Popen)S
- 10 R
- 1374(returns)S
- 1679(a)S
- 1749(null)S
- 1930(pointer)S
- 2240(if)S
- 2327(256les)S
- 2520(or)S
- 2629(processes)S
- (cannot)268 3040 A
- 3333(be)S
- 3453(created,)S
- 3795(or)S
- 3904(the)S
- 4052(shell)S
- (cannot)268 4267 A
- 4560(be)S
- (accessed.)378 4680 A
- 3696 V
- 9 R
- 720(B)S
- 722(BU)S
- 784(UG)S
- 852(GS)S
- 920(S)S
- 3816 V
- 10 R
- 1080(Buffered)S
- 1464(reading)S
- 1791(before)S
- 2074(opening)S
- 2422(an)S
- (input)206 2542 A
- 2773(256lter)S
- 2989(may)S
- 3187(leave)S
- 3425(the)S
- 3573(standard)S
- (input)206 3939 A
- 4170(of)S
- 4279(that)S
- 4456(256lter)S
- (mispositioned.)588 4673 A
- 3936 V
- 1080(Similar)S
- 1409(problems)S
- 1815(with)S
- 2025(an)S
- 2151(output)S
- 2438(256lter)S
- 2660(may)S
- 2864(be)S
- 2990(forestalled)S
- 3447(by)S
- 3578(careful)S
- 3890(buffer)S
- 4168(257ushing,)S
- 4547(for)S
- 4696(instance,)S
- 5082(with)S
- 4056 V
- 10 B
- 1080(f257ush)S
- 10 R
- 1321(,)S
- 1371(see)S
- 10 B
- 1525(fclose)S
- 10 R
- 1766((3).)S
- 7903 V
- 720(Page)S
- 941(1)S
- 2669(()S
- 2711(May)S
- 2920(15,)S
- (1985)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