git: d0a3fd34a057 - main - fgets.3: document gets_s() __STDC_WANT_LIB_EXT1__
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 Dec 2024 18:20:36 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=d0a3fd34a05794bc5cbf48709001a78e9f85169a
commit d0a3fd34a05794bc5cbf48709001a78e9f85169a
Author: Graham Percival <gperciva@tarsnap.com>
AuthorDate: 2024-10-06 22:57:45 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
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 <gperciva@tarsnap.com>
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