From nobody Thu Oct 26 21:12:15 2023 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 4SGdlz6xxsz4yHcf; Thu, 26 Oct 2023 21:12:15 +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 4SGdlz6XFPz3Wny; Thu, 26 Oct 2023 21:12:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698354735; 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=2tBvIffe65uftuaSprDjVrjQVLTZ3v4hIMY/i6SN0lQ=; b=abzbpS+xWQTrnY9UDvMsuGcje2nxp3dLTdAn9+nTQbxCmkeah4Soo0Ra4YFyMaokTSn9ZX B+C880Wj8AD7agaKBCte6ROF3Dl4E4goMOF7RY9/L+9dD6H6QxT9wf6EDVHWiSsduM3HCo alGnfMdlcuaJj1ouWJra7ChU0rMFOaMSipQlZozvgmNED+J+g88OCDldfTSSm9/AJf3Hv0 SDyOudbgquoaw5nWu6RsTrmN9B9zNlJ0aik2Z+u0YTa335sbjDFt0BTRG2taiErqO4mb/s JWWkQJSgpCYj9xHQZT4OzqZeHIiYtxGiYYsUOKwM/FaON8FRSPhzFzNd4HkKag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698354735; 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=2tBvIffe65uftuaSprDjVrjQVLTZ3v4hIMY/i6SN0lQ=; b=CHBrYS3ovmRIjfchS88Q2jJkt6slMVG1H4bqpOqQISD9fzyKNJhBDG+WyLFBnlCmVEByin czFUCm6MbN1kSF7GFyaKktqSnpx/daFCF4ZxWEmGdj8sh0rhVfneY3RGOZouKBtvH2THME qSoayFAqiYqeT+DvrUB96HpHYhglSY1IQfQJ4ehb2rehhRrDp3Wg9TS62gOR7MdBtfbQO5 NEf1Q+wWfc3LSTFkNFaxPqViqSu/QNK7zN31sqs4ASFMrQ9nGY3k/Q9XicrEytdXdZ3U5d bp85VUOItpyZUPQRiDF4EsWHAS5M67YMEwaQgcnbSHLzBzxuUoanocn8l/MW1A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698354735; a=rsa-sha256; cv=none; b=UxIZI3tIgnzAUIgSOPkXEI7nHxcoXiGgxHd4QBesavSvdvt9G0r7HQkb1AkaYAmENw8oXz RzrzWNPH41pMvcJb+VTCSwj+J3jRm3ECiJINQKDRcl74BS6+5qI77HKK0T867LJvALpelC ILFhBO2OfIoIlm6YYSkQlvtCR7lOKnsfA7ctupsoLYUeUSHshVCKuhgjoSVgxBKXOmNKmj Jo41tj32qovZeRoUcwc+bb4w04Ou9Vaaj8dTyE3TBTIqDjK+tEC8rMDhH1jjuJ8hK+n6sW C44s+7AGryHWTmd6M0q6AjEHhTOB2OSRh9XXxLbhbH55pf1E4fVzAQcSsjzmhQ== 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 4SGdlz5bRMzn2b; Thu, 26 Oct 2023 21:12:15 +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 39QLCFCc056509; Thu, 26 Oct 2023 21:12:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39QLCF6F056506; Thu, 26 Oct 2023 21:12:15 GMT (envelope-from git) Date: Thu, 26 Oct 2023 21:12:15 GMT Message-Id: <202310262112.39QLCF6F056506@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: 2152c4e2db88 - main - pthread_mutexattr_init(3): describe pthread_mutexattr_{set,get}pshared 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: 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: 2152c4e2db88b9264c6400f2510440465d39c7b8 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=2152c4e2db88b9264c6400f2510440465d39c7b8 commit 2152c4e2db88b9264c6400f2510440465d39c7b8 Author: Konstantin Belousov AuthorDate: 2023-10-23 22:54:54 +0000 Commit: Konstantin Belousov CommitDate: 2023-10-26 21:05:29 +0000 pthread_mutexattr_init(3): describe pthread_mutexattr_{set,get}pshared PR: 274678 Reviewed by: emaste Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential revision: https://reviews.freebsd.org/D42344 --- 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