From owner-freebsd-doc Mon Sep 2 17: 0:17 2002 Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 40F2F37B400 for ; Mon, 2 Sep 2002 17:00:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B9D943E42 for ; Mon, 2 Sep 2002 17:00:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g83004JU061445 for ; Mon, 2 Sep 2002 17:00:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g8300406061444; Mon, 2 Sep 2002 17:00:04 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 236A837B400 for ; 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 ; 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 Reply-To: Stefan Farfeleder To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/42346: sigreturn man page update Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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