aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man3/fmemopen.313
1 files changed, 13 insertions, 0 deletions
diff --git a/man3/fmemopen.3 b/man3/fmemopen.3
index 39ea297e30..436bb51863 100644
--- a/man3/fmemopen.3
+++ b/man3/fmemopen.3
@@ -249,6 +249,19 @@ However, in this case the glibc
.BR fmemopen ()
sets the file position to \-1.
+To specify binary mode for
+.BR fmemopen ()
+the \(aqb\(aq must be the
+.I second
+character in
+.IR mode .
+Thus, for example, "wb+" has the desired effect, but "w+b" does not.
+This is inconsistent with the treatment of
+.\" FIXME http://sourceware.org/bugzilla/show_bug.cgi?id=12836
+.IR mode
+by
+.BR fopen (3).
+
The glibc 2.9 addition of "binary" mode for
.BR fmemopen ()
.\" http://sourceware.org/bugzilla/show_bug.cgi?id=6544