From stefan@fafoe.dyndns.org  Mon Sep  2 16:53:30 2002
Return-Path: <stefan@fafoe.dyndns.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 236A837B400
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  2 Sep 2002 16:53:30 -0700 (PDT)
Received: from fafoe.dyndns.org (chello212186121237.14.vie.surfer.at [212.186.121.237])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B420743E42
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  2 Sep 2002 16:53:29 -0700 (PDT)
	(envelope-from stefan@fafoe.dyndns.org)
Received: by frog.fafoe (Postfix, from userid 1001)
	id 2AE85267; Tue,  3 Sep 2002 01:59:25 +0200 (CEST)
Message-Id: <20020902235925.2AE85267@frog.fafoe>
Date: Tue,  3 Sep 2002 01:59:25 +0200 (CEST)
From: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
Reply-To: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: sigreturn man page update
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         42346
>Category:       docs
>Synopsis:       sigreturn man page update
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 02 17:00:03 PDT 2002
>Closed-Date:    Tue Sep 17 11:12:31 PDT 2002
>Last-Modified:  Tue Sep 17 11:12:31 PDT 2002
>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:
State-Changed-From-To: open->closed 
State-Changed-By: archie 
State-Changed-When: Tue Sep 17 11:11:50 PDT 2002 
State-Changed-Why:  
Fixed in -current and -stable. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42346 
>Unformatted:
