diff options
Diffstat (limited to 'lib/libc/sys/sigaltstack.2')
-rw-r--r-- | lib/libc/sys/sigaltstack.2 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/libc/sys/sigaltstack.2 b/lib/libc/sys/sigaltstack.2 index 1626025..5e8815d 100644 --- a/lib/libc/sys/sigaltstack.2 +++ b/lib/libc/sys/sigaltstack.2 @@ -29,9 +29,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)sigaltstack.2 8.2 (Berkeley) 5/1/95 +.\" @(#)sigaltstack.2 8.1 (Berkeley) 6/4/93 .\" -.Dd May 1, 1995 +.Dd June 4, 1993 .Dt SIGALTSTACK 2 .Os BSD 4.2 .Sh NAME @@ -42,7 +42,7 @@ .Fd #include <signal.h> .Bd -literal struct sigaltstack { - caddr_t ss_base; + caddr_t ss_sp; long ss_size; int ss_flags; }; @@ -71,15 +71,15 @@ the system arranges a switch to the signal stack for the duration of the signal handler's execution. .Pp If -.Dv SA_DISABLE +.Dv SS_DISABLE is set in .Fa ss_flags , -.Fa ss_base +.Fa ss_sp and .Fa ss_size are ignored and the signal stack will be disabled. Trying to disable an active stack will cause -.Nm +.Fn sigaltstack to return -1 with .Va errno set to @@ -95,9 +95,9 @@ is non-zero, the current signal stack state is returned. The .Fa ss_flags field will contain the value -.Dv SA_ONSTACK +.Dv SS_ONSTACK if the process is currently on a signal stack and -.Dv SA_DISABLE +.Dv SS_DISABLE if the signal stack is currently disabled. .Sh NOTES The value @@ -106,7 +106,7 @@ is defined to be the number of bytes/chars that would be used to cover the usual case when allocating an alternate stack area. The following code fragment is typically used to allocate an alternate stack. .Bd -literal -offset indent -if ((sigstk.ss_base = malloc(SIGSTKSZ)) == NULL) +if ((sigstk.ss_sp = malloc(SIGSTKSZ)) == NULL) /* error return */ sigstk.ss_size = SIGSTKSZ; sigstk.ss_flags = 0; @@ -158,7 +158,7 @@ Size of alternate stack area is less than or equal to .Xr setjmp 3 .Sh HISTORY The predecessor to -.Nm sigaltstack , +.Fn sigaltstack , the .Fn sigstack system call, appeared in |