From nobody Fri Dec 06 18:20:36 2024 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 4Y4fh46mjSz5gf1D; Fri, 06 Dec 2024 18:20:36 +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 4Y4fh4408wz4rQy; Fri, 6 Dec 2024 18:20:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733509236; 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=IDIUCYZBG4MX875UPBMns3tPEyY5Gp92SR8nEG2vayY=; b=GC1RnkLfrgGOMDowkIGrlFel3Tb93I/vFLSPK8bW0CXFKvZZiR2NSf4X8Yb8aPggB+d3hS rQG+ccjA0bhNyuIAn2JltRuo7BeKVcbgh58nbL5qHiI7bYqVVrswvPTjcUJzDMNHTyUq9w HBDVTbX9Z5MucGdp51i8NNSENn8r+3KSRcU1AUyGu7j3B1N03C0b2hx1wqSFcEqopUQ09p GfVyPJLIYlDgAuxKgrb5MEv128RnwAFgP29B99XsGcGfGeUsGERZj7zQLtYDzuRRfZk/OP dISzo81vX+J8obzSR5Z6rS1vr5Jhcuv5lZCqeuAqqOuTeJ30QQWie/cUSvetcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733509236; 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=IDIUCYZBG4MX875UPBMns3tPEyY5Gp92SR8nEG2vayY=; b=bvQ/h2QleBOrVuLBk5Qs+KTVs9hPbXXll733KjzNOs0qzlVlQpnYs4wKCznYM9WvGEw7Zj NwCgNUZ00kGgeyNWVlKXyeg2crcIxrhElJqLywfxz44Ts934es99nw70sk3skylXO0AXvV PciV2erDRX3h7qlVVJDZHxp8LSgylpGY3avdgJ7koop6VqzU2LYsnD3SB92+JD0Sj227Kp el/RMl1HNAnS5r0d2kpw9QICEYRN3aY5PqbOzmX2i1LcYoajdPI7HvwRm3hgVvJ5BrLTEV BMhSCyjQf8uNfCUqcdYCQOcjzV8SEYRFM/P1A/XpXgkinTxNHLJgQJ4IGvioQg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733509236; a=rsa-sha256; cv=none; b=uG1+6sXwV7EJ6ww/K2oU1hEJJODMbMZt21yNXni2AfeHODFn2+eKUHu5QNA4EOXhfRJX/b Qo9T0p8JacaI7FIEYTOzIIQgLJ0LuoZx7IUiMV8vQGLwZYJyR07KrbyYfIH0fJvFAjo62v 4DMWb+xDk9D+goHJ3BhFsCsfMNNwVefWfBl/wVEkSDbh9ELk9ckdiiEqwdXdDx1H9Crauq 1EQlHyRxL61khzMivvC+0dOtAnimgU4H+PWtegQf/14Lhw1atd6Cqr5c95BfOu5r1kP0J2 41Txd9UF70xjoaHglDau3nyQskNsWinHk4ePl0tDuh3p3fSWBVE9+Z7u+P7j0g== 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 4Y4fh43Sp0zpSl; Fri, 6 Dec 2024 18:20:36 +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 4B6IKaMY014799; Fri, 6 Dec 2024 18:20:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B6IKacA014796; Fri, 6 Dec 2024 18:20:36 GMT (envelope-from git) Date: Fri, 6 Dec 2024 18:20:36 GMT Message-Id: <202412061820.4B6IKacA014796@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: d0a3fd34a057 - main - fgets.3: document gets_s() __STDC_WANT_LIB_EXT1__ 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: d0a3fd34a05794bc5cbf48709001a78e9f85169a Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=d0a3fd34a05794bc5cbf48709001a78e9f85169a commit d0a3fd34a05794bc5cbf48709001a78e9f85169a Author: Graham Percival AuthorDate: 2024-10-06 22:57:45 +0000 Commit: John Baldwin CommitDate: 2024-12-06 18:20:19 +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. --- 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 0f6c3e41896c..1ae5888f5983 100644 --- a/lib/libc/stdio/fgets.3 +++ b/lib/libc/stdio/fgets.3 @@ -29,7 +29,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd April 2, 2022 +.Dd December 6, 2024 .Dt FGETS 3 .Os .Sh NAME @@ -42,6 +42,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