From nobody Tue Apr 30 00:48:59 2024 X-Original-To: dev-commits-src-all@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 4VT1mC6Pq9z5HjvB; Tue, 30 Apr 2024 00:48:59 +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 4VT1mC3g8wz4KSy; Tue, 30 Apr 2024 00:48:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714438139; 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=Fk3Qg/XVbbtXX2oep4m/GaaHRYN805nVPJT4ALbvTGI=; b=WruNMwHs2ycyUHErwUnn28qUjBWWlQUaq9qodv4TLKUWlGy9pTxRPGeITsMZaIlmMrjZfY K18hG1V9OmJnv6KWHHNFsxv420B7lb76ktPFniu+MfeqU+T1pP/+V3BKlKfNLtBunpFsJD e3s+lxqbcS4XE3du3kFDcZ47NU9bo5IYo4Thwy5cptKWREAv4lp0eSqbEkt4qeK4EYE6TJ eHFy5CGLUE8fIAbKaAZ6QNzLZvNwhMIt4O/kOYYebnfZc1qJewdVOAgSE4TM9aJkvT9lls KzAhsCwA1k7ZO/HiS/1GGED//hsbqLq4JZsjP0SFhqFCzinpDVlqUKeNk2hw5Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714438139; a=rsa-sha256; cv=none; b=v/5chMnKnmqtuSon/TPewG9mLmMmO7CalA87Yj+YccW5OC2ORu9SlWivcOdRCx1NGuGgy0 ggkGQ9d+fUz5VA07rVjVEn0wgfypzdNoYojbSGunde7+7JHvOgihhIQlOg/7n5MyB76/ie 5qS2iPZUM5IcdZ6OWw3L2IZZmNGPzOwQsARD/CYgkQ1BigruXgctMCyfcHHWQbTZngCp41 v8qkOyIolA0nz915cNY72Vn2D3LfMBIL37gDvhUhcJZMESsLhwKunof8LdwKGcdCMrZvnm 3+fEMeBtPe2N0hm/SZCLmPPCpoCymSmSGO/97i2l2cpkN2EKL0hx8rDtxSRChw== 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=1714438139; 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=Fk3Qg/XVbbtXX2oep4m/GaaHRYN805nVPJT4ALbvTGI=; b=FwBig2zwIRtXvA2tJ66k2dot4iZanwmC5GyfkCYWCwicjM2qv+kGeIHt12ETSTLRFOdH1D u0lR+HLsj8l4O/shD82hid45pY2vOy+B2+en8E2OZmdjivWLEQ/oxQJqeSJ+dIVVLIGYw0 +tYxaHy+K6gg9CiKceRtyKQlkIhVkTVYf+1+PeNkORVpTLjFWWI+2tFnrccD+OoiVZ02Rh M50W74Yx4CJAhrT0r+6usV+ZHPenEKYUXGzJprLs8KJslc3+vjnVHi/DtT4dSsnpnguLmJ izGhssGOVV9yHqTZAbrkw09GifJopud9cDG3Pos0o/6L4Ufjc0JM8xGgH2Lfuw== 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 4VT1mC3GDBz1SJ2; Tue, 30 Apr 2024 00:48:59 +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 43U0mxCq012814; Tue, 30 Apr 2024 00:48:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43U0mxD8012811; Tue, 30 Apr 2024 00:48:59 GMT (envelope-from git) Date: Tue, 30 Apr 2024 00:48:59 GMT Message-Id: <202404300048.43U0mxD8012811@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: afc8b17816e4 - stable/14 - sigqueue(2): Document __SIGQUEUE_TID List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/stable/14 X-Git-Reftype: branch X-Git-Commit: afc8b17816e49cd3d318c8760452d8f1e5b898a6 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=afc8b17816e49cd3d318c8760452d8f1e5b898a6 commit afc8b17816e49cd3d318c8760452d8f1e5b898a6 Author: Konstantin Belousov AuthorDate: 2024-04-20 21:58:15 +0000 Commit: Konstantin Belousov CommitDate: 2024-04-30 00:48:09 +0000 sigqueue(2): Document __SIGQUEUE_TID (cherry picked from commit dcc180c51b9c13df3d1158d14d450308711fe93c) --- lib/libc/sys/sigqueue.2 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/lib/libc/sys/sigqueue.2 b/lib/libc/sys/sigqueue.2 index 5b154efa20fd..2fac63610ac7 100644 --- a/lib/libc/sys/sigqueue.2 +++ b/lib/libc/sys/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 ,