📄 signal.3f
字号:
.\" SCCSID: @(#)signal.3f 8.1 9/11/90.TH signal 3f VAX "" Unsupported.SH Namesignal \- change the action for a signal.SH Syntax.B integer function signal(signum, proc, flag).br.B integer signum, flag.br.B external proc.SH Description.NXR "signal subroutine (FORTRAN)".NXR "signal" "changing action"When a process incurs a signal, the default actionis usually to clean up and abort.For further information, see .MS signal 3 .The user may choose to write an alternative signal handling routine.A call to.PN signalis the way this alternate action is specified to the system..PPThe.I signumis the signal number. For further information, see .MS signal 3 .If.I flagis negative, then.I procmust be the name of the user signal handling routine.If.I flagis zero or positive, then.I procis ignored and the value of.I flagis passed to the system as the signal action definition.In particular, this is how previously saved signal actions canbe restored.Two possible values for.I flaghave specific meanings:0 means "use the default action" (See Note),1 means "ignore this signal"..PPA positive returned value is the previous action definition.A value greater than 1 is the address of a routine thatwas to have been called on occurrence of the given signal.The returned value can be used in subsequent calls to.PN signalin order to restore a previous action definition.A negative returned value is the negation of a system error code.For further information, see .MS perror 3f ..NTThe.PN f77arranges to trap certain signals when a process is started.The only way to restore the default.PN f77action is to save the returnedvalue from the first call to.PN signal ..PPIf the user signal handler is called,it will be passed the signal numberas an integer argument..NE.SH Files.ie \nM /usr/ucb/lib/libU77.a.el /usr/lib/libU77.a.SH See Alsokill(1), kill(3f), signal(3)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -