sigactio.2
来自「Unix操作系统minix 2.0源码」· 2 代码 · 共 1,421 行 · 第 1/2 页
2
1,421 行
2943(modify)S3258(this)S3428(behaviour:)S5208 V10 B(SA_RESETHAND)806 1080 A5328 V10 R1830(Reset)S2079(the)S2227(signal)S2492(handler)S2819(to)S10 B2922(SIG_DFL)S10 R3372(when)S3615(the)S3763(signal)S4028(is)S(caught.)293 4120 A5496 V10 B1080(SA_NODEFER)S10 R1830(Do)S1978(not)S2131(block)S2379(the)S2527(signal)S2792(on)S2917(entry)S3149(to)S3252(the)S3400(handler.)S5664 V10 B1080(SA_COMPAT)S10 R1830(Handle)S2146(the)S2294(signal)S2559(in)S2662(a)S2732(way)S2925(that)S3101(is)S3193(compatible)S3665(with)S3869(the)S4017(the)S4165(old)S10 B4318(signal\(\))S10 R4662(call.)S5832 V1080(The)S1272(old)S10 B1435(signal\(\))S10 R1789(signal)S2064(system)S2378(call)S2559(sets)S2745(a)S2825(signal)S3100(handler)S3437(for)S3590(a)S3670(given)S3928(signal)S4203(and)S4383(returns)S4698(the)S4857(old)S5021(signal)S5952 V1080(handler.)S1462(No)S1614(signals)S1922(are)S2075(blocked,)S2447(the)S2599(\257ags)S2818(are)S10 B(SA_RESETHAND)806 2971 A3806(|)S3857(SA_NODEFER)S4558(|)S4609(SA_COMPAT)S10 R5236(.)S6072 V1080(New)S1296(code)S(should)267 1511 A1803(not)S1956(use)S10 B2115(signal\(\))S10 R2434(.)S2509(Note)S2730(that)S10 B2906(signal\(\))S10 R3250(and)S3420(all)S3546(of)S3655(the)S10 B3803(SA_*)S10 R4057(\257ags)S4272(are)S4421(Minix)S4691(extensions.)S6240 V1080(Signal)S1362(handlers)S1728(are)S1877(reset)S2093(to)S10 B2196(SIG_DFL)S10 R2646(on)S2771(an)S10 B2891(execve)S10 R3171(\(2\).)S3364(Signals)S3685(that)S3861(are)S(ignored)307 4010 A4342(stay)S(ignored.)332 4529 A6408 V870(S)S872(Si)S930(ig)S960(gn)S1012(na)S1064(al)S1111(ls)S1141(s)S6528 V1080(Minix)S(knows)262 1350 A(about)223 1637 A1885(the)S2033(following)S2449(signals:)S6696 V1080(signal)S1630(num)S1980(notes)S2380(description)S6864 V(SIGHUP)365 1080 A1630(1)S1980(k)S(Hangup)318 2380 A6984 V1080(SIGINT)S1630(2)S1980(k)S2380(Interrupt)S2758(\(usually)S3107(DEL)S3329(or)S3438(CTRL)S10 R-13696(-)S10 R3753(C\))S7104 V(SIGQUIT)405 1080 A1630(3)S1980(kc)S2380(Quit)S2584(\(usually)S2933(CTRL)S10 R-13191(-)S10 R3248(\\\))S7224 V1080(SIGILL)S1630(4)S1980(kc)S2380(Illegal)S2663(instruction)S7344 V1080(SIGTRAP)S1630(5)S1980(xkc)S(Trace)231 2380 A2636(trap)S7464 V1080(SIGABRT)S1630(6)S1980(kc)S2380(Abort)S2640(program)S7903 V720(Page)S941(1)S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Page: 2 2BP/slant 0 def/height 0 def480 V10 R720(SIGACTION)S1273(\()S1315(2)S1373(\))S2696(Eighth)S(Edition)296 2989 A4574(SIGACTION)S5127(\()S5169(2)S5227(\))S960 V1080(SIGFPE)S1630(8)S1980(k)S2380(Floating)S2740(point)S2971(exception)S1080 V1080(SIGKILL)S1630(9)S1980(k)S(Kill)157 2380 A1200 V1080(SIGUSR1)S1630(10)S1980(k)S2380(User)S2596(de\256ned)S2917(signal)S3182(#1)S1320 V1080(SIGSEGV)S1630(11)S1980(kc)S2380(Segmentation)S2958(fault)S1440 V1080(SIGUSR2)S1630(12)S1980(k)S2380(User)S2596(de\256ned)S2917(signal)S3182(#2)S1560 V1080(SIGPIPE)S1630(13)S1980(k)S2380(Write)S2635(to)S2738(a)S2808(pipe)S3006(with)S3210(no)S3335(reader)S1680 V1080(SIGALRM)S1630(14)S1980(k)S2380(Alarm)S2663(clock)S1800 V1080(SIGTERM)S1630(15)S1980(k)S2380(Terminate)S2820(\(default)S3159(for)S(kill\(1\)\))286 3302 A1920 V1080(SIGCHLD)S1630(17)S1980(pvi)S2380(Child)S2628(process)S2955(terminated)S2040 V1080(SIGCONT)S1630(18)S1980(p)S2380(Continue)S2773(if)S(stopped)312 2860 A2160 V1080(SIGSTOP)S1630(19)S1980(ps)S2380(Stop)S2589(signal)S2280 V1080(SIGTSTP)S1630(20)S1980(ps)S2380(Interactive)S2837(stop)S3029(signal)S2400 V1080(SIGTTIN)S1630(21)S1980(ps)S(Background)491 2380 A2896(read)S2520 V1080(SIGTTOU)S1630(22)S1980(ps)S(Background)491 2380 A2896(write)S2640 V1080(SIGWINCH)S1630(23)S1980(xvi)S(Window)346 2380 A2751(size)S2933(change)S2808 V1080(The)S1262(letters)S1534(in)S1637(the)S1785(notes)S2022(column)S2348(indicate:)S2976 V10 B1080(k)S10 R1330(The)S1512(process)S1839(is)S(killed)229 1931 A2185(if)S2272(the)S2420(signal)S2685(is)S2777(not)S(caught.)293 2930 A3144 V10 B1080(c)S10 R1330(The)S1512(signal)S1777(causes)S2065(a)S2135(core)S2334(dump.)S3312 V10 B1080(i)S10 R1330(The)S1512(signal)S1777(is)S(ignored)307 1869 A2201(if)S2288(not)S(caught.)293 2441 A3480 V10 B1080(v)S10 R1330(Only)S1556(Minix-vmd)S2038(implements)S2532(this)S2702(signal.)S3648 V10 B1080(x)S10 R1330(Minix)S1600(extension,)S2035(not)S2188(de\256ned)S2509(by)S8 R2629(POSIX)S10 R2862(.)S3816 V10 B1080(p)S10 R1330(These)S1596(signals)S1900(are)S2049(not)S2202(implemented,)S2777(but)S8 R2925(POSIX)S10 R3183(requires)S3533(that)S3709(they)S3907(are)S4056(de\256ned.)S3984 V10 B1080(s)S10 R1330(The)S1512(process)S(should)267 1839 A2131(be)S(stopped,)337 2251 A2613(but)S2766(is)S(killed)229 2858 A3112(instead.)S4152 V1080(The)S10 B1276(SIGKILL)S10 R1739(signal)S(cannot)268 2018 A2325(be)S(caught)268 2459 A2766(or)S(ignored.)332 2889 A3285(The)S10 B3481(SIGILL)S10 R3866(and)S10 B4051(SIGTRAP)S10 R4539(signals)S(cannot)268 4858 A5166(be)S4272 V1080(automatically)S1659(reset.)S1931(The)S2119(system)S2429(silently)S2756(enforces)S3129(these)S3367(restrictions.)S3896(This)S4106(may)S4310(or)S4425(may)S4629(not)S4788(be)S4913(re\257ected)S4392 V1080(by)S1205(the)S1353(attributes)S1753(of)S1862(these)S2094(signals)S2398(and)S2568(the)S2716(signal)S2981(masks.)S4560 V870(T)S872(Ty)S936(yp)S988(pe)S1040(es)S1087(s)S4680 V8 R1080(POSIX)S10 R1338(prescribes)S1772(that)S1948(<sys/types.h>)S2530(has)S2689(the)S2837(following)S(de\256nition:)413 3253 A4848 V10 B1440(typedef)S1785(int)S(\(*sighandler_t\)\(int\))841 1928 A5016 V10 R1080(With)S1306(this)S1476(type)S1674(the)S1822(following)S2238(declarations)S2750(can)S2915(be)S3035(made:)S5184 V10 B1440(sighandler_t)S2002(sa_handler;)S5304 V1440(sighandler_t)S2002(signal\(int)S10 I2430(sig)S10 B2547(,)S2597(sighandler_t)S10 I(handler)312 3159 A10 B3471(\);)S5472 V10 R1080(This)S1296(may)S1506(help)S(you)150 1716 A1903(to)S(understand)441 2018 A2496(the)S2656(earlier)S2953(declarations)S3478(better.)S3796(The)S10 B3991(sighandler_t)S10 R4566(type)S4777(is)S4882(also)S5082(very)S5592 V1080(useful)S1351(in)S1454(old)S1607(style)S1822(C)S1914(code)S2129(that)S2305(is)S2397(compiled)S2796(by)S2921(a)S2991(compiler)S3374(for)S3517(standard)S3883(C.)S5760 V9 R720(S)S722(SE)S774(EE)S832(E)S913(A)S915(AL)S983(LS)S1041(SO)S1093(O)S5880 V10 B(kill)140 1080 A10 R1220(\(1\),)S10 B(kill)140 1388 A10 R1528(\(2\),)S10 B1696(pause)S10 R1942(\(2\),)S10 B2110(sigprocmask)S10 R2652(\(2\),)S10 B2820(sigsuspend)S10 R3284(\(2\),)S10 B3452(sigpending)S10 R3916(\(2\),)S10 B4084(sigset)S10 R4319(\(3\).)S6048 V9 R720(D)S722(DI)S790(IA)S823(AG)S891(GN)S959(NO)S1027(OS)S1095(ST)S1147(TI)S1205(IC)S1238(CS)S1300(S)S6168 V10 B1080(Sigaction\(\))S10 R1594(returns)S10 B1923(0)S10 R2022(on)S(success)302 2171 A2522(or)S10 B-12655(-)S10 B2712(1)S10 R2811(on)S2960(error.)S10 B3256(Signal\(\))S10 R3642(returns)S3972(the)S4145(old)S4323(handler)S4675(on)S(success)302 4825 A5177(or)S6288 V10 B1080(SIG_ERR)S10 R1541(on)S1666(error.)S1938(The)S2120(error)S2342(code)S2557(may)S2755(be:)S6456 V10 B(EINVAL)392 1080 A10 R1580(Bad)S1767(signal)S2032(number.)S6624 V10 B1080(EFAULT)S10 R1580(Bad)S10 I1767(act)S10 R1915(or)S10 I2024(oact)S10 R2222(addresses.)S6792 V9 R720(A)S722(AU)S790(UT)S858(TH)S916(HO)S984(OR)S1052(R)S6912 V10 R1080(Kees)S1307(J.)S1396(Bot)S1566(\(kjb@cs.vu.nl\))S7903 V720(September)S1176(13,)S(1996)200 1326 A4990(Page)S5211(2)S8143 VEP%%Trailer%%DocumentFonts: Times-Roman Times-Bold Times-Italic%%Pages: 2
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?