Date: Fri, 27 Dec 2024 17:06:26 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 334e641d3861 - stable/14 - fgets.3: document gets_s() __STDC_WANT_LIB_EXT1__ Message-ID: <202412271706.4BRH6QR9037443@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=334e641d3861a866817a91a85b0bc3ec76936799 commit 334e641d3861a866817a91a85b0bc3ec76936799 Author: Graham Percival <gperciva@tarsnap.com> AuthorDate: 2024-10-06 22:57:45 +0000 Commit: John Baldwin <jhb@FreeBSD.org> 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 <gperciva@tarsnap.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412271706.4BRH6QR9037443>