From nobody Wed Nov 20 19:31:05 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 4Xts0n54mkz5dfLL; Wed, 20 Nov 2024 19:31:05 +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 4Xts0n4dshz4glJ; Wed, 20 Nov 2024 19:31:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732131065; 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=hHAuxQ+t8lNyyaSmAb4wgHpCwpWuoplTB8FiROOAg44=; b=U+DeV5tbX++qvBOBjU7unrzPsS3HMMEALC86bvEd7d+CGgxIciku0fc0s+fnxh5IpICZ+b k1EtYAAF+UaJNEhqwdHcJbZ4580huvunEFgUy+ESknyWU9fUjg2u7X8S/Xg8SZo+CGL2PP COQGEht75g5eK4/RaJmSlbe6Qh6D8F6hFQEbV7OFChclECtmZ15IZARBRzWkkzUtkoSjZH 79aSUnMExbExgJDLRxmrGCTOBdBDQWknBPSwptTsegqt1pitSvXvHHjBvC0YMQLI2ZL4HV R5biPuZB3dQ3vdMo/8fN6B/1VZX+FrK67z3IvO0Lp9RZb1f5/1F+TqmwrG1ADw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732131065; 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=hHAuxQ+t8lNyyaSmAb4wgHpCwpWuoplTB8FiROOAg44=; b=oMMP5auGc5OvkM9R0ipXoT8qgdqOwW44/PcX2pz5djUEtH4G4g4iZTW6NUwSekOpe+MbVV mlnykSX1MNdZLNxbppd4t3kfJTn6culj8Lt4GaP4ayRSJrNTo/XRSqGhRuIbxrBxMfZVjn DWn7FcJybe71nfUCD0ocJi9uilNlOqCQl8koRg0uOPK+PIqrkT9qL4knO8FOp6i8+QrBOS qCVUK+mZ4UHQGu+HVMTMV+hwZILX3tpfsrYOnKACviI1lyhjEnzkRFs6g05a/X1UX7M5c+ pQaV5MnuLsMamzG2sdNIeF/OSVM4YJukjzUHJ9W7R8+1BWFQN2TCLrT3To7VzQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732131065; a=rsa-sha256; cv=none; b=MeaOPNInTFbmdTFx4iDZGA8I0KzFppNhzyiBYknMyvBu5SvyTWSUCWf03JQPgwQz7yfN/d R97w5kmdsr3dMFekmF9hAeQk8xlINVXA3KmqSEGSQ6aAqn6grB0NHbSmGRAiKoJh2ywTNa I3wiBnREe8d1hFw+w/QriRkynypQqq+pkkcZ4MJgg+JNPdXbOFgJdMuQRS/RY9ebKSCgDG XfpvlkY/pRHy9JRXCQVqhU1OcNeBPtbEUlEslQJj3pu+ugoLmHLFlkMZY5Kv21hbB+lHOy um8dfmmOEfE1qLRe1kqWoNzWdTvfRvV+3+ALyvyy8be6HrMjhDc4DB05xZkjnQ== 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 4Xts0n4Dvlz1718; Wed, 20 Nov 2024 19:31:05 +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 4AKJV5Mr078350; Wed, 20 Nov 2024 19:31:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AKJV5Bp078347; Wed, 20 Nov 2024 19:31:05 GMT (envelope-from git) Date: Wed, 20 Nov 2024 19:31:05 GMT Message-Id: <202411201931.4AKJV5Bp078347@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 95b71a659a9b - main - 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/main X-Git-Reftype: branch X-Git-Commit: 95b71a659a9bdc6e9071d80c7369a935c2bc16f4 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=95b71a659a9bdc6e9071d80c7369a935c2bc16f4 commit 95b71a659a9bdc6e9071d80c7369a935c2bc16f4 Author: Ed Maste AuthorDate: 2024-11-15 02:29:49 +0000 Commit: Ed Maste CommitDate: 2024-11-20 19:30:34 +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 --- 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 .