Page MenuHomeFreeBSD

D51055.diff
No OneTemporary

D51055.diff

diff --git a/lib/libsys/sigaction.2 b/lib/libsys/sigaction.2
--- a/lib/libsys/sigaction.2
+++ b/lib/libsys/sigaction.2
@@ -303,43 +303,10 @@
the signal mask remains the same;
signals that restart pending system calls continue to do so.
.Pp
-The following is a list of all signals
-with names as in the include file
-.In signal.h :
-.Bl -column SIGVTALARMXX "create core imagexxx"
-.It Sy NAME Ta Sy Default Action Ta Sy Description
-.It Dv SIGHUP Ta terminate process Ta terminal line hangup
-.It Dv SIGINT Ta terminate process Ta interrupt program
-.It Dv SIGQUIT Ta create core image Ta quit program
-.It Dv SIGILL Ta create core image Ta illegal instruction
-.It Dv SIGTRAP Ta create core image Ta trace trap
-.It Dv SIGABRT Ta create core image Ta Xr abort 3 call (formerly Dv SIGIOT )
-.It Dv SIGEMT Ta create core image Ta emulate instruction executed
-.It Dv SIGFPE Ta create core image Ta floating-point exception
-.It Dv SIGKILL Ta terminate process Ta kill program
-.It Dv SIGBUS Ta create core image Ta bus error
-.It Dv SIGSEGV Ta create core image Ta segmentation violation
-.It Dv SIGSYS Ta create core image Ta non-existent system call invoked
-.It Dv SIGPIPE Ta terminate process Ta write on a pipe with no reader
-.It Dv SIGALRM Ta terminate process Ta real-time timer expired
-.It Dv SIGTERM Ta terminate process Ta software termination signal
-.It Dv SIGURG Ta discard signal Ta urgent condition present on socket
-.It Dv SIGSTOP Ta stop process Ta stop (cannot be caught or ignored)
-.It Dv SIGTSTP Ta stop process Ta stop signal generated from keyboard
-.It Dv SIGCONT Ta discard signal Ta continue after stop
-.It Dv SIGCHLD Ta discard signal Ta child status has changed
-.It Dv SIGTTIN Ta stop process Ta background read attempted from control terminal
-.It Dv SIGTTOU Ta stop process Ta background write attempted to control terminal
-.It Dv SIGIO Ta discard signal Ta I/O is possible on a descriptor (see Xr fcntl 2 )
-.It Dv SIGXCPU Ta terminate process Ta cpu time limit exceeded (see Xr setrlimit 2 )
-.It Dv SIGXFSZ Ta terminate process Ta file size limit exceeded (see Xr setrlimit 2 )
-.It Dv SIGVTALRM Ta terminate process Ta virtual time alarm (see Xr setitimer 2 )
-.It Dv SIGPROF Ta terminate process Ta profiling timer alarm (see Xr setitimer 2 )
-.It Dv SIGWINCH Ta discard signal Ta window size change
-.It Dv SIGINFO Ta discard signal Ta status request from keyboard
-.It Dv SIGUSR1 Ta terminate process Ta user defined signal 1
-.It Dv SIGUSR2 Ta terminate process Ta user defined signal 2
-.El
+A list of signals, their descriptions, and values for
+.Va si_info
+codes can be found in
+.Xr siginfo 3 .
.Sh NOTE
The
.Va sa_mask
@@ -500,15 +467,13 @@
.Fn sem_post ,
.Fn timer_settime .
.Pp
-Base Interfaces not specified as async-signal safe by
-.Tn POSIX :
+Base Interfaces not specified as async-signal safe by POSIX:
.Pp
.Fn fpathconf ,
.Fn pathconf ,
.Fn sysconf .
.Pp
-Base Interfaces not specified as async-signal safe by
-.Tn POSIX ,
+Base Interfaces not specified as async-signal safe by POSIX,
but planned to be:
.Pp
.Fn ffs ,
@@ -605,13 +570,13 @@
.Sh EXAMPLES
There are three possible prototypes the handler may match:
.Bl -tag -offset indent -width short
-.It Tn ANSI C :
+.It ANSI C :
.Ft void
.Fn handler int ;
.It Traditional BSD style:
.Ft void
.Fn handler int "int code" "struct sigcontext *scp" ;
-.It Tn POSIX Dv SA_SIGINFO :
+.It POSIX Dv SA_SIGINFO :
.Ft void
.Fn handler int "siginfo_t *info" "ucontext_t *uap" ;
.El
@@ -635,9 +600,7 @@
If the
.Dv SA_SIGINFO
flag is not set, the handler function should match
-either the
-.Tn ANSI C
-or traditional
+either the ANSI C or traditional
.Bx
prototype and be pointed to by
the
@@ -647,16 +610,12 @@
In practice,
.Fx
always sends the three arguments of the latter and since the
-.Tn ANSI C
-prototype is a subset, both will work.
+ANSI C prototype is a subset, both will work.
The
.Va sa_handler
member declaration in
.Fx
-include files is that of
-.Tn ANSI C
-(as required by
-.Tn POSIX ) ,
+include files is that of ANSI C (as required by POSIX),
so a function pointer of a
.Bx Ns -style
function needs to be casted to
@@ -695,6 +654,11 @@
.Dv FPE_...
values for
.Dv SIGFPE .
+See
+.Xr siginfo 3
+for more
+.Va si_code
+values.
.Pp
The
.Fa scp
@@ -705,8 +669,7 @@
.Pp
The
.Fa uap
-argument to a
-.Tn POSIX
+argument to a POSIX
.Dv SA_SIGINFO
handler points to an instance of
ucontext_t.

File Metadata

Mime Type
text/plain
Expires
Fri, Jun 26, 6:49 AM (11 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34346597
Default Alt Text
D51055.diff (4 KB)

Event Timeline