From nobody Thu Nov 21 00:46:46 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 4Xv0124y4dz5dy8b; Thu, 21 Nov 2024 00:46:46 +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 4Xv01240lrz4K41; Thu, 21 Nov 2024 00:46:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732150006; 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=sodQmHETNl67IZZoqkuIQICo5/JGKkKN3+ZkFbEVYCs=; b=NcmUIoeLAYFiop2Szt5bBh1cJkP15AP+qY878o2iup8URKJR0vDvn1PoSL0iZPfCUt66ly jSJGRPqKyWWQaNKHgVOyAzDJ5/XpQfHBmsQMv/Pl0/g2RVHz57/qodS2jnIla5RJBcP3uZ 6JA1DAkhPNZSXQALMthSXoBsJvg6YaVsMgNKHD0u8yam6b88BofCZDQlkhFSMHts986OYz u63Jrqh3FjI2JQ7HCiBQknF9So6U8qFhLhKp9LnkuGkOTi4LqYrzBrsFLLUGKRABxIl7e3 +xJfFYtB+88lPLVZGc35PEGacrZL4+Ylku3YyracTD80Y05yWpD38lzSiSQC3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732150006; 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=sodQmHETNl67IZZoqkuIQICo5/JGKkKN3+ZkFbEVYCs=; b=XrxXNXPKDLuZn4fiOlk+NcJLzJ6SMIHSzvw/9zZ2+3gI53F+SZHrppex3Sn/aAGiK65VCS YCa2O+lGoQtLSGmyqqxUNfsLBbw0/vGZDYYbyefHhfJYBe5da+Gd+i7zPG62poPuh1UrJH wSHdy3ss5i9b500OlCpOeKx0sk2Fd/wtblKdR5XzpzdPIkLCuDB77YnZbGEQEM2Epi1BTa lFC8xLDQ/yyuoDT8DqrfFa5/kUzx4hPi1aL6TsJ1d9PWPOEaOJd6mYhJCN8cuc7dhSocPU PVbnEYW/Zs4jut3ZgdHcwRSjbnVjK0oawtdp1fUpoR6qstlqY3cyvbaTs8KtLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732150006; a=rsa-sha256; cv=none; b=OgENqxSOvKV5JSV0nrg7Us6RlPnWd8GUyjrb005IQeiVTLobHuSyhUNH7x4Crz+qqCmL1V CmZJ901rPsqlYjeaQQO1xeutOhRSxvopA3vRwk9YPQasAhdfZG8ujuq8xH/y9knQogeoBf XZgRAPiQmtLpaHg52HWJOdtjhABqyumkopYrAM14wZkKGo4P/TFDfizBX7oLegRUs9qXAl hOusbTru1heKpV1dEISiHD6qqsL7bjjRWeoqZwy/kiLunLazBsR5uxu+cbiVsbujXV0KXh MsGpnvg/m9Zf8ekfQd9QlLKlV2qNUguimiiz17ZfxGSiHPoJl08uhYUFaSObNg== 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 4Xv0123Bt9zH5D; Thu, 21 Nov 2024 00:46:46 +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 4AL0kkC3061818; Thu, 21 Nov 2024 00:46:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AL0kkka061815; Thu, 21 Nov 2024 00:46:46 GMT (envelope-from git) Date: Thu, 21 Nov 2024 00:46:46 GMT Message-Id: <202411210046.4AL0kkka061815@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: 098ed26bf456 - stable/14 - libc: indicate existing functions that are 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: 098ed26bf4564362c4478b8c92b11ab9ca074da1 Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=098ed26bf4564362c4478b8c92b11ab9ca074da1 commit 098ed26bf4564362c4478b8c92b11ab9ca074da1 Author: Ed Maste AuthorDate: 2024-11-14 19:30:54 +0000 Commit: Ed Maste CommitDate: 2024-11-21 00:45:07 +0000 libc: indicate existing functions that are POSIX 2024 Reviewed by: brooks, imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D47581 (cherry picked from commit dfa0ac74c2fbc1cde3e8cdb1ab9fe5cbb90a9b16) --- lib/libc/stdio/mktemp.3 | 5 ++++- lib/libc/stdio/printf.3 | 6 ++++++ lib/libc/stdlib/getenv.3 | 3 ++- lib/libc/stdlib/reallocarray.3 | 4 ++++ lib/libc/string/memmem.3 | 6 +++--- 5 files changed, 19 insertions(+), 5 deletions(-) diff --git a/lib/libc/stdio/mktemp.3 b/lib/libc/stdio/mktemp.3 index cfb6f79be251..5b0547c89fcd 100644 --- a/lib/libc/stdio/mktemp.3 +++ b/lib/libc/stdio/mktemp.3 @@ -277,7 +277,10 @@ function is expected to conform to and is not specified by .St -p1003.1-2008 . The -.Fn mkostemp , +.Fn mkostemp +function conforms to +.St -p1003.1-2024 . +The .Fn mkstemps , .Fn mkostemps and diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3 index a7b0c7399e2e..af1dcf90b4f9 100644 --- a/lib/libc/stdio/printf.3 +++ b/lib/libc/stdio/printf.3 @@ -830,6 +830,12 @@ and .Fn vdprintf conform to .St -p1003.1-2008 . +The functions +.Fn asprintf +and +.Fn vasprintf +conform to +.St -p1003.1-2024 . .Sh HISTORY The functions .Fn asprintf diff --git a/lib/libc/stdlib/getenv.3 b/lib/libc/stdlib/getenv.3 index df5c1e59074a..bea6ca42699f 100644 --- a/lib/libc/stdlib/getenv.3 +++ b/lib/libc/stdlib/getenv.3 @@ -220,7 +220,8 @@ functions conforms to .St -p1003.1-2001 . The .Fn secure_getenv -function is expected to be glibc-compatible. +function conforms to +.St -p1003.1-2024 . .Sh HISTORY The functions .Fn setenv diff --git a/lib/libc/stdlib/reallocarray.3 b/lib/libc/stdlib/reallocarray.3 index d92be7d3f66b..80035c67a497 100644 --- a/lib/libc/stdlib/reallocarray.3 +++ b/lib/libc/stdlib/reallocarray.3 @@ -131,6 +131,10 @@ if ((newp = reallocarray(p, num, size)) == NULL) { .Ed .Sh SEE ALSO .Xr realloc 3 +.Sh STANDARDS +.Fn reallocarray +conforms to +.St -p1003.1-2024 . .Sh HISTORY The .Fn reallocarray diff --git a/lib/libc/string/memmem.3 b/lib/libc/string/memmem.3 index 5d8bcc84e31f..e301a0bd1e0f 100644 --- a/lib/libc/string/memmem.3 +++ b/lib/libc/string/memmem.3 @@ -67,10 +67,10 @@ is returned. .Xr memchr 3 , .Xr strchr 3 , .Xr strstr 3 -.Sh CONFORMING TO +.Sh STANDARDS .Fn memmem -started as a GNU extension but is now available in at least -the GNU, musl, bionic, OpenBSD, NetBSD, macOS, and illumos C runtime libraries. +conforms to +.St -p1003.1-2024 . .Sh HISTORY The .Fn memmem