📄 kill.2
字号:
%!PS-Adobe-1.0%%Creator: devps (Pipeline Associates, Inc.)%%CreationDate: Fri Sep 13 13:05:44 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(KILL)S959(\()S1001(2)S1059(\))S2696(Eighth)S(Edition)296 2989 A4888(KILL)S5127(\()S5169(2)S5227(\))S960 V9 R720(N)S722(NA)S790(AM)S858(ME)S940(E)S1080 V10 R(kill)134 1080 A10 R-11239(-)S10 R1321(send)S1530(signal)S1795(to)S1898(a)S1968(process)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(<signal.h>)S1728 V1080(int)S(kill\(pid_t)398 1236 A10 I1672(pid)S10 B1800(,)S1863(int)S10 I2019(sig)S10 B2136(\))S1896 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)S2016 V10 B(Kill)162 1080 A10 R1271(sends)S1523(the)S1675(signal)S10 I1944(sig)S10 R2090(to)S2197(a)S2271(process,)S2627(speci\256ed)S3014(by)S3144(the)S3297(process)S3629(number)S10 I3966(pid)S10 R4102(.)S10 I4182(Sig)S10 R4340(may)S4543(be)S4668(one)S4843(of)S4957(the)S5110(sig-)S2136 V1080(nals)S1269(speci\256ed)S1654(in)S10 B1759(sigaction)S10 R2139(\(2\),)S2308(or)S2418(it)S2500(may)S2699(be)S2820(0,)S2921(in)S3025(which)S3297(case)S3497(error)S3720(checking)S4109(is)S4202(performed)S4648(but)S4802(no)S4928(signal)S5194(is)S2256 V1080(actually)S1424(sent.)S1636(This)S1840(can)S2005(be)S2125(used)S2334(to)S2437(check)S2697(the)S2845(validity)S3177(of)S10 I3286(pid)S10 R3422(.)S2424 V1080(The)S1270(sending)S1615(and)S(receiving)375 1793 A2201(processes)S2620(must)S2848(have)S3071(the)S3227(same)S3467(effective)S3855(user)S4057(ID,)S4223(otherwise)S4649(this)S4828(call)S5008(is)S5109(res-)S2544 V1080(tricted)S1363(to)S1466(the)S1614(super-user.)S2712 V1080(If)S1173(the)S1321(process)S1648(number)S1980(is)S2072(0,)S2172(the)S2320(signal)S2585(is)S2677(sent)S2864(to)S2967(all)S3093(processes)S3504(in)S3607(the)S3755(sender's)S4116(process)S(group.)259 4443 A2880 V1080(If)S1177(the)S1329(process)S1660(number)S1996(is)S10 R-12092(-)S10 R2149(1)S2228(and)S2402(the)S2554(user)S2752(is)S2849(the)S3002(super-user,)S3477(the)S3630(signal)S3900(is)S3997(broadcast)S4413(universally)S4890(except)S5183(to)S3000 V10 B1080(init)S10 R1256(and)S1431(the)S1584(process)S1916(sending)S2258(the)S2411(signal.)S2731(If)S2829(the)S2982(process)S3314(number)S3651(is)S10 R-13748(-)S10 R3805(1)S3885(and)S4060(the)S4213(user)S4411(is)S4507(not)S4664(the)S4816(super-user,)S3120 V1080(the)S1241(signal)S1519(is)S1624(broadcast)S2048(universally)S2533(to)S2649(all)S2788(processes)S3212(with)S3429(the)S3590(same)S3836(uid)S4003(as)S4126(the)S4288(user)S4495(except)S4797(the)S4959(process)S3240 V1080(sending)S1417(the)S1565(signal.)S1880(No)S2028(error)S2250(is)S2342(returned)S2703(if)S2790(any)S2960(process)S3287(could)S3535(be)S3655(signaled.)S3408 V1080(If)S1175(the)S1325(process)S1654(number)S1988(is)S2083(negative)S2452(but)S2608(not)S10 R-12764(-)S10 R2821(1,)S2924(the)S3075(signal)S3343(is)S3438(sent)S3628(to)S3734(all)S3863(processes)S4277(whose)S4562(process)S(group)234 4892 A5154(ID)S3528 V1080(is)S1172(equal)S1415(to)S1518(the)S1666(absolute)S2026(value)S2269(of)S2378(the)S2526(process)S2853(number.)S3696 V1080(Processes)S1497(may)S1695(send)S1904(signals)S2208(to)S2311(themselves.)S3864 V9 R720(R)S722(RE)S784(ET)S842(TU)S900(UR)S968(RN)S1030(N)S1121(V)S1123(VA)S1191(AL)S1259(LU)S1317(UE)S1385(E)S3984 V10 R(Upon)223 1080 A(successful)414 1328 A1768(completion,)S2271(a)S2342(value)S2586(of)S2696(0)S2772(is)S2865(returned.)S3277(Otherwise,)S3743(a)S3814(value)S4058(of)S10 R-14168(-)S10 R4225(1)S4301(is)S4394(returned)S4756(and)S10 B(errno)241 4927 A10 R5194(is)S4104 V1080(set)S1217(to)S1320(indicate)S1664(the)S1812(error.)S4272 V9 R720(E)S722(ER)S780(RR)S842(RO)S904(OR)S972(RS)S1034(S)S4392 V10 B(Kill)162 1080 A10 R(will)157 1267 A1449(fail)S1609(and)S1779(no)S1904(signal)S(will)157 2169 A2351(be)S2471(sent)S2658(if)S2745(any)S2915(of)S3024(the)S3172(following)S3588(occur:)S4560 V([EINVAL])445 1080 A10 I1830(Sig)S10 R1983(is)S2075(not)S2228(a)S2298(valid)S2524(signal)S2789(number.)S4728 V1080([ESRCH])S1830(No)S1978(process)S2305(can)S2470(be)S(found)234 2590 A(corresponding)575 2849 A3449(to)S3552(that)S3728(speci\256ed)S4111(by)S10 I4236(pid)S10 R4364(.)S4896 V1080([ESRCH])S1830(The)S2012(process)S2339(id)S2442(was)S2624(given)S2872(as)S2981(0)S3056(but)S3209(the)S3357(sending)S3694(process)S4021(does)S4230(not)S4383(have)S4598(a)S4668(process)S(group.)259 4995 A5064 V1080([EPERM])S1830(The)S2013(sending)S2351(process)S2679(is)S2772(not)S2927(the)S3077(super-user)S3524(and)S3696(its)S3818(effective)S4199(user)S4394(id)S4499(does)S4710(not)S4865(match)S5138(the)S5184 V1830(effective)S2210(user-id)S2516(of)S2626(the)S(receiving)375 2775 A3176(process.)S3554(When)S3820(signaling)S4213(a)S4283(process)S(group,)259 4610 A4894(this)S5064(error)S5304 V1830(was)S2012(returned)S2373(if)S2460(any)S2630(members)S3024(of)S3133(the)S(group)234 3281 A3540(could)S3788(not)S3941(be)S4061(signaled.)S5472 V9 R720(S)S722(SE)S774(EE)S832(E)S913(A)S915(AL)S983(LS)S1041(SO)S1093(O)S5592 V10 B1080(getpid)S10 R1349(\(2\),)S10 B1517(getpgrp)S10 R1853(\(2\),)S10 B2021(sigaction)S10 R2401(\(2\),)S10 B2569(raise)S10 R2776(\(3\).)S7903 V720(Page)S941(1)S2669(\()S2711(May)S2920(14,)S(1986)200 3070 A3278(\))S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Trailer%%DocumentFonts: Times-Roman Times-Bold Times-Italic%%Pages: 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -