From nobody Wed Mar 11 14:39:09 2026 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fWD0F6jPgz6VGdN for ; Wed, 11 Mar 2026 14:39:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fWD0F65sqz4Qbf for ; Wed, 11 Mar 2026 14:39:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1773239949; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=96oXSKpx0us9dPWt9oXe8jmHPYrPLZiAQRljzIpv0YE=; b=jFQPvZxX271gU4ey8RAA+5eFVScX6HlOZB6NKpTLUVP163n+XwrqVEVkFghPa/h9oOq1R7 4nHGQJ/o30qIRP1auL6PEwMXSC7LU2zu2UtmrqmZ2oTiFHkg0v0eqtM2uq+w99DbBLEuwH FBvf7UQywMod2wOrgOEI0BgchNZhFdiIWmlf/pvvT1Wc8PML8chJm/SJ01GtNYZEFGQfuh MnKB91ncG7NkcD0GJ4FMGFJn19vxaqLepYYz2BjZvIyTClX8rCYrlnFoODoQpl/2Pk2/7I wuSjFasSJo5Px0gfoqbekDS27cs8HlN4qOpG75vhhZLdQihPwsNr/mNywzZsnQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1773239949; a=rsa-sha256; cv=none; b=iheeTmrv21H5QBA8CYGGZcIbKyN4XjAno6im7G+h4PsCgf4MpjzMpMB2z9tD7VZS+b0sP2 kgw4GhZ07N2BRS7RDB6jxMqzmdTv6d1Za0rMx6Q8UFEkJjmlbK+gr0sHK0Qkg2NU6DtaCH 3iDpt26CdmAx/XdKxF45furLCEhfatXMoFcq0p8HpK5zKR8eKcMcHcN+PfNqnS4vNiO9Ej vWD3QEIvDXHBHL+MhZ1A5WJdh3NayvFnsY9RskwnDXIFjXAJHh3H7WVe+8S+x+hN4dbWtB q0Yg6MIE43nJ3s/T/eFVoUNU/oB6bvCAvm78B5seUMCPiEt5pnCr6dytFZkbYA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1773239949; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=96oXSKpx0us9dPWt9oXe8jmHPYrPLZiAQRljzIpv0YE=; b=dujazo1lFpTx9aaV2T8SmYOzJV0s80Sh3YxtFDQJCEUmc60yYKD/ryHIhfrNeMFNC7AfLW X1v1YgC124mjfoGQVYADHPgnJGwB+NEKbX+vruY/rA06kA2ZSj7q/9bZRso7sm6cCi2L6F ged2RSTV6pnXalE4YR+F12eFY8H4g403k7SkTdNaeVEZTQnvARTj/hg58Ty2jJS5ptmRnw ETRv1slwLZfiB5b3TRdTr6Bu1yTeODJ+0apJrRIIPGLIzhvt8026QFeiy6G5P0fgPv8tqa eCC0c+KntOE+wxh30YZVyQE40UZI7GPAxaw3itieVQcYmTPQzQIaEuQoK+U6Uw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fWD0F5PNQz12wr for ; Wed, 11 Mar 2026 14:39:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3791a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 11 Mar 2026 14:39:09 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 9da4a804f091 - main - sigreturn.2: refresh the man page List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9da4a804f0916b24519b8baa7ed460a7ba23d8c8 Auto-Submitted: auto-generated Date: Wed, 11 Mar 2026 14:39:09 +0000 Message-Id: <69b17e8d.3791a.b59e630@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=9da4a804f0916b24519b8baa7ed460a7ba23d8c8 commit 9da4a804f0916b24519b8baa7ed460a7ba23d8c8 Author: Konstantin Belousov AuthorDate: 2026-03-08 20:08:42 +0000 Commit: Konstantin Belousov CommitDate: 2026-03-11 14:38:34 +0000 sigreturn.2: refresh the man page Remove mention of the longjmp(3), which does not use sigreturn. Try to be more precise when describing the syscall effects. Reviewed by: emaste, markj Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential revision: https://reviews.freebsd.org/D55750 --- lib/libsys/sigreturn.2 | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/lib/libsys/sigreturn.2 b/lib/libsys/sigreturn.2 index 4effeaa5abc7..0e7bca507fc7 100644 --- a/lib/libsys/sigreturn.2 +++ b/lib/libsys/sigreturn.2 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd September 6, 2013 +.Dd March 11, 2026 .Dt SIGRETURN 2 .Os .Sh NAME @@ -47,17 +47,25 @@ The thread's signal mask and stack status are restored from the context structure pointed to by .Fa scp . The system call does not return; -the users stack pointer, frame pointer, argument pointer, -and processor status longword are restored from the context. -Execution resumes at the specified pc. -This system call is used by the trampoline code and -.Xr longjmp 3 +the whole userspace context as specified by +.Fa scp , +including the userspace stack pointer, all general-purpose registers, +coprocessor state, process status register, and program counter +are restored from the context. +Execution resumes at the program counter from the specified context. +.Pp +This system call is used by the kernel-provided signal trampoline code, +located in the virtual DSO (VDSO) on some architectures or as raw code +in the shared page if VDSO is not provided, when returning from a signal to the previously executing program. .Sh RETURN VALUES If successful, the system call does not return. -Otherwise, a value of -1 is returned and +Otherwise, a value of -1 may be returned, with .Va errno -is set to indicate the error. +set to indicate the error. +Some conditions detected by hardware result in the delivery of +a synchronous trap signal to the thread, in addition to or instead of +setting the system call error code. .Sh ERRORS The .Fn sigreturn