Date: Tue, 3 Sep 2002 01:59:25 +0200 (CEST) From: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at> To: FreeBSD-gnats-submit@FreeBSD.org Subject: docs/42346: sigreturn man page update Message-ID: <20020902235925.2AE85267@frog.fafoe>
index | next in thread | raw e-mail
>Number: 42346
>Category: docs
>Synopsis: sigreturn man page update
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-doc
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: doc-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Sep 02 17:00:03 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Stefan Farfeleder
>Release: FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD frog.fafoe 4.6-STABLE FreeBSD 4.6-STABLE #1: Fri Aug 30 16:32:57 CEST 2002 freebsd@frog.fafoe:/freebsd/stable/obj/freebsd/stable/src/sys/FROG i386
>Description:
This man page is way out-dated. It even has the signature wrong! ;-)
>How-To-Repeat:
man sigreturn
>Fix:
Note: ucontext_t definition could be added...
--- sigreturn.2.orig Mon Sep 2 20:00:45 2002
+++ sigreturn.2 Mon Sep 2 20:18:28 2002
@@ -43,33 +43,9 @@
.Sh SYNOPSIS
.In signal.h
.Pp
-.Bd -literal
-struct sigcontext {
- int sc_onstack; /* sigstack state to restore */
- int sc_mask; /* signal mask to restore */
- int sc_esp; /* machine state */
- int sc_ebp;
- int sc_isp;
- int sc_eip;
- int sc_efl;
- int sc_es;
- int sc_ds;
- int sc_cs;
- int sc_ss;
- int sc_edi;
- int sc_esi;
- int sc_ebx;
- int sc_edx;
- int sc_ecx;
- int sc_eax;
-# define sc_sp sc_esp
-# define sc_fp sc_ebp
-# define sc_pc sc_eip
-# define sc_ps sc_efl
-};
.Ed
.Ft int
-.Fn sigreturn "struct sigcontext *scp"
+.Fn sigreturn "ucontext_t *ucp"
.Sh DESCRIPTION
.Fn Sigreturn
allows users to atomically unmask, switch stacks,
@@ -98,7 +74,7 @@
if one of the following occurs.
.Bl -tag -width Er
.It Bq Er EFAULT
-.Fa Scp
+.Fa Ucp
points to memory that is not a valid part of the process
address space.
.It Bq Er EINVAL
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020902235925.2AE85267>
