From nobody Sun Nov 24 16:46:27 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 4XxF8z5025z5fLv4; Sun, 24 Nov 2024 16:46:27 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XxF8z2wJCz4Ch6; Sun, 24 Nov 2024 16:46:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732466787; 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=vKNH2QWVigGudlyFNuJGYdexfcx3BvxKEpPRqzagras=; b=OkCVtx8wE96Bccb7TchRONzeOb+wzBJVnOSSjo9nB4g7dtEi5pv/CKdk28s1HxVs9+746L LqV1+wXqbGGMl4xii5zzsUXpWUoGv1o0lwf7rENtor6u8rTqNk+yjGjUPdP+CSETs/3pHR sB/cS8RQHclX2EOvzjvO2kQkjSG1XpYctTivTm9iW3gVqi36Hj5KGPgQbdbJzV6nQ5UfI+ ns5UfODW7kWmQin6R0VS1scOc/LwcCZj3u1GCwvcQM0hcy1HG87ZpFzzsbvKVY6JNvjpEP 3Rs6d7UEXyH7b6+1kiAJP0f6VRrPds3kieQLRqnuONT4G6tfTHQ6izWZCSt4bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732466787; 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=vKNH2QWVigGudlyFNuJGYdexfcx3BvxKEpPRqzagras=; b=XxKQe7c9ZbSCv1u2/Rsr97nwqhFwQntEFufLaFLwAA1i9mKYF0rKeyeUK7YbDCsADY/OUl KH8fPZN8i18l4bkePKJQz3PJDoj5bNiT82YI1QZIbreQRjSQxKuLQajoD2x0wlJkzoNKIz PEMz2bqz8OOVC3t7chGayYQAKTLeP9EPieLU+Jptqr7JStrfXo7K4H3zh8mw+qoLJPcXkx 7sQYAGJGwoYrGW4XpjEzihJKtOUGYxGrXg/62rzUSu+SDzJhE6tDdgECINj1nH/Ry7C4zo B5Alty17ZNQZW1UYbV0D+IVl+4VDaoocmBwL39EEKHxF5bY1vNwGjHnFlnra0w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732466787; a=rsa-sha256; cv=none; b=BzOuzSivinX3dFf0DJrUE5J2T2CIwrue0fr8FGnPX7gGJG/tZSa5WccYMGcrgmfQDMkzvg XE8OlvwxL/4LvHTxmGWAiWHpzcdm8v+Ndcqh95WLR+3qty7dKuKKPeueePuq2aYeUcitop 0lAZrh1X4hz9l8Qpl33uQdFYaX1MRg0q+SC7DtFb6AmZsZe50BQLp6Kg/xHp2VLxIsEuQF ujd2mYEhWL/un9I2mIM521YUpj1HU0EuZWAf1tNxWBzJ3W8c5eJyiTxO4f2i1D3EDQqOfE 4Jh0hgAZstRqYEn8yT9d7WNOBiubkM/wrhvHDcDE1PT+N5BBKEzcYo08HTve+w== 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 4XxF8z2JqZz12VR; Sun, 24 Nov 2024 16:46:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AOGkRSV038487; Sun, 24 Nov 2024 16:46:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AOGkRb9038484; Sun, 24 Nov 2024 16:46:27 GMT (envelope-from git) Date: Sun, 24 Nov 2024 16:46:27 GMT Message-Id: <202411241646.4AOGkRb9038484@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 93a321b60750 - stable/14 - libc: Note that getentropy is nearly POSIX 2024 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 93a321b60750df2900e0a856c5e7210276147816 Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=93a321b60750df2900e0a856c5e7210276147816 commit 93a321b60750df2900e0a856c5e7210276147816 Author: Ed Maste AuthorDate: 2024-11-15 02:29:49 +0000 Commit: Ed Maste CommitDate: 2024-11-24 16:46:00 +0000 libc: Note that getentropy is nearly POSIX 2024 Our implementation currently diverges from POSIX 2024 in a couple of ways, as now noted in the BUGS section. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D47589 (cherry picked from commit 95b71a659a9bdc6e9071d80c7369a935c2bc16f4) --- lib/libc/gen/getentropy.3 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/libc/gen/getentropy.3 b/lib/libc/gen/getentropy.3 index 0a3ba3e25610..5bbbc80e2414 100644 --- a/lib/libc/gen/getentropy.3 +++ b/lib/libc/gen/getentropy.3 @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd February 24, 2018 +.Dd November 20, 2024 .Dt GETENTROPY 3 .Os .Sh NAME @@ -69,10 +69,8 @@ Too many bytes requested, or some other fatal error occurred. .Xr random 4 .Sh STANDARDS .Fn getentropy -is non-standard. -It is present on -.Ox -and Linux. +nearly conforms to +.St -p1003.1-2024 . .Sh HISTORY The .Fn getentropy @@ -82,3 +80,9 @@ The .Fx libc compatibility shim first appeared in .Fx 12.0 . +.Sh BUGS +.In limits.h +does not define +.Dv GETENTROPY_MAX . +Some error values do not match +.St -p1003.1-2024 .