From nobody Fri Dec 27 17:06:26 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 4YKX2q4DkCz5j3CD; Fri, 27 Dec 2024 17:06: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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YKX2p3QPtz4vlv; Fri, 27 Dec 2024 17:06:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735319186; 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=QLne6PyXFgwd/jzE0mJyplhm3a68GJOYdCajhbovAaY=; b=B1wWnLC0ix/Gebs5uRWVd/uZ9l1QNchXG2SH1Zr5fa5etvWmtAadCJrFdltD0SlSSohEr9 bmUVBm/5X7vjbFNnEjQymWsmENUIaxbdf9ozwtWODcAr+MI5mjdBMenUbO0LBgbqzBPGg/ BtNJxb0E/1LdPql7VZxeijdJSe3SNPRyGCEKZpPzymO7ZpiunFtv8i+iT9DCIdN2OAuz+n tx8iOzn44XS0XSzbMyZqmha2Sl6yr/+UaIrCJHnD5Ynm2OHswws/t7u3jfzn4KIL9ik4Gk 8FoUtjWr7Vh+vYXBtmqDYiMExliyNggq7V9zZ/Xrzu2JUMm+kS8M2YieFt74sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735319186; 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=QLne6PyXFgwd/jzE0mJyplhm3a68GJOYdCajhbovAaY=; b=fk1ohDwyUEH3JpMNfcvoVeZgCfYHPwZZ2a9M02Ro43VvyE+KJwgATlLJf8BJqGANfp3aTK Ost7QIbaSW0dMp0Tv4aS3oQpmLF0S4Xfwek7KldQtAYKO+dQe6GyG8rKON5B7+l4jRQzsu /KBnlOk1e3DYvatr1c35kECN7DNyx3loDJKsIFsl5T5qSIBVp63yItsZLXr8EL/BvjmWH9 sn9Gbf1YhY7wwpS7VVzu1iA/DxhZTy/dW5e3SRnpLXHYAZxVJqcQv3m9f1U/DcKV8di+D7 F58OqhRZpEv1/rwrn3kCGpfIzqbT0y678tvPid7vKbRnezQASNnRwBg3Lfc3ow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735319186; a=rsa-sha256; cv=none; b=VEP4yw4GG/KXgzkdMvnlO9UMJaFPnAKdVD+rPOLsCUInmHqC6djXgfrdHt50t1lMUFtWTC y6kUZdW7zUgVcJwN4gn19rZWZKINxkwW+XVFC+dEcx0hzMOyrio2qmrb7iDq+B7i256Hm6 dh3wwglqAzo301hL/nG+XSF20RCezZCwhcXvF41WrYS+OHkDwooyuW5tVg9OcM+t7HYUWW lU2nsdq+YJk2/bU6Ep6SFnp0xPrR11pAyZSLtcACRGJTjNAV0nPRQM9VMJE2Z9Iyv6SXg7 im9KK83JIVQKPiytGBcPw2D5pskp0RcffB1TO9j2QqUrJdsX1foQ4KW/fUTNyA== 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 4YKX2p21GHznm8; Fri, 27 Dec 2024 17:06:26 +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 4BRH6Qql037445; Fri, 27 Dec 2024 17:06:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BRH6QR9037443; Fri, 27 Dec 2024 17:06:26 GMT (envelope-from git) Date: Fri, 27 Dec 2024 17:06:26 GMT Message-Id: <202412271706.4BRH6QR9037443@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 334e641d3861 - stable/14 - fgets.3: document gets_s() __STDC_WANT_LIB_EXT1__ 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 334e641d3861a866817a91a85b0bc3ec76936799 Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=334e641d3861a866817a91a85b0bc3ec76936799 commit 334e641d3861a866817a91a85b0bc3ec76936799 Author: Graham Percival AuthorDate: 2024-10-06 22:57:45 +0000 Commit: John Baldwin CommitDate: 2024-12-27 15:48:27 +0000 fgets.3: document gets_s() __STDC_WANT_LIB_EXT1__ This matches the man page for qsort_s(). PR: 281828 Signed-off-by: Graham Percival Sponsored by: Tarsnap Backup Inc. (cherry picked from commit d0a3fd34a05794bc5cbf48709001a78e9f85169a) --- lib/libc/stdio/fgets.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libc/stdio/fgets.3 b/lib/libc/stdio/fgets.3 index 6533c218a789..f4488dceb8cd 100644 --- a/lib/libc/stdio/fgets.3 +++ b/lib/libc/stdio/fgets.3 @@ -31,7 +31,7 @@ .\" .\" @(#)fgets.3 8.1 (Berkeley) 6/4/93 .\" -.Dd April 2, 2022 +.Dd December 6, 2024 .Dt FGETS 3 .Os .Sh NAME @@ -44,6 +44,7 @@ .In stdio.h .Ft char * .Fn fgets "char * restrict str" "int size" "FILE * restrict stream" +.Fd #define __STDC_WANT_LIB_EXT1__ 1 .Ft char * .Fn gets_s "char *str" "rsize_t size" .Sh DESCRIPTION