ss_sp should be ss_base (from Torek)
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 2 May 1995 12:18:29 +0000 (04:18 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 2 May 1995 12:18:29 +0000 (04:18 -0800)
SCCS-vsn: lib/libc/sys/sigaltstack.2 8.2

usr/src/lib/libc/sys/sigaltstack.2

index 6c2d0db..c5c3124 100644 (file)
@@ -3,7 +3,7 @@
 .\"
 .\" %sccs.include.redist.man%
 .\"
 .\"
 .\" %sccs.include.redist.man%
 .\"
-.\"     @(#)sigaltstack.2      8.1 (Berkeley) %G%
+.\"     @(#)sigaltstack.2      8.2 (Berkeley) %G%
 .\"
 .Dd 
 .Dt SIGALTSTACK 2
 .\"
 .Dd 
 .Dt SIGALTSTACK 2
@@ -16,7 +16,7 @@
 .Fd #include <signal.h>
 .Bd -literal
 struct sigaltstack {
 .Fd #include <signal.h>
 .Bd -literal
 struct sigaltstack {
-       caddr_t ss_sp;
+       caddr_t ss_base;
        long    ss_size;
        int     ss_flags;
 };
        long    ss_size;
        int     ss_flags;
 };
@@ -48,7 +48,7 @@ If
 .Dv SA_DISABLE
 is set in
 .Fa ss_flags ,
 .Dv SA_DISABLE
 is set in
 .Fa ss_flags ,
-.Fa ss_sp
+.Fa ss_base
 and
 .Fa ss_size
 are ignored and the signal stack will be disabled.
 and
 .Fa ss_size
 are ignored and the signal stack will be disabled.
@@ -80,7 +80,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
 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_sp = malloc(SIGSTKSZ)) == NULL)
+if ((sigstk.ss_base = malloc(SIGSTKSZ)) == NULL)
        /* error return */
 sigstk.ss_size = SIGSTKSZ;
 sigstk.ss_flags = 0;
        /* error return */
 sigstk.ss_size = SIGSTKSZ;
 sigstk.ss_flags = 0;