From owner-freebsd-hackers@FreeBSD.ORG Thu May 22 15:25:43 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7DD9884E for ; Thu, 22 May 2014 15:25:43 +0000 (UTC) Received: from dmz-mailsec-scanner-4.mit.edu (dmz-mailsec-scanner-4.mit.edu [18.9.25.15]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 05AE02D09 for ; Thu, 22 May 2014 15:25:42 +0000 (UTC) X-AuditID: 1209190f-f790b6d000000c38-a7-537e16ef8b0a Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) (using TLS with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-4.mit.edu (Symantec Messaging Gateway) with SMTP id EE.D8.03128.FE61E735; Thu, 22 May 2014 11:25:35 -0400 (EDT) Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id s4MFPYlp016787; Thu, 22 May 2014 11:25:35 -0400 Received: from multics.mit.edu (system-low-sipb.mit.edu [18.187.2.37]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s4MFPWeX023984 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 22 May 2014 11:25:34 -0400 Received: (from kaduk@localhost) by multics.mit.edu (8.12.9.20060308) id s4MFPWot012262; Thu, 22 May 2014 11:25:32 -0400 (EDT) Date: Thu, 22 May 2014 11:25:32 -0400 (EDT) From: Benjamin Kaduk To: Keno Fischer Subject: Re: Use of sigreturn(2) in longjmp(3). In-Reply-To: Message-ID: References: User-Agent: Alpine 1.10 (GSO 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDIsWRmVeSWpSXmKPExsUixG6novterC7Y4MoBZYvtm/8xWtx6eJbZ gclj08xQjxmf5rMEMEVx2aSk5mSWpRbp2yVwZayZvpO94BFLRdf1t0wNjE+Zuxg5OSQETCSO Xd7IAmGLSVy4t56ti5GLQ0hgNpPE1XlXWSCcjYwSz86sYIdwDjFJbJraywrhNDBK7HoymQ2k n0VAW+JOx3VGEJtNQEVi5puNYHERAX2J2zfWs4LYzALyEhc2HwKrEQaKL/t9iQnE5hQIlNj5 8SLQTRwcvAKOEge3JIGEhQQCJB5872UHsUUFdCRW758CdiqvgKDEyZlPWCBGWkqc+3OdbQKj 4CwkqVlIUgsYmVYxyqbkVunmJmbmFKcm6xYnJ+blpRbpmujlZpbopaaUbmIEBSqnJP8Oxm8H lQ4xCnAwKvHwWrDWBQuxJpYVV+YeYpTkYFIS5Q1mAwrxJeWnVGYkFmfEF5XmpBYfYpTgYFYS 4W0SAcrxpiRWVqUW5cOkpDlYlMR531pbBQsJpCeWpGanphakFsFkZTg4lCR4U4ARKSRYlJqe WpGWmVOCkGbi4AQZzgM0vBNseHFBYm5xZjpE/hSjopQ470+QhABIIqM0D64XlkheMYoDvSLM 6wiyggeYhOC6XwENZgIa/GJhLcjgkkSElFQDY3H4z+ldFnUTTPdN/tfsPUmwYn/WO/vJFw/P SQ2Rvbz9R6qw0VNuroRNe62S01a1f17WvedNxmuLgzKfdn5qcDp4ed+318dYqhdKFYbt8bJp fez2Qmrx2/SCL+d0Jc5cuHlYzVJLZrrq/hMz6+OTuMrq68UnJyR/Fdiyv9Xi4ONTtz+yX5ha 66TEUpyRaKjFXFScCAAPHbZn/wIAAA== Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 May 2014 15:25:43 -0000 On Thu, 22 May 2014, Keno Fischer wrote: > Hello, > > The sigreturn manpage states: > > "This system call is used by the trampoline code and longjmp(3) when > returning from a signal to the previously executing program". > > Now, I saw the system call in sigtramp.s, but I looked at setjmp.s can't > find how longjmp does this. Am I missing something totally obvious? I expect this is just stale documentation. Unfortunately, some quick poking at the svn log for sys/i386/i386/support.s does not make it immediately clear when the code changed to not match the documentation. -Ben Kaduk