From nobody Fri Dec 27 17:06:50 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 4YKX3H4hjBz5j3Nd; Fri, 27 Dec 2024 17:06:51 +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 4YKX3G6NJsz3wtk; Fri, 27 Dec 2024 17:06:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735319210; 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=rrAZ5Y1lEAzt5zIvtTiNGIHfzqTj4rPYF8+EYMDwd/o=; b=LeriOQ2kNzgXznhvAm7WcnRsM7wCD8PaB1i8nEiY+ro8TpDHa8XPGhY9Ehkgv1sukfH6iI AbVja54xK62NtoIpcJCgW1Ps3yJYXjVbvrgrghXbZG3rM3j9t/ObSxELTg9wy12Q+Fy1hH VLKjXsAfTvMEVQtaz31U/f0HbsHxV90jMbcPW+APvNvr3WwbzarPFt9Fx+6uvgXhauIQAo LPT56Zl9oy3UgTsdMHhRVWl0kSMw0BxIo6JboJZrbHtuZqT0TAS5P+JP0Q5s1drnbUFl5N Urmr/qxoBWtJlb4xAWnmq05AUhsiaD9kXfg7FQzuWaypqh0MDpW3bwtq7476RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735319210; 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=rrAZ5Y1lEAzt5zIvtTiNGIHfzqTj4rPYF8+EYMDwd/o=; b=KItdyS7W2/FxXEAhFzRrYPExug9h9ac+dqbs0nkK1tWGV2tc1lFpv/6z4PaeVp4TpX6mA0 VQWrsbkZ18arBLP9MYqH4ItrSLoV6HkxrfuiT1K9eYZdGOvPwJ4axy7o4yv5d1I4lO31nk d1ywhNSUVTmFFzyy1gQASeSNU+bEZnulb/TaGFze0QWn5ClRA/lXo3V9p3yjKtSycfo56O gVlzvE3DflXYPf6wnv9tXmZ4KVZYEibPOdDsFS/kxpgXCQF81L+Kzyh7o70XIXxc4HqjIX Q/yLp7M+KaY/v0tQxSTXousGFo/mbOuwCsUQJyZyEBCdkCckJepO4bqWt2HyiA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735319210; a=rsa-sha256; cv=none; b=UHGBchl5oY8VKwH8XMTSLOxBWJEmQteCsnxHxkqyJl/X+y+X61Bp45ahJ83MlBAQ81rYYi OeJFJJZ6+eKeDSufMHy1IpUL8KrL7Xe9CBLFqDrS7nN6+YbzsqAwyFyp4R0Hrz6Oo+B3kS yLt1Cx6wBpdxrpUq1oiN3309+ShkM4jrNrjlnYI6Lfb/sJhrHCJdgn1RGD3wWNaU/+n8qk QevF5+TBvDJapvAYTsDgZvbeJiE0FmjyjuzPrVw9fDKcci8IAKGQerNc+sDZ7a4Pc6TurS bZx3XexX4G7CqLBXpr9jhQRMnwqfKt9jXauqR4WEJ1oJdxMmTAKZKavcT+1Hkw== 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 4YKX3G563PznG2; Fri, 27 Dec 2024 17:06:50 +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 4BRH6oeb038324; Fri, 27 Dec 2024 17:06:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BRH6oWK038321; Fri, 27 Dec 2024 17:06:50 GMT (envelope-from git) Date: Fri, 27 Dec 2024 17:06:50 GMT Message-Id: <202412271706.4BRH6oWK038321@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: 7c4be554f72a - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 7c4be554f72adb4bc008aa71c269801c10012d77 Auto-Submitted: auto-generated The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=7c4be554f72adb4bc008aa71c269801c10012d77 commit 7c4be554f72adb4bc008aa71c269801c10012d77 Author: Graham Percival AuthorDate: 2024-10-06 22:57:45 +0000 Commit: John Baldwin CommitDate: 2024-12-27 15:49:31 +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