git: 5a57401e7106 - main - libc: Fix fmemopen(3) prototype in fopen(3) man page.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 01 Sep 2023 20:56:37 UTC
The branch main has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=5a57401e7106132b61b16e34365cebf52b773007
commit 5a57401e7106132b61b16e34365cebf52b773007
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2023-09-01 20:56:17 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2023-09-01 20:56:26 +0000
libc: Fix fmemopen(3) prototype in fopen(3) man page.
While here, also update a mention of ANSI C.
Sponsored by: Klara, Inc.
Reviewed by: kevans, markj
Differential Revision: https://reviews.freebsd.org/D41686
---
lib/libc/stdio/fopen.3 | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/lib/libc/stdio/fopen.3 b/lib/libc/stdio/fopen.3
index 74da88efff0f..7012e565d7fe 100644
--- a/lib/libc/stdio/fopen.3
+++ b/lib/libc/stdio/fopen.3
@@ -31,7 +31,7 @@
.\"
.\" @(#)fopen.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd May 1, 2020
+.Dd September 1, 2023
.Dt FOPEN 3
.Os
.Sh NAME
@@ -51,7 +51,7 @@
.Ft FILE *
.Fn freopen "const char *path" "const char *mode" "FILE *stream"
.Ft FILE *
-.Fn fmemopen "void *restrict *buf" "size_t size" "const char * restrict mode"
+.Fn fmemopen "void * restrict buf" "size_t size" "const char * restrict mode"
.Sh DESCRIPTION
The
.Fn fopen
@@ -144,8 +144,10 @@ Reads and writes may be intermixed on read/write streams in any order,
and do not require an intermediate seek as in previous versions of
.Em stdio .
This is not portable to other systems, however;
-.Tn ANSI C
-requires that
+.St -isoC
+and
+.St -p1003.1
+both require that
a file positioning function intervene between output and input, unless
an input operation encounters end-of-file.
.Pp