⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 execl.3

📁 Unix操作系统minix 2.0源码
💻 3
📖 第 1 页 / 共 2 页
字号:
%!PS-Adobe-1.0%%Creator: devps (Pipeline Associates, Inc.)%%CreationDate: Fri Sep 13 13:06:39 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/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(EXECL)S1054(\()S1096(3)S1154(\))S2696(Eighth)S(Edition)296 2989 A4793(EXECL)S5127(\()S5169(3)S5227(\))S960 V9 R720(N)S722(NA)S790(AM)S858(ME)S940(E)S1080 V10 R1080(execl,)S1343(execv,)S1628(execle,)S1936(execlp,)S2249(execvp,)S2584(exec,)S2819(environ)S10 R-13151(-)S10 R3233(execute)S3566(a)S3636(\256le)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(<unistd.h>)S1608 V1080(int)S1236(execl\(const)S1745(char)S1979(*)S10 I2029(name)S10 B2247(,)S2310(const)S2572(char)S2806(*)S10 I2856(arg0)S10 B3045(,)S(...,)100 3108 A3246(\(char)S3514(*\))S3636(NULL\))S1728 V1080(int)S1236(execv\(const)S1767(char)S2001(*)S10 I2051(name)S10 B2269(,)S2332(char)S2566(*const)S10 I2878(argv)S10 B([]\))102 3062 A1848 V1080(int)S1236(execle\(const)S1790(char)S2024(*)S10 I2074(name)S10 B2292(,)S2355(const)S2617(char)S2851(*)S10 I2901(arg0)S10 B3090(,)S(...,)100 3153 A3291(\(char)S3559(*\))S3681(NULL,)S4024(char)S4258(*const)S10 I4570(envp)S10 B([]\))102 4760 A1968 V1080(int)S1236(execlp\(const)S1801(char)S2035(*)S10 I2085(name)S10 B2303(,)S2366(const)S2628(char)S2862(*)S10 I2912(arg0)S10 B3101(,)S(...,)100 3164 A3302(\(char)S3570(*\))S3692(NULL\))S2088 V1080(int)S1236(execvp\(const)S1823(char)S2057(*)S10 I2107(name)S10 B2325(,)S2388(char)S2622(*const)S10 I2934(argv)S10 B([]\))102 3118 A2328 V1080(extern)S1393(char)S1627(*const)S1939(*environ;)S2496 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)S2616 V10 R1080(These)S1352(routines)S1707(provide)S2045(various)S(interfaces)393 2372 A2796(to)S2906(the)S10 B3061(execve)S10 R3373(system)S3684(call.)S3912(Refer)S4169(to)S10 B4279(execve)S10 R4559(\(2\))S4709(for)S4859(a)S4936(descrip-)S2736 V1080(tion)S1261(of)S1370(their)S1580(properties;)S2036(only)S2239(brief)S2455(descriptions)S2966(are)S3115(provided)S3497(here.)S2904 V10 B1080(Exec)S10 R1312(in)S1415(all)S1541(its)S1661(forms)S1921(overlays)S2287(the)S(calling)274 2435 A2734(process)S3061(with)S3265(the)S3413(named)S3706(\256le,)S3886(then)S4085(transfers)S4459(to)S4563(the)S4712(entry)S4945(point)S5177(of)S3024 V1080(the)S1228(core)S1427(image)S1698(of)S1807(the)S1955(\256le.)S2159(There)S2420(can)S2585(be)S2705(no)S2830(return)S3096(from)S3317(a)S(successful)414 3387 A3826(exec;)S4064(the)S(calling)274 4212 A4511(core)S4710(image)S4981(is)S5073(lost.)S3192 V1080(The)S10 I1266(name)S10 R1513(argument)S1922(is)S2018(a)S2093(pointer)S2408(to)S2516(the)S2669(name)S2917(of)S3031(the)S3184(\256le)S3343(to)S3451(be)S3576(executed.)S4014(The)S4201(pointers)S10 I4555(arg)S10 R4702([)S10 I4736(0)S10 R4794(],)S10 I4883(arg)S10 R5030([)S10 I5064(1)S10 R5122(])S(...)75 5186 A3312 V1080(address)S1407(null-terminated)S2053(strings.)S(Conventionally)619 2396 A10 I3040(arg)S10 R3187([)S10 I3221(0)S10 R3279(])S3338(is)S3430(the)S3578(name)S3821(of)S3930(the)S4078(\256le.)S3480 V1080(Two)S(interfaces)393 1292 A1712(are)S1863(available.)S10 B2304(execl)S10 R2545(is)S2640(useful)S2914(when)S3160(a)S(known)273 3233 A3534(\256le)S3691(with)S(known)273 3898 A4199(arguments)S4646(is)S4741(being)S4992(called;)S3600 V1080(the)S1236(arguments)S1688(to)S10 B1799(execl)S10 R2045(are)S2202(the)S2358(character)S2762(strings)S(constituting)474 3063 A3570(the)S3726(\256le)S3888(and)S4066(the)S4222(arguments;)S4702(the)S4858(\256rst)S5048(argu-)S3720 V1080(ment)S1308(is)S(conventionally)597 1402 A2026(the)S2176(same)S2410(as)S2521(the)S2671(\256le)S2827(name)S3072(\(or)S3217(its)S3339(last)S(component\).)505 3506 A4063(A)S4163(null)S4346(pointer)S4658(argument)S5066(must)S3840 V1080(end)S1251(the)S1400(argument)S1806(list.)S2005(\(Note)S2260(that)S2436(the)S10 B2584(execl*)S10 R2872(functions)S3271(are)S3420(variable)S

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -