summaryrefslogtreecommitdiff
path: root/lib/libc/sys/sigaltstack.2
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/sigaltstack.2')
-rw-r--r--lib/libc/sys/sigaltstack.212
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/libc/sys/sigaltstack.2 b/lib/libc/sys/sigaltstack.2
index 25d8ccc518f..10776f7ac52 100644
--- a/lib/libc/sys/sigaltstack.2
+++ b/lib/libc/sys/sigaltstack.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sigaltstack.2,v 1.16 2012/11/17 13:09:21 jmc Exp $
+.\" $OpenBSD: sigaltstack.2,v 1.17 2014/09/09 08:17:59 guenther Exp $
.\" $NetBSD: sigaltstack.2,v 1.3 1995/02/27 10:41:52 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1992, 1993
@@ -30,15 +30,14 @@
.\"
.\" @(#)sigaltstack.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: November 17 2012 $
+.Dd $Mdocdate: September 9 2014 $
.Dt SIGALTSTACK 2
.Os
.Sh NAME
.Nm sigaltstack
.Nd set and/or get signal stack context
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <signal.h>
+.In signal.h
.Bd -literal
typedef struct sigaltstack {
void *ss_sp;
@@ -126,10 +125,7 @@ are not ``grown'' automatically as is done for the normal stack.
If the stack overflows and this space is not protected
unpredictable results may occur.
.Sh RETURN VALUES
-Upon successful completion, a value of 0 is returned.
-Otherwise, a value of \-1 is returned and
-.Va errno
-is set to indicate the error.
+.Rv -std
.Sh ERRORS
.Fn sigaltstack
will fail and the signal stack context will remain unchanged