diff options
Diffstat (limited to 'lib/libc/sys/sigaction.2')
-rw-r--r-- | lib/libc/sys/sigaction.2 | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/lib/libc/sys/sigaction.2 b/lib/libc/sys/sigaction.2 index 877445e..1f9f950 100644 --- a/lib/libc/sys/sigaction.2 +++ b/lib/libc/sys/sigaction.2 @@ -472,7 +472,9 @@ member of Note that you should not assign SIG_DFL or SIG_IGN this way. .Pp If the SA_SIGINFO flag is not set, the handler function should match -either the ANSI C or traditional BSD prototype and be pointed to by +either the ANSI C or traditional +.Bx +prototype and be pointed to by the .Dv sa_handler member of @@ -486,9 +488,13 @@ The member declaration in .Fx include files is that of ANSI C (as required by POSIX), -so a function pointer of a BSD-style function needs to be casted to +so a function pointer of a +.Bx Ns -style +function needs to be casted to compile without warning. -The traditional BSD style is not portable and since its capabilities +The traditional +.Bx +style is not portable and since its capabilities are a full subset of a SA_SIGINFO handler, its use is deprecated. .Pp @@ -500,7 +506,9 @@ values from <signal.h>. .Pp The .Fa code -argument of the BSD-style handler and the +argument of the +.Bx Ns -style +handler and the .Dv si_code member of the .Dv info @@ -514,7 +522,9 @@ values for SIGFPE. .Pp The .Fa scp -argument to a BSD-style handler points to an instance of struct +argument to a +.Bx Ns -style +handler points to an instance of struct sigcontext. .Pp The @@ -567,7 +577,7 @@ as are the signals, and .Dv SIGINFO . Those signals are available on most -.Tn BSD Ns \-derived +.Bx Ns \-derived systems. The .Dv SA_NODEFER |