From nobody Sun Oct 29 00:47:25 2023 X-Original-To: dev-commits-src-branches@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 4SHyRL1Z8Kz4yFyh; Sun, 29 Oct 2023 00:47:26 +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 4SHyRL11ZYz3Qvh; Sun, 29 Oct 2023 00:47:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698540446; 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=Vq1NULzJubPT6rGChbTreqNpPXu3NO3hs4iUnXKKEpc=; b=HjnJe/FmZURERYGJl6rHR84DYUfPWg9fWXnrYh1Mtd+9b+TwrlpYiWS8WiTpH3GCeoRcoV TRjIo8UhFynivwyb9bI/UmVAQPJEcINdtseblh2d0QHCommbkCHGp56KCUgyzdX0xJX4pX BTt0nyI/QoULVoge94ufvJARJpimbfFUZKlKsyoTcLTO+KRLJesXaeiUQzvelxYWDWTdoR yy5yREi88Vm+G/rrgX6Eu3RRrN3EY2kQhi2PFXEVsLAxwIeWjf/RkYy4QCH99r45QaQ50s Sg48RonSYQErTbLSu9JQd++ED6JPxTsv4rqwCSHnIJzk1ADjbJQg742ZifcbFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698540446; 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=Vq1NULzJubPT6rGChbTreqNpPXu3NO3hs4iUnXKKEpc=; b=nWB4yxiXQznJ05+rTRr0CLsclSlfRaXcFVvYGF0/cO1lhBAMtwcbc5KsBYg1bjxPYkS3VC DReJuduSAycCZHo8C0Ikd2cjoODBe4Crx/TclQPtAAPj7/j+jQrfb/8IPbwhgoxlu9zA8B ulV0AYOp4ctI/LDL+O504Gq1C0RoDrZ3COwTXfpv4MRVO0nZL4byT/HcflliPq3ytlEFoj ZejIkmJYuvawSIcWNKvM26YgxhNjFWqpt0M9w3OdZgOVqfgUB8+XhkUYN0TNZ3XjRWlQes U3PZ/UJVA55qQRiPc2ypUOsAtHBCXoh6uZlAZSZJoq+QOe6lPCXVzr1GJT/edg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698540446; a=rsa-sha256; cv=none; b=DJhE2GcGjP6cP3JS5w11q7bZ2lOMa69kiFRKG+YoVL+dZ+6vUYWU69wVp+4qdqgDbTDzFM Hh52Pej5OmmA4zz+os9AXFTab+7ndYMHfStMaZ09lQZDCBLuOmkPIRLzRRC6iS1LaDLs6L +TjokpwjqBD9JAJIRDmnMHJsmapnoG1qsDOO0DHteq14UWhQ3+Ke1MoWJILm+k7Vl163jC PslS7gnFeECRHIunht+5HG32/ybJyaTxAEHDcfh8QamjdLh75hAx0iJF8Z2VjFqXytRDt/ RyPrwPf56ryjFk6L6kJCJap/6eDpHNHBwpZiQdvD9vLdku4mvDLHO0v4qHe9fw== 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 4SHyRL045Vz3Fv; Sun, 29 Oct 2023 00:47:26 +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 39T0lP86011657; Sun, 29 Oct 2023 00:47:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39T0lPch011654; Sun, 29 Oct 2023 00:47:25 GMT (envelope-from git) Date: Sun, 29 Oct 2023 00:47:25 GMT Message-Id: <202310290047.39T0lPch011654@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: 578e91188081 - stable/14 - pthread_mutexattr_init(3): describe pthread_mutexattr_{set,get}pshared List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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: 578e91188081525fe45abd00cd751600190b4688 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=578e91188081525fe45abd00cd751600190b4688 commit 578e91188081525fe45abd00cd751600190b4688 Author: Konstantin Belousov AuthorDate: 2023-10-23 22:54:54 +0000 Commit: Konstantin Belousov CommitDate: 2023-10-29 00:47:05 +0000 pthread_mutexattr_init(3): describe pthread_mutexattr_{set,get}pshared PR: 274678 (cherry picked from commit 2152c4e2db88b9264c6400f2510440465d39c7b8) --- share/man/man3/pthread_mutexattr.3 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/share/man/man3/pthread_mutexattr.3 b/share/man/man3/pthread_mutexattr.3 index 8e457b87dc8f..30537b9a9f86 100644 --- a/share/man/man3/pthread_mutexattr.3 +++ b/share/man/man3/pthread_mutexattr.3 @@ -132,6 +132,26 @@ all threads waiting on any mutex owned by this thread. .El .Pp The +.Fn pthread_mutexattr_setpshared +function sets the process-shared attribute of +.Fa attr +to the value specified in +.Fa pshared . +The argument +.Fa pshared +may have one of the following values: +.Bl -tag -width ".Dv PTHREAD_PROCESS_PRIVATE" +.It Dv PTHREAD_PROCESS_PRIVATE +The mutex may only be used by threads in the same process as the one +that created the object. +.It Dv PTHREAD_PROCESS_SHARED +The mutex may be used by +threads in processes other than the one that created the object, +assuming other processes share access to the memory where the mutex +was allocated. +.El +.Pp +The .Fn pthread_mutexattr_setrobust function specifies robustness attribute of the mutex. Possible values for the