From nobody Tue Apr 23 16:52:35 2024 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 4VP7TJ2SVGz5HcdB; Tue, 23 Apr 2024 16:52:36 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VP7TJ0t4Tz48vp; Tue, 23 Apr 2024 16:52:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713891156; 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=D5X5orykgk5Zd919uzUWBCuD7vScWmfgkK1sj2IAakQ=; b=IUUepOUZTRX6ErBBXTdmpczQQgndLLVS7YK+ANA9B40fcA4vG9cUU4T7+XNHI7DaKgL88Q mAoWWAchdBQiZTZuAF2h6IYRahlrma2sTqdhCTPLKihXiGSYivBjAaqvVsot7bD+rP7aKI wZ2ibMdAcsPCtIT92ww62/Fht6Xk2tagdXy1SdxLn7u2rNFSHpAWgzKBo3PeCvv6eBRiil OXfhm0A5+osa3hJI3T0MujXHbLLg6gGbu4+skVdKXEJuWZS8GxsgYv8wLOob4ysAY8UllE o9j5YL0nWuydknj2hAV31/7O3saBlnZYCvuh3iV+0slWX0xpJ3NDXN5pOFwP8g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713891156; a=rsa-sha256; cv=none; b=XcvZWclJLRrdOfiFPevLAF49jLQ9qr/z3ecTJV4RHM5jWd1qwySXrqMZfVNBM3XyBkU3Dm FevNu9m6X8hLJIfT7TASdleGpH15llW4vTl+JYCo1CBepj4nBvjhtLBTZwlXgq/hNpYLKM Ioc9S7ByHDFjKgB+eD7daCNRKZT4kWo4dRrOAYgDlFwxMmiiWfCaB1rOcpsnKzZLPEQ6UY Vn/qH8n6xjnOmLDVm5BTl3K7JwTwB1B8M6oqOOnomNbnMULGz5DNgX3T93mlNvwdxyPe/z xahYO+Y8I0Ecbtf78psNShofmJMEEoPeWwDNH91fzwAN7Szd9EUkhSPgufgHYA== 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=1713891156; 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=D5X5orykgk5Zd919uzUWBCuD7vScWmfgkK1sj2IAakQ=; b=cg7jSN5/xEhb9KdSS6cICjIXpDyiyOSxAGpNRMLx6s9YwliSU8972HLgIORSwGxQ9HqbFx Ierlk7hWpP8SaMnhR43x5Es7dtVWqESMX0UhDAicfVQw7tb1YRZwL3EpORBELmUkiyflnZ v4quY6OGw2Do8S9ZI/DA8sFNzqRew4btf/bpmW9UrlS22i26SRbZWrA0lAfyyTjqxESs7n p1EU9watT9UWsMhJYtV/u9YsHo51r3igKnQ4oB1IJ/ALwkTcvOjOYXD9koFWyqkUq+vIvw Hrlu6Pq1gFzI1MwBKYz3RzDli67c3FPn7B8Ajq7ER9tk2wUddSeCgFnWngHWOQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VP7TH64lbzfxr; Tue, 23 Apr 2024 16:52:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43NGqZxx088156; Tue, 23 Apr 2024 16:52:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43NGqZjS088153; Tue, 23 Apr 2024 16:52:35 GMT (envelope-from git) Date: Tue, 23 Apr 2024 16:52:35 GMT Message-Id: <202404231652.43NGqZjS088153@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: dcc180c51b9c - main - sigqueue(2): Document __SIGQUEUE_TID 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: dcc180c51b9c13df3d1158d14d450308711fe93c Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=dcc180c51b9c13df3d1158d14d450308711fe93c commit dcc180c51b9c13df3d1158d14d450308711fe93c Author: Konstantin Belousov AuthorDate: 2024-04-20 21:58:15 +0000 Commit: Konstantin Belousov CommitDate: 2024-04-23 16:51:10 +0000 sigqueue(2): Document __SIGQUEUE_TID Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44867 --- lib/libsys/sigqueue.2 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/lib/libsys/sigqueue.2 b/lib/libsys/sigqueue.2 index 5b154efa20fd..2fac63610ac7 100644 --- a/lib/libsys/sigqueue.2 +++ b/lib/libsys/sigqueue.2 @@ -25,7 +25,7 @@ .\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd May 5, 2017 +.Dd April 21, 2024 .Dt SIGQUEUE 2 .Os .Sh NAME @@ -96,6 +96,19 @@ be selected for delivery, it is the lowest numbered one. The selection order between realtime and non-realtime signals, or between multiple pending non-realtime signals, is unspecified. +.Pp +As a +.Fx +extension, the value of +.Fa signo +can be or-ed with the following flags: +.Bl -tag -width __SIGQUEUE_TID +.It Dv __SIGQUEUE_TID +The +.Fa pid +parameter is the thread identifier of a thread in the current process, +and the specified signal is queued into the specified thread' queue. +.El .Sh RETURN VALUES .Rv -std .Sh ERRORS @@ -122,6 +135,10 @@ to the receiving process. The process .Fa pid does not exist. +.It Bq Er ESRCH +The thread with id +.Fa pid +does not exist in the current process. .El .Sh SEE ALSO .Xr kill 2 ,