diff options
| author | mikel <mikel@NetBSD.org> | 1997-09-20 02:49:43 +0000 |
|---|---|---|
| committer | mikel <mikel@NetBSD.org> | 1997-09-20 02:49:43 +0000 |
| commit | 42c4fcf3eb7e264d4e5a8b8f0b63ab2072255295 (patch) | |
| tree | 97652bdfac6dabb5e6715ba44cac8c0de983d768 /lib/libc/sys/sigaltstack.2 | |
| parent | 2f014c40e61ca85279fb4e52d04e92c8547c7783 (diff) | |
reference SS_* constants, not SA_* constants; from der Mouse in PR lib/4117
add some whitespace
Diffstat (limited to 'lib/libc/sys/sigaltstack.2')
| -rw-r--r-- | lib/libc/sys/sigaltstack.2 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libc/sys/sigaltstack.2 b/lib/libc/sys/sigaltstack.2 index 3a876be800e..7e182eb1e0c 100644 --- a/lib/libc/sys/sigaltstack.2 +++ b/lib/libc/sys/sigaltstack.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: sigaltstack.2,v 1.4 1997/03/08 13:47:08 mouse Exp $ +.\" $NetBSD: sigaltstack.2,v 1.5 1997/09/20 02:49:43 mikel Exp $ .\" .\" Copyright (c) 1983, 1991, 1992, 1993 .\" The Regents of the University of California. All rights reserved. @@ -42,6 +42,7 @@ .Sh SYNOPSIS .Fd #include <sys/types.h> .Fd #include <signal.h> +.Pp .Bd -literal struct sigaltstack { char *ss_sp; @@ -73,7 +74,7 @@ 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_sp @@ -97,9 +98,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 @@ -115,6 +116,7 @@ sigstk.ss_flags = 0; if (sigaltstack(&sigstk,0) < 0) perror("sigaltstack"); .Ed +.Pp An alternative approach is provided for programs with signal handlers that require a specific amount of stack space other than the default size. The value @@ -141,7 +143,7 @@ is set to indicate the error. .Fn Sigstack will fail and the signal stack context will remain unchanged if one of the following occurs. -.Bl -tag -width [ENOMEM] +.Bl -tag -width Er .It Bq Er EFAULT Either .Fa ss |
