Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F165135203
D41686.id126801.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
906 B
Referenced Files
None
Subscribers
None
D41686.id126801.diff
View Options
diff --git a/lib/libc/stdio/fopen.3 b/lib/libc/stdio/fopen.3
--- 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 @@
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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 7, 8:17 AM (17 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36155409
Default Alt Text
D41686.id126801.diff (906 B)
Attached To
Mode
D41686: libc: Fix fmemopen(3) prototype in fopen(3) man page.
Attached
Detach File
Event Timeline
Log In to Comment