From nobody Sun Oct 29 00:48:00 2023 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 4SHyS02DJ6z4yGG8; Sun, 29 Oct 2023 00:48:00 +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 4SHyS01jxXz3RHp; Sun, 29 Oct 2023 00:48:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698540480; 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=8eCcCQ09BFc8ez30sjfA2oPzxuCIwYD+TdlcRk0kTe8=; b=Rrf9xGr7lp/ytp5QBcpPd4/KolAIqIia6mAI+nSplVWkG70MuDQcVXH6il635NzxtifDUB rota+8aLCTyyOqzR1MRAuDzIS7sBrcFHNjbKQCE01/IL562rQlP3lesFrYrXYGq/kKBRmg Vo7SBe2hfVV4ht/8oPpQVHvz35uoLp8FkPlLqdEPdMQnd6DVAdfz0+79MIGLkGjswbbghj HOLnZ9kw0Hka/SG999ZWIt+M0haZL/1A96JQIYrslm7PhjLKjYHh/f+gEMKChR8BSLWbjw MxHR1qLRwyKdF5cZAKM6GsPEwmcbgTRBKM4IvXsnaOpLgvaasRzFHyor56W7iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698540480; 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=8eCcCQ09BFc8ez30sjfA2oPzxuCIwYD+TdlcRk0kTe8=; b=Lte4aO6rRnD4KXEuiZBYQ0k8WYQGtXaouWEusPQv/rBgjkWpHjFGttyvXoIydqO8hjXPIr TmHrDa4DVvfLMKeeNv6Rn88GiM1d/+T3rDecGZtyAugGuQla3CqMoBTMSDKQKEIVhMC3Mw GIUxvbTzffpCDu7x2ybmbUQHynW8kASV/GscSb12m7lsPtMEC/RlHQfMZbBRPp1e4zx8AQ XbEW002Zj/4Hr/uqnm7NdMYNYOPOHYOR4BsC2CXQog5KdknsAJaHa6JIEsvFAfuUymm3wn AIq8lzH3qw2iH5m1PPyiZn2n1ePDc0CdiBt5AV5SwHabF8XukbTQ8P5vD6gKiA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698540480; a=rsa-sha256; cv=none; b=VsYm/fa0EJJowzqFFJv8xPbGVfiwxWhyi4ENMvQ/NZ2F/yUzlcW8yAIA8bEUrqR2dZt/xD Bsz3Rz3RWYxE51XSxM3WTN0zNs2RMZXVvajcVMAvTfo2BG78I1GUmpPUl6dNaJIXczhBHB I3myCMonKiGIbMvyU7PlpGoSI8MknWumkyNW5MXxqJomsipAbncBuX0yDti8gfTbqPW3lj QxLZca6ubpH7KNhsy8+4J6ntL/g7mS9CbSbJJc2NOsxpsN8uurNHXwP5v2iYw3K6yXTOHg /e6Sr9nJT6db4CWPPT3FEB09S6oI5XxgjlxfE7mS4pumw6upumTbrDZlO1gDAg== 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 4SHyS00mscz3P2; Sun, 29 Oct 2023 00:48:00 +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 39T0m0MO011915; Sun, 29 Oct 2023 00:48:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39T0m0Dh011912; Sun, 29 Oct 2023 00:48:00 GMT (envelope-from git) Date: Sun, 29 Oct 2023 00:48:00 GMT Message-Id: <202310290048.39T0m0Dh011912@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: 9fe1192bd9f2 - stable/13 - pthread_mutexattr_init(3): describe pthread_mutexattr_{set,get}pshared 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/13 X-Git-Reftype: branch X-Git-Commit: 9fe1192bd9f25e21a7c2cac9a5acd5091ec78de8 Auto-Submitted: auto-generated The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=9fe1192bd9f25e21a7c2cac9a5acd5091ec78de8 commit 9fe1192bd9f25e21a7c2cac9a5acd5091ec78de8 Author: Konstantin Belousov AuthorDate: 2023-10-23 22:54:54 +0000 Commit: Konstantin Belousov CommitDate: 2023-10-29 00:47:44 +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